Taxes

Capital Gains Tax on Home Sales: What Homeowners Often Get Wrong

Homeowner reviewing capital gains tax documents at a desk after selling a house

Fact-checked by the MyFinancial101 editorial team

Quick Answer

Most homeowners owe no federal tax on a home sale because the IRS allows a $250,000 exclusion ($500,000 for married couples filing jointly) on primary-residence gains under IRC Section 121. However, gains above those thresholds are taxed at long-term capital gains rates of 0%, 15%, or 20%, plus a potential 3.8% Net Investment Income Tax surcharge, and depreciation recapture is taxed at up to 25% regardless of the exclusion.

The capital gains tax on a home sale applies to your profit, not your gross sale proceeds, a distinction that trips up sellers at closing every year. Under IRS Topic No. 701, qualifying homeowners can exclude up to $250,000 (or $500,000 if married filing jointly) of gain from federal tax, provided they meet both the ownership and use tests. The national median existing-home price stands at $417,800 according to National Association of REALTORS® April 2026 data, more than triple the approximate $127,000 median price when those exclusion limits were set in 1997, per CBIZ’s historical housing analysis.

That gap matters because the exclusion thresholds have never been adjusted for inflation, meaning longtime owners in appreciating markets face real tax liability even on modest homes. This guide covers what the exclusion actually requires, how your cost basis affects the math, when depreciation recapture creates a tax no one warned you about, and how to report the sale correctly, including the counterintuitive rule that you may owe nothing yet still be required to file.

Key Takeaways

  • The $250,000/$500,000 Section 121 exclusion has not been adjusted for inflation since the Taxpayer Relief Act of 1997, even as median home prices have more than tripled.
  • The long-term capital gains rates are 0%, 15%, and 20%, with the 0% rate applying up to $49,450 (single) / $98,900 (married filing jointly) in taxable income, per IRS Revenue Procedure 2025-32 (IRS Topic 701).
  • An additional 3.8% Net Investment Income Tax (NIIT) applies to gains above the Section 121 exclusion if your MAGI exceeds $200,000 (single) or $250,000 (joint), thresholds that are not inflation-adjusted, per the IRS NIIT guidance.
  • Depreciation recapture on a home previously used as a rental or for a home-office deduction is taxed at up to 25% and cannot be sheltered by the Section 121 exclusion, per IRS real estate tax tips.
  • Sellers who fail the full two-year use test due to a job relocation, health event, or unforeseen circumstance may still claim a prorated partial exclusion, for example, one year of residence qualifies a single filer for up to $125,000, per IRS Publication 523.

What “Capital Gains” Actually Means When You Sell a Home

The tax applies to your profit, not the check you receive at closing. Capital gain is calculated as the amount realized (sale price minus selling costs) minus your adjusted cost basis (what you paid plus qualifying improvements). If you bought a home for $300,000, spent $40,000 on improvements, and sold it for $600,000 with $20,000 in commissions and fees, your taxable gain is $240,000, well under the single-filer exclusion.

Many sellers conflate the gross sale price with the taxable amount, which produces unnecessary panic. The number on Form 1099-S, issued by the settlement agent and reported to the IRS, reflects gross proceeds. It says nothing about gain. A seller who received $600,000 at closing but had a $380,000 adjusted basis and $20,000 in selling costs has realized $200,000 in gain, not $600,000 in taxable income. That distinction is what the IRS, tax professionals at firms like H&R Block and TurboTax, and the tax code itself are measuring.

There is one important asymmetry worth naming upfront. If your home sells for less than your adjusted cost basis, you cannot deduct that loss on your federal return. The IRS explicitly bars loss deductions on personal-use property. Gains are taxable; losses are not deductible. That asymmetry is a feature of the tax code, not an oversight.

Short-Term vs. Long-Term Gain

If you owned the home for one year or less before selling, any gain is treated as ordinary income and taxed at your marginal rate, which can reach 37% federally. Most sellers who qualify for the Section 121 exclusion hold the property far longer than one year, so long-term rates typically apply. Still, sellers who buy and sell within a short period, perhaps due to a sudden relocation, should verify their holding period before assuming a favorable rate.

Did You Know?

