If you've owned your home for several years and are getting ready to sell, you can probably anticipate earning some profit on the sale, especially because home prices have increased by 54.9% since 2020.[1]
For many people, that’s great news. But it also raises a question that often doesn’t emerge until you’re ready to close: Will I owe capital gains tax for this home sale?
Many homeowners don’t owe any capital gains when selling their primary residence. The IRS allows a large tax-free profit exclusion of up to $250,000 for singles and $500,000 for married couples filing jointly.[2] Even if your profit exceeds that limit, the amount you owe isn’t fixed. There are several legal ways to reduce the taxable portion of your gain.
This guide will help you figure out exactly where you stand: whether you’ll owe capital gains tax, the potential amount, and practical ways to reduce it.
Do you owe capital gains tax on your home sale?
Many primary residence homeowners won’t owe capital gains tax when they sell their home. This is because the IRS lets you exclude a large portion of your profit from taxes.
According to the IRS, individuals can exclude up to $250,000, while married couples filing together can exclude up to $500,000 in profit.[2] If your gains fall below those limits, you do not owe capital gains tax.
However, you must meet some specific requirements to qualify for the exclusion. You must have owned and lived in the home as your primary residence for at least two of the the last five years before selling. The two years don’t have to be consecutive.
For example, you might live in the home for one year, rent it for a year, then move back for another year and still qualify for the exclusion.
Note: You can only claim this exclusion once every two years. If you sold another home and used the exclusion within the past two years, you're not eligible to use it again yet.
Quick self-check
You likely won’t owe capital gains tax if you check all of these three boxes:
This was my primary residence.
I lived here at least two of the last five years.
I haven't claimed this exclusion in the last two years.
If you check all three, the next step is to calculate your capital gains.
If you don't check all the boxes, or if your profit exceeds the exclusion limits, the next sections will walk you through ways to reduce your capital gains tax owed.
How to calculate your capital gains
To estimate whether you’ll owe tax, you need to first determine your capital gain from the sale. Here’s a step-by-step guide on how to do it.
1. Start with your sales price
This is what the buyer paid you. Let’s say you purchased a home in 2017 for $320,000, paid $8,000 in closing costs, and sold it in 2025 for $680,000.
2. Subtract your adjusted basis
Your adjusted basis is the original purchase price, plus any capital improvements you make once you buy a home and certain purchase closing costs.
Remember that not all capital improvements count. You can’t include improvements like painting, fixing cracks or leaks, or replacing broken fixtures in your basis.[3]
Using our example, let’s say that three years after buying your dream home, you remodel the kitchen, spending $40,000. Your adjusted basis would be:
$320,000 + $40,000 + $8,000 = $368,000
“Many sellers fail to properly account for improvements versus repairs or miss capital improvements entirely. Adding a new roof, renovating a kitchen, or installing a new HVAC system should increase the home’s basis,” said Daniel Roccanti, CPA at James Moore & Co.
“On average, sellers can overpay $15,000 to $50,000 in capital gains tax because they overlook these records.”
3. Subtract selling costs
Next subtract expenses related to selling the home. These can include agent commission, legal and title fees, transfer taxes, and staging or marketing costs.
Assuming agent commissions were $40,800 and paid $5,000 in other closing costs, your total selling costs would be $45,800.
4. Calculate your capital gain
Capital gain = Sales price - adjusted basis - selling costs
$680,000 - $368,000 - $45,800 = $266,200
5. Apply the exclusion
You can now reduce or avoid capital gains tax, thanks to the IRS exclusion.
- Single filers: $266,200 − $250,000 exclusion = $16,200 taxable
- Married couples filing jointly: $266,200 − $500,000 exclusion = $0 taxable
If you still want to see exactly how much you’ll earn after a home sale, this seller’s net sheet breaks down everything.
What if you're over the exclusion? Tax rates and what you'll actually pay
If you have a taxable gain left after the exclusion, how much you’ll pay depends on how long you owned the home and your total income for the year.
If you owned the home for more than one year before selling, your gains qualify for long-term capital gains rates. Selling a house after a year or less, gains are taxed as ordinary income. According to the IRS, here are the long-term capital gains rates for 2026:[4]
| Tax rate | Single | Married filing jointly | Married filing separately | Head of household |
|---|---|---|---|---|
| 0% | Up to $49,450 | Not more than $98,900 | Up to $49,450 | Up to $66,200 |
| 15% | $49,451 to $545,500 | More than $545,500 | $49,451 to $306,850 | $66,201 to $579,600 |
| 20% | $98,901 to $613,700 | Over $613,700 | More than $306,850 | Over $579,600 |
Most homeowners who owe capital gains tax fall into the 15% bracket. Using our example earlier, a $16,200 taxable gain at 15% would be $2,430.
High-income earners, those with modified adjusted gross income above $200,000 (single) or $250,000 (married), may also owe an additional 3.8% net investment income tax on taxable gains.
Most states also tax capital gains. Currently only eight states have no state income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, and Wyoming. Make sure you check your state’s capital gains tax guidelines.
How to reduce your capital gains tax (strategies that actually work)
If your projected gain exceeds the exclusion limits, here are strategies to reduce your tax bill.
Document every capital improvement you’ve made
Every capital improvement you make on your home lowers your taxable gain dollar for dollar. Unfortunately, most homeowners forget to keep records. A $35,000 kitchen remodel you forgot to document in 2018 could mean $5,250 in unnecessary tax at a 15% tax rate.
“Homeowners may remember renovating a kitchen or adding a deck years ago, but they don’t always realize how important it is to keep those records,” said Patrick Connelly, real estate agent at The Connelly Team. “Those improvements directly affect the adjusted basis when their accountant calculates capital gains.”
Deduct every eligible selling costs
Most expenses tied to a home sale can help reduce your capital gains tax. These include agent commissions, title insurance, attorney fees, staging costs, and transfer taxes. On a $650,000 sale, these can easily add up to $40,000 to $50,000.
Track your home-office use carefully
If you used part of your house as a home office for a business, a portion of your gain may not be eligible for the exclusion and could trigger depreciation recapture.[3] Make sure that you talk to your accountant before selling.
Time the sale to a low-income year
If you’re nearing retirement or planning to switch careers, you may be able to reduce your capital gains tax because a lower income might put you in a lower tax bracket on gains above the exclusion. That’s why it’s important to run the numbers with your CPA before listing the property.
Tax loss harvesting
Do you have investments in taxable accounts that have decreased in value? Consider selling them in the same tax year you sell your home, which could offset your capital gain dollar for dollar.
For example, if your taxable gain is $30,000 and you have $30,000 in losing stock positions, your net taxable gain could be zero.
Consider an installment sale
In situations where you’re selling directly to a buyer without a lender involved (which is very rare), spreading payments over multiple years can keep you in lower tax brackets each year.
1031 exchanges
This strategy lets you defer capital gains by rolling proceeds from an investment property to another like-kind property. However, this doesn’t work for primary residences.
Edge cases: When the standard rules don't apply
Some home sales fall outside the typical rules. These situations create the biggest surprises for most homeowners when selling a house.
You're selling before you've lived there 2 years
Life happens and may not always work as planned. If you need to sell your house before two years because of a job relocation, medical reason, or an unforeseen event, you still qualify for the IRS prorated exclusion based on how long you lived in the home.[3]
Let’s say you lived in the property for 18 months and are a single filer. Your exclusion would be (months lived there ÷ 24) × full exclusion amount.
(18 ÷ 24) × $250,000 = $187,500
You're selling during or after a divorce
Divorce creates one of the most confusing capital gains scenarios. If you sell the house before finalizing the divorce and file jointly, both spouses may qualify for up to a $500,000 exclusion. However, both must meet the use test of living in the home for at least two years in the last five years.
If you sell after divorce, each ex-spouse can only exclude up to $250,000 of their share of the gain. Still, each individual must meet the ownership and use tests.
There’s a residency trap, though. If one spouse moved out more than two years before the sale date, both may no longer meet the use test and could lose their exclusion entirely. Divorce settlement agreements can include language granting one spouse "use credit" for the period the other spouse was living in the home.
Your home was previously a rental
This is the scenario that surprises sellers most. Connelly calls it the "accidental landlord" problem.
“Someone buys a new home and moves out of the old one. They decide to rent the old one for a few years, thinking they'll sell later, but there's no rush. By the time they eventually do list the property, they may have unknowingly moved outside that primary residence exclusion window."
If you rented out your home before converting it back to your primary residence, two things happen at the time of sale that can work against you.
Nonqualifying use: The IRS reduces your available exclusion proportionally based on how long you used the home for non-primary-residence purposes (rental periods after 2008 count against you). If you rented it out for three years and then lived in it for two years, only 2/5 of the gain is potentially excludable. The remaining 3/5 is taxable, regardless of the exclusion.
Depreciation recapture: Any depreciation you claimed as a tax deduction during the rental period gets recaptured at sale and taxed as ordinary income. This applies even if the rest of your gain qualifies for the exclusion.
“When a client sells a home they previously rented, they’re often shocked that all depreciation claimed over the years is recaptured at a 25% tax rate, even if the property is sold for only a modest gain,” said Roccanti. “Many people think depreciation is just paper losses, but the IRS treats it as taxable income.”
Selling an inherited home has its own capital gains tax rules.
The bottom line
How much capital gains tax you'll pay or avoid when selling a house depends on your specific situation. That includes your profit, how long you lived in the home, and how the property was used over time.
Ready to sell and want to keep more of what you’ve made? Clever Real Estate connects sellers with top local agents at a pre-negotiated lower rate so that you can keep more of your gains.
FAQ
Do I have to report my home sale on my taxes even if I don't owe anything?
Technically, if your entire gain is excluded and you didn't receive Form 1099-S, you don't have to report it. But if you received a 1099-S, you must file Schedule D even if you owe nothing. When in doubt, report it; it's straightforward and protects you from IRS questions later.[2]
I inherited a home and sold it — do the same capital gains rules apply?
Not exactly. Inherited property receives a "stepped-up basis" equal to the home's fair market value on the date of the original owner's death. That resets your cost basis and can dramatically reduce — or eliminate — your taxable gain. The 2-in-5-year primary residence rule does not apply to inherited homes.[5]
What happens if I sell my home at a loss?
Unfortunately, you cannot deduct a loss on the sale of a personal residence on your federal return. Unlike investment properties, losses on primary homes aren't tax-deductible. The loss simply doesn't count for tax purposes. This is different from investment real estate, where losses may offset other gains.[6]
Does the $250K/$500K exclusion ever get updated for inflation?
It hasn't since 1997. Adjusted for home price inflation, the $250,000 limit would be roughly $715,000 today. There is active legislation in Congress (H.R. 1340) that would double the limits and index them to inflation, and the Trump administration has signaled interest in eliminating the cap entirely — but as of early 2026, no change has been enacted.[7]
I used part of my home as a home office — does that affect my exclusion?
It can. If you claimed a home-office deduction using the actual-expense method (not the simplified method) and took depreciation deductions, you'll face depreciation recapture tax on those amounts at sale — even if the rest of your gain is fully excluded. The simplified $5/sq. ft. method avoids this. Talk to a CPA before selling if you've claimed home-office deductions.[3]

