Published September 20, 2026
Capital Gains Tax When You Sell Your Home
Sellers worry about this tax far more often than they end up owing it. If you've lived in the home you're selling for at least two of the past five years, a large majority of typical sales in this market fall entirely under the federal exclusion and owe nothing.
In This Guide
- The Rule That Decides Almost Everything
- What Counts as "Profit"
- When This Actually Matters in This Market
- If the Home Wasn't Your Primary Residence
- State Tax on Top of Federal
- If the Home Was Ever a Rental
- Withholding at Closing If You're an Oregon Nonresident
- Timing a Sale Around the Two-Year Test
- This Isn't Tax Advice
- Frequently Asked Questions
| Item | Value |
|---|---|
| Exclusion, single filer | Up to $250,000 of gain |
| Exclusion, married filing jointly | Up to $500,000 of gain |
| Ownership and use test | 2 of the past 5 years |
| Governing law | IRS Section 121 |
| Depreciation recapture rate | Up to 25%, not covered by the exclusion |
Source details are listed below.
The Rule That Decides Almost Everything
The Exclusion Amounts
Under IRS Section 121, a single filer can exclude up to $250,000 of profit from the sale of a primary residence, and a married couple filing jointly can exclude up to $500,000.
The Two-Year Ownership and Use Test
To qualify, you need to have owned the home and used it as your primary residence for at least 24 months (2 years) out of the 5 years before the sale. The ownership and use periods don't have to be the same continuous stretch, but both need to fall within that 5-year window.1
What Counts as "Profit"
Your taxable gain is your sale price minus your adjusted basis, not simply sale price minus original purchase price.
- Adjusted basis generally means what you paid for the home, plus qualifying capital improvements, minus certain selling costs.
- Someone who bought a house for $200,000, put $40,000 into a genuine capital improvement like an addition, and sold for $420,000 has a smaller taxable gain than the raw sale-minus-purchase math suggests.
When This Actually Matters in This Market
Most sellers in the Treasure Valley and eastern Oregon selling a primary residence they've owned for several years fall comfortably under the $250,000/$500,000 exclusion, especially given local home values relative to national coastal markets.
Where it starts to matter: longtime owners of appreciated property, second homes or rentals that don't qualify for the primary-residence exclusion at all, and land or acreage sales, which follow different basis rules than a standard house.
If the Home Wasn't Your Primary Residence
The Section 121 exclusion only applies to a primary residence: it doesn't cover a rental property, a second home, or land you're selling separately from a house.
If you're selling a farm, ranch, or investment property, the capital gains calculation is a different conversation with different rules, and our Equine, Land & Ranch division is the better resource for that specific situation.
State Tax on Top of Federal
The Section 121 exclusion is a federal rule. Any gain above it, or gain on a property that doesn't qualify, is generally still subject to state income tax where you're a resident at the time of sale.
- Oregon taxes it as ordinary income at rates up to 9.90%.
- Idaho applies its own state income tax rates.
This is genuinely a "talk to a CPA" situation once a sale exceeds the federal exclusion amount, since the exact state tax treatment depends on your full tax picture, not just the sale itself.
If the Home Was Ever a Rental
Converting a former rental into your primary residence before selling doesn't erase the tax history of the rental years.
- Any depreciation you claimed, or could have claimed, during the rental period gets "recaptured" and taxed separately at a federal rate of up to 25%.
- That's regardless of how long you've since lived in the home as your primary residence.
- The Section 121 exclusion never shelters that recaptured depreciation amount, even when the rest of your gain qualifies for the exclusion.
If a property you're selling was ever rented out, this is a case where getting a CPA involved before you list, not after, can meaningfully change what you plan for.2
Withholding at Closing If You're an Oregon Nonresident
If you're selling Oregon property but you're not an Oregon resident, escrow may be required to withhold a portion of your proceeds for the state.
| Basis | Withholding amount |
|---|---|
| Sale price | 4% |
| Gain | 8% |
| Net proceeds | Actual amount, if lower than both above |
Source details are listed below.
You can generally avoid this withholding by certifying at closing that the sale qualifies for the Section 121 primary-residence exclusion, or by filing Form OR-18-WC in advance to request reduced withholding if your actual liability will be lower.
This doesn't apply to Oregon residents selling their own home, and it's a closing-paperwork issue your escrow company should walk you through directly.3
Timing a Sale Around the Two-Year Test
If you're close to the two-year ownership-and-use mark but not quite there, it's worth asking whether waiting a few months to sell changes your tax outcome meaningfully, for a sale with a large gain, it sometimes does.
This is exactly the kind of calculation where running the actual numbers with a CPA before listing, rather than after an offer is already in hand, gives you real options instead of just information after the fact.
This Isn't Tax Advice
Everything above describes the general federal rule and where to look for state-specific detail. It isn't a substitute for a conversation with a CPA about your specific sale, basis, and filing situation.
We can tell you what a comparable home is likely worth and how the local market is moving; a tax professional should confirm the actual number you'd owe, if any.
Frequently Asked Questions
How to avoid capital gains tax on selling your house?
For most sellers, the built-in Section 121 exclusion already avoids it entirely, as long as you meet the 2-of-5-year ownership and use test and your gain falls under $250,000 (single) or $500,000 (married filing jointly). Beyond that threshold, strategies like tracking capital improvements to raise your basis can reduce the taxable gain. A CPA can walk through what applies to your specific sale.
How much capital gains tax will I pay if I sell my house?
For most primary-residence sales under the exclusion threshold, the answer is zero at the federal level. Above the threshold, the taxable portion is generally taxed as a long-term capital gain if you owned the home more than a year, at federal rates that depend on your overall income, plus applicable state income tax.
How many years to own a home to avoid capital gains?
You need to meet the 2-out-of-5-year ownership and use test to qualify for the Section 121 exclusion at all. Owning longer than that doesn't increase your exclusion amount: the $250,000/$500,000 caps stay the same regardless of how long past two years you've owned the home.
What things are exempt from capital gains tax?
For a home sale specifically, gain up to $250,000 (single) or $500,000 (married filing jointly) on a qualifying primary residence is excluded under Section 121. Investment properties, second homes, and land sold separately from a primary residence don't get this exclusion and are generally taxed on the full gain.
How much capital gains will I pay on $100,000?
If that $100,000 gain is on a qualifying primary residence sale under the $250,000/$500,000 exclusion, the federal answer is typically zero. If it's a gain that doesn't qualify for the exclusion, the tax depends on your income bracket and how long you owned the asset: this is a specific-numbers conversation for a CPA, not a flat percentage.
Sources
- IRS Topic No. 701, Sale of Your Home. Checked Sept. 26, 2026. ↩
- IRS Publication 544, Sales and Other Dispositions of Assets. Checked Sept. 26, 2026. ↩
- Oregon Department of Revenue, Real Estate Withholding. Checked Sept. 26, 2026. ↩
Ready to take the next step?
Tell True North what you are planning and get local guidance for your next move.