The national median existing-home sales price reached $417,800 in April 2026, per the National Association of REALTORS®, more than three times the approximate $127,000 median when the $250,000/$500,000 exclusion limits were written into law in 1997. For homeowners who bought in the 1990s, this price growth alone can push gains past the exclusion cap.

The $250K/$500K Exclusion: What You Actually Have to Prove

Qualifying for the Section 121 exclusion requires satisfying two independent tests: the ownership test (you owned the home for at least two of the five years before the sale) and the use test (you lived in it as your primary residence for at least two of those same five years). Meeting both is required; neither alone is sufficient.

Married couples often misread the joint exclusion. Only one spouse needs to satisfy the ownership test, but both must independently meet the use test to claim the full $500,000 exclusion. A couple where one spouse moved in only 18 months before closing qualifies for only $250,000, not $500,000, because that spouse fails the use test individually. This distinction is buried in IRS Publication 523 and is regularly overlooked by sellers and, frankly, by some real estate agents.

The Two-Year Frequency Limit and What “Primary Residence” Really Means

You cannot claim the Section 121 exclusion if you used it on a different home sale within the prior two years. Buyers who move up frequently, selling one home, buying another, then selling again quickly, can easily burn the exclusion before they realize the cooldown clock is ticking.

The IRS does not simply accept your word that a home was your primary residence. The agency applies a facts-and-circumstances test examining where you registered to vote, which address appears on your driver’s license and tax returns, where your bank accounts are registered, and where you attend religious services or belong to clubs. “I felt like it was my main home” is not a standard that survives audit scrutiny.

Sellers with multiple properties should document primary-residence intent contemporaneously, not retroactively. Bank statements from institutions like Chase, Bank of America, or Wells Fargo showing the home address on file, combined with utility records and voter registration, build the kind of paper trail that actually holds up. Credit bureaus such as Experian, Equifax, and TransUnion also show the address history tied to your credit file, which the IRS may reference.

Diagram showing IRS ownership and use test requirements for the Section 121 home sale exclusion

Your Cost Basis Is Probably Higher Than You Think

Your adjusted cost basis starts with the original purchase price and increases with qualifying capital improvements. A new roof, HVAC system, room addition, driveway, or kitchen gut renovation all count. Routine maintenance, painting, fixing a leaky faucet, replacing a furnace filter, does not. The difference matters because every dollar added to your basis reduces your taxable gain dollar-for-dollar.

Selling costs also reduce your taxable gain by decreasing the “amount realized.” Agent commissions, attorney fees, transfer taxes, and even professional staging costs can be subtracted. On a $600,000 sale with $36,000 in commissions and $4,000 in other closing costs, the amount realized drops to $560,000 before you even calculate the gain.

Tax professionals and CPAs across firms from solo practices to national advisory companies consistently advise the same thing: keep thorough records of every qualifying expenditure, and engage a tax professional in the year you sell. The IRS, CBIZ, and independent practitioners all emphasize that the documentation burden falls on the taxpayer, not the agency.

The Documentation Problem Nobody Wants to Think About

The real challenge is proving improvements claimed 10 or 15 years after the fact. Permits, paid invoices, contractor receipts, and before-and-after photographs are what survive an IRS audit. Credit card statements that say “Home Depot, $4,200” establish that you spent money; they do not prove the expenditure was a capital improvement rather than a repair.

Sellers who cannot substantiate improvements end up with an artificially low basis and a larger taxable gain. This is not a hypothetical risk. It is the scenario that plays out whenever a homeowner kept the home for two or three decades without maintaining records. Starting a simple folder of renovation paperwork the day contractors finish a project is the single easiest way to protect thousands of dollars at sale time. If you are also managing broader financial organization, our guide on free IRS tax help and overlooked credits covers additional documentation strategies worth reviewing.

What Tax Rate Will You Actually Pay?

For gains above the Section 121 exclusion held longer than one year, federal long-term capital gains rates in 2026 fall into three tiers, set by IRS Revenue Procedure 2025-32:

Filing Status 0% Rate (up to) 15% Rate (up to) 20% Rate (above)
Single $49,450 $545,500 $545,500
Married Filing Jointly $98,900 $613,700 $613,700
Head of Household $66,750 $580,400 $580,400
Married Filing Separately $49,450 $306,850 $306,850

