Your Guide To Understanding Real Estate Capital Gains Tax
Many longtime homeowners have watched their humble family abode transform into an unexpected gold mine—only to find that wealth comes with a catch: a bill from the IRS.
Last year, Realtor.com® exposed how the capital gains tax has morphed into a hidden home equity tax—hitting everyday homeowners as rapid appreciation drives values up, and inflation continues to erode the protection of the Section 121 exclusion, which was last set in 1997.
Now, as this tax once reserved for wealthy investors lands on more kitchen tables, homeowners nationwide need to understand their potential exposure and how to limit it.
By the numbers: Capital gains fact sheet
At a glance, the capital gains tax can be understood as:
- $250,000: Maximum tax-free profit on a primary home sale for single filers.
- $500,000: Maximum tax-free profit on a primary home sale for married couples.
- 13 million: Homeowners with more equity than the exclusion currently protects
- 1997: The last time these tax limits were updated
What do capital gains refer to in real estate?
The capital gains tax is levied on the profit you make when you sell an asset, like stocks, real estate, or a business. But for homeowners, special rules have long shielded everyday sellers from owing tax on the sale of their primary home—at least up to a point.
When you sell your primary home, the IRS protects a portion of your profit from capital gains taxes. Single homeowners can exclude up to $250,000 of profit, while married couples filing jointly can exclude up to $500,000. If your profit stays below these limits, you won’t owe a penny of federal capital gains tax on your home sale.
Who qualifies?
To claim the full exemption, you must meet three basic rules:
- Ownership: You must have owned the home for at least two of the last five years.
- Use: You must have lived in it as your main residence for at least two of the last five years.
- Timing: You can’t have used this exclusion for another home sale within the last two years.
These requirements prevent people from flipping multiple properties tax-free and are designed to help long-term homeowners keep more of their equity.
No longer 1997: Why more sellers owe taxes now
While it might seem like reasonable, even robust protection, a look at how the housing market has changed since this section of the tax code was las touched proves otherwise.
The current exclusion limits were set in 1997 and haven't budged since. Meanwhile, the national median home price has more than tripled since then.

At the same time, the real purchasing power of exclusion has been cut in half, due to the erosive effects of inflation. If it had kept pace with rising costs, the exemption would sit closer to a $500,000 for single filers and $1 million for married couples.
That dual pressure has pushed an estimated 13.1 million households, or roughly 15% of all owner-occupied households, over their respective exclusion limit, according to research from the National Association of Realtors®. The risk is especially present in high appreciation markets, like San Jose, CA, where 63% of homeowners are estimated to have more equity than the exclusion protects.

How to calculate capital gains tax on a home sale
So, are you over the limit? You'll have to start with calculating your gain with this simple formula:
Capital Gain = Selling Price − (Purchase Price + Improvements and Expenses)
Your eligible costs, also known as your cost basis, include what you paid for the home plus any major improvements and certain selling expenses. This can include remodeling a kitchen, adding a room, installing a new roof, or putting in a pool. Selling expenses like real estate agent commissions and some closing costs count, too.
Once you know your profit, you subtract the allowed exclusion: $250,000 for single filers or $500,000 for married couples filing jointly. If your profit stays below that threshold, you’re in the clear for federal capital gains tax. If it’s over, only the amount above the limit gets taxed.
Short-term vs. long-term
Most homeowners selling a primary residence after living there for years will have long-term capital gains, taxed at a special lower rate between 0% and 20%. (Higher-income households might pay 20%, and the lowest-income homeowners could pay 0%, but that’s rare for large home-sale profits.)
If you sell a home you’ve owned for one year or less, any profit is considered short-term and gets taxed at your ordinary income rate, which is usually higher.
Will you owe capital gains tax?
These examples show how the rules work in real life, so you can gauge if you might owe anything.
Example 1: Move-up buyer in a hot market
A single homeowner bought a starter home for $200,000 10 years ago. They’ve put in $50,000 of upgrades over the years. It’s now worth $500,000.
- Purchase price: $200,000
- Improvements: $50,000 (new bathroom, updated kitchen)
- Selling price: $500,000
Capital gain = $500,000 − ($200,000 + $50,000) = $250,000
As a single filer, they can exclude up to $250,000, so they’d owe zero in capital gains tax.
If the sale price were slightly higher, say $520,000, the gain would be $520,000 − $250,000 = $270,000. They could exclude $250,000, but $20,000 would be taxable at their capital gains rate.
Example 2: Longtime owners downsizing
A married couple bought a home decades ago for $100,000 and invested $100,000 in renovations. Now they’re selling in a hot market for $800,000.
- Purchase price: $100,000
- Improvements: $100,000 (additions, new roof)
- Selling price: $800,000
Capital gain = $800,000 − ($100,000 + $100,000) = $600,000
A married couple filing jointly can exclude up to $500,000, leaving $100,000 taxable. At a typical 15% long-term capital gains rate, they’d owe about $15,000 in federal capital gains tax.
Example 3: Selling sooner than expected
A young family buys a home for $400,000 but has to move after just 18 months due to a job transfer. They sell for $500,000, a $100,000 gain.
- Purchase price: $400,000
- Improvements: None
- Selling price: $500,000
Capital gain = $500,000 − $400,000 = $100,000
They owned the home for only 18 months, so they don’t qualify for the full exclusion. But since the move was due to a job transfer, they can claim a partial exclusion. They lived there for 75% of the required time (18 months out of 24), so they can exclude 75% of $500,000, which is $375,000.
Their $100,000 gain is under the partial limit ($375,000), so they’d owe zero capital gains tax.
Can I reinvest my home sale profit to avoid taxes?
One way to skirt the capital gains tax is to reinvest your home sale into another property—but only in limited circumstances.
A 1031 exchange allows investors to roll over their profits into the purchase of another like-in-kind property (i.e., profits from an apartment complex sale can be used to buy another apartment complex, free of capital gains).
The catch here is that it only applies to investment properties. While some owners may be willing to go through the process to convert their primary residence into a rental investment property before the sale, they still wouldn't be able to make their next purchase their primary residence.
How to reduce capital gains tax on your home sale
If you can't use a 1031 exchange and you still think your profit might push you over the federal exclusion, there are ways to soften or even avoid a big tax bill.
Start by increasing your cost basis. Keep every receipt for home improvements. Renovations, additions, new systems, all these can boost your cost basis and lower your taxable gain. Don’t forget to factor in real estate agent commissions and some closing costs, too.
Time your sale to maximize the exclusion. If you’re close to the two-year mark, hang on if possible to lock in the full protection of 121. Staying over one year also ensures your profit is taxed at the lower long-term capital gains rate.
Maximize the married exemption. If you’re married, both spouses must meet the use test to claim the full $500,000. After a spouse’s death, the surviving spouse may still claim the full amount for up to two years.
If you're concerned about legacy, consider staying put. Some older homeowners choose to keep their home and pass it to heirs, who get a “step-up in basis.” This means your kids inherit the home at its current value, wiping out past capital gains. While it's not for everyone, it’s an important factor to consider when estate planning.
And whatever you do, talk to a pro. If your profit is likely to exceed the limit, or if you have unique circumstances (like rental use or a previous exclusion), a tax adviser can help you find ways to save or plan ahead.
Categories
Recent Posts









GET MORE INFORMATION