These rates apply to taxable income including the gain, not just to the gain in isolation. A single seller with $40,000 in wages and a $70,000 taxable gain (after exclusion) has total taxable income of $110,000, and only the portion that falls within each bracket is taxed at that rate. Because a large sale gain can stack on top of ordinary income and push you into a higher bracket for the year, timing the sale matters more than most sellers realize.

That stacking effect is where many sellers get surprised. A retired couple living on $60,000 in Social Security and pension income might expect to stay in the 15% capital gains bracket, then discover that a $300,000 taxable gain from selling a longtime home bumps a portion of their gain into the 20% tier. The math is tractable, but only if you model it before you close.

The Hidden 3.8% Surcharge Most Sellers Never See Coming

The Net Investment Income Tax (NIIT) adds 3.8% on the lesser of net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly), per IRS NIIT guidance. These thresholds are fixed by statute and not indexed for inflation. The Federal Reserve and Congressional Budget Office have both noted in separate analyses that bracket creep from non-indexed thresholds effectively raises taxes over time without any legislative vote.

Here is the scenario no top-ranking article addresses directly: a seller with $150,000 in ordinary income sells their home and has $120,000 in gain above the exclusion. That gain pushes MAGI to $270,000, which exceeds the $250,000 married threshold by $20,000. The NIIT applies to the lesser of $120,000 (the gain) or $20,000 (the excess MAGI), resulting in $760 in additional tax. Not catastrophic, but also not zero. Sellers whose ordinary income already sits near the MAGI thresholds should model the full-year tax picture before closing. You can find broader strategies for managing tax exposure in our overview of preparing for tax season.

By the Numbers

According to The Budget Lab at Yale University (2025), only about 10% of homeowner households had primary-residence capital gains above the current Section 121 exclusion thresholds in 2022. But as home prices continue to rise, with the 2025 full-year national median reaching $414,400, per NAR data via PBS NewsHour, that share is expected to grow.

The Depreciation Recapture Trap: Rentals and Home Offices

Homeowners who ever rented their property or claimed a home-office deduction face a specific tax that the Section 121 exclusion cannot shelter: depreciation recapture. Any depreciation claimed after May 6, 1997, must be recaptured and is taxed at a maximum rate of 25% under IRC Section 1250, regardless of how long the seller subsequently lived in the home as a primary residence.

If you claimed $50,000 in depreciation during a rental period, you owe recapture tax on that $50,000 when you sell. At 25%, that is a minimum $12,500 tax, and the Section 121 exclusion does not reduce it by a single dollar. This is a concrete, calculable liability that surprises sellers who converted a rental to a primary residence specifically hoping to use the exclusion.

Remote Workers and the Home-Office Trap

Between 2020 and 2026, millions of W-2 employees and self-employed workers claimed home-office deductions. The tax benefit felt straightforward at the time. The problem surfaces at sale.

Every year depreciation was claimed on the home-office portion of the property, that amount enters the recapture calculation. A homeowner who deducted depreciation on 15% of their home’s value over five years and then sells faces a 25% recapture tax on the cumulative depreciation, even though they are otherwise a standard W-2 seller who plans to claim the full Section 121 exclusion on the rest of the gain. This is not an investor-only issue. It affects remote workers who treated home-office deductions as straightforward annual write-offs without modeling the eventual sale consequences. If you claimed these deductions, consult a CPA before listing.

Platforms like TurboTax and H&R Block‘s tax software do prompt users about prior depreciation, but the prompts are easy to dismiss if you do not understand what Section 1250 recapture means in dollar terms. Many taxpayers click past them.

The Nonqualified-Use Rule: A Gotcha for Airbnb Hosts

Under IRC Section 121(b)(5), gain attributable to periods of nonqualified use, time when the home was used as a rental, vacation property, or second home before the seller moved in as a primary resident, is not excludable even if the seller later satisfies the two-of-five-year test. The rule is proportional: if a seller rented a home for two years, then lived in it as a primary residence for three years before selling, the exclusion covers only 3/5 of the gain. The other 2/5 is fully taxable.

Airbnb hosts who rented a room or a secondary unit of their home face a similar proportional calculation. Most mainstream personal-finance articles do not address this rule at all, which makes it one of the most consequential surprises in a home-sale tax return.

Chart comparing taxable vs. excludable gain for sellers with prior rental periods under Section 121
Did You Know?

The $250,000/$500,000 exclusion thresholds set in 1997 have never been adjusted for inflation, according to NAR’s capital gains policy research. NAR’s commissioned analysis finds that 34% of U.S. homeowners, approximately 29 million households, could already exceed the $250,000 single-filer cap, turning what was designed as a middle-class benefit into an increasingly narrow shelter.

Partial Exclusions, Life Events, and Edge Cases Most Articles Skip

Failing to meet the full two-year use test does not automatically mean zero exclusion. The IRS grants a prorated partial exclusion when the sale is driven by a qualifying reason: a change in employment location, a health condition, or an unforeseen circumstance such as divorce, natural disaster, or multiple births from a single pregnancy. The partial exclusion is calculated as the fraction of two years actually satisfied, multiplied by the full exclusion amount.

A single filer who lived in the home for exactly 12 months before being relocated by an employer can exclude up to $125,000 (12/24 of $250,000). That is not zero. Most sellers, and many agents, do not know this rule exists. It is confirmed in IRS Publication 523 and in Topic 701.

Military Families and Inherited Homes

Members of the uniformed services, the intelligence community, and the Foreign Service may suspend the five-year lookback period for up to 10 years during qualified extended duty, effectively extending the window to meet the ownership and use tests. A service member deployed overseas for four years can pause the clock, preserving eligibility for the full exclusion upon return and eventual sale. This benefit is chronically underreported in personal-finance coverage.

Inherited property deserves separate treatment. When a homeowner dies and leaves a residence to an heir, the heir typically receives a stepped-up cost basis equal to the property’s fair market value at the date of death. This can dramatically reduce or eliminate gain for heirs who sell quickly. However, Section 121 is personal: the heir must independently satisfy both the ownership and use tests to claim the exclusion themselves. An heir who inherits a home, rents it out for three years, and then sells it will have a stepped-up basis but no Section 121 exclusion, meaning the full appreciated value above the date-of-death appraisal is taxable.

The stepped-up basis rule is one area where estate planning and tax planning genuinely intersect. Working with both a CPA and an estate attorney, rather than treating these as separate engagements, often surfaces strategies that neither professional would identify alone. Understanding these distinctions also connects to broader retirement and estate planning. If you are weighing how home equity fits into your long-term financial picture, our piece on prioritizing retirement savings addresses how to think about wealth accumulation across asset types.

How to Report the Sale Correctly, Including When You Owe Nothing

If you received Form 1099-S (Proceeds from Real Estate Transactions), you must report the sale on Schedule D and Form 8949, even if every dollar of gain is excluded and you owe zero federal tax. This requirement exists because the IRS receives a copy of the 1099-S and will cross-reference it against your return. An unreported sale triggers an automatic notice.

Sellers who fully qualify for the Section 121 exclusion and did not receive a 1099-S are generally not required to report the transaction at all. But “not required” is not the same as “should not.” Keeping records in case of a future IRS inquiry is essential, particularly if the gain was close to the exclusion limit or if there was any rental history.

State taxes add another layer. California, for instance, does not conform to the federal Section 121 exclusion in all respects, and some states impose their own capital gains taxes at rates that differ significantly from federal rates. The Tax Foundation tracks state-level capital gains treatment and is a reliable starting point for sellers in high-tax states like California, New York, and New Jersey.

Estimated Tax Payments and the Penalty Risk

A large taxable gain creates a significant tax liability that cannot be covered by withholding from a paycheck. If you do not make quarterly estimated tax payments in the year of the sale, the IRS can assess an underpayment penalty under IRC Section 6654, even if you pay the full balance by April 15. The penalty calculation is based on how much should have been paid each quarter.

The practical implication: if you sell in April, your first estimated payment is due that same month. Waiting until you file your return the following April to settle up is almost guaranteed to generate a penalty. Sellers expecting a large taxable gain should consult a tax professional before closing, not after. The CFPB (Consumer Financial Protection Bureau) offers general resources on closing costs and settlement disclosures, but for tax-specific planning around a sale, a licensed CPA or enrolled agent is the right call.

NAR’s Chief Advocacy Officer has described the policy stakes directly, noting that the capital gains exclusion for home sales has not been updated in decades and is effectively taxing home equity while discouraging longtime homeowners from selling, per Shannon McGahn, Executive Vice President and Chief Advocacy Officer at the National Association of REALTORS®.

For sellers who cannot defer or minimize gain any other way, one strategy worth modeling with a CPA is an installment sale under IRC Section 453. Structuring a sale with seller financing allows you to spread gain recognition across multiple tax years, potentially keeping annual taxable income below the thresholds that trigger the 20% rate or the NIIT, instead of recognizing a large lump sum in a single year. This approach requires legal and tax coordination. It is more accessible than most personal-finance coverage suggests, but it also means the buyer makes payments to you over time, which creates credit and collection risk that a lump-sum cash sale does not.

Pro Tip

Consider timing your home sale to a year when your other income is lower, such as early retirement, a sabbatical, or a year with no bonus. Because capital gains rates are applied to total taxable income, selling in a low-income year can drop an otherwise 20%-rate gain into the 15% or even 0% bracket, potentially saving tens of thousands of dollars. Pair this with maximizing pre-tax retirement contributions (401(k), HSA) in the sale year to reduce your MAGI below the NIIT threshold. If you are building toward that kind of financial flexibility, our guide on starting to invest with zero experience outlines foundational steps.

Frequently Asked Questions

Do I have to pay capital gains tax every time I sell a home?

No. Most sellers owe nothing because the Section 121 exclusion shelters up to $250,000 (single) or $500,000 (married filing jointly) of gain on a primary residence sale, provided both ownership and use tests are met. Tax is only due on gain that exceeds those limits, and even then, only if your total income pushes you into a taxable bracket after the standard deduction.

What if I only lived in my home for one year before selling?

You may still claim a partial exclusion if the sale was caused by a qualifying event such as a job relocation, illness, or unforeseen circumstance, per IRS Publication 523. A single filer who lived there for 12 of the required 24 months can exclude up to $125,000, not zero. Without a qualifying reason, no exclusion applies and the full gain is taxable.

Does the $500,000 married exclusion apply if only one spouse owned the home?

Partially. Only one spouse needs to satisfy the ownership test to claim the $500,000 exclusion, but both must meet the use test independently. If only one spouse lived in the home for the required two years, the maximum exclusion drops to $250,000, not $500,000. This distinction matters most in blended-family or late-in-life remarriage situations.

Will I owe the 3.8% NIIT if my gain is fully excluded?

No. The NIIT applies only to gains that are included in net investment income, meaning gains above the Section 121 exclusion. If your entire gain is excluded, no NIIT applies. The surcharge only becomes relevant when the excluded portion is not large enough to shelter the full profit from the sale.

What happens to my home-office depreciation when I sell?

Depreciation claimed on a home-office portion of your residence must be recaptured and is taxed at up to 25% under IRC Section 1250, regardless of whether you otherwise qualify for the full Section 121 exclusion. The recaptured amount is not sheltered by the exclusion. This applies to both self-employed workers and any W-2 employee who took home-office deductions.

Do I have to report the sale if I owe no tax?

If you received Form 1099-S from the settlement agent, yes, you must report the sale on Schedule D and Form 8949 even if you owe nothing. If you did not receive a 1099-S and fully qualify for the exclusion, the IRS generally does not require you to file a report, though maintaining records of the transaction is strongly advisable.

Can I use an installment sale to reduce my capital gains tax?

Yes, under IRC Section 453, spreading a home sale across multiple tax years through seller financing can keep annual gain recognition below the thresholds for higher rates or NIIT. This is a legitimate tax strategy, but it requires careful legal and financial structuring. It is most useful when your gain significantly exceeds the Section 121 exclusion and you would otherwise recognize a large lump sum in a single high-income year. If you are navigating other aspects of your tax picture alongside this, our overview of investment tax considerations covers related capital gains concepts.

CJ

Camille Jourdain

Staff Writer

Camille Jourdain is a CPA and tax strategist with a passion for helping small business owners and entrepreneurs minimize their tax burden legally and efficiently. She spent eight years at a Big Four accounting firm before launching her own consulting practice focused on independent business owners. Her writing breaks down complex tax code into actionable, plain-English guidance.