How much tax do you pay when you sell your home?

Selling a home is one of the biggest financial transactions most people ever make. And as there is with any large gain, there will likely be a sizable tax bill with it.

Capital gains taxes are one of the most misunderstood and mishandled parts of the home sale process.

That’s why before you sell, it’s important to see how you can mitigate that future bill through proactive planning.

In this article, we'll answer a few thoughts/questions/concerns home sellers ask us, and a few they really should be asking.

 

Question #1: "I Assumed I Wouldn't Owe Anything?"

The most common mistake home sellers make with capital gains tax, and how costly it is.

An expensive mistake we see is sellers assuming the $250k / $500k primary residence exclusion covers everything.

The primary residence exclusion allows you, if single, to exclude up to $250k of gain from the sale of your primary residence. Married filing jointly, that doubles to $500k. The important part here is gain, meaning the difference between what you sold for and your adjusted cost basis. Your adjusted cost basis = what you originally paid plus qualifying improvements.

Unfortunately, that exclusion does not cover much in places like the Bay Area, where home values have risen substantially over the past decade. A Danville, CA couple who bought their home in 2003 for $300k and sells today for $2M would have a $1.7M gain. After their $500k exclusion, they still have $1.2M of taxable gain, potentially taxed at 15–20% in federal long-term capital gains tax, plus state taxes.

That's a six-figure tax bill that could have been reduced with planning.

 

Question #2: “What do I do when the Primary Residence Exclusion isn’t enough?”

How we help clients reduce their tax bill when the exclusion doesn't cover everything.

As discussed above, the primary residence exclusion often isn’t enough in high cost of living areas.

Or, if it does cover your full gain, you might not be qualified for it. For example, you are not qualified if you haven't lived in the home for two of the last five years.

In both cases, there are still ways to reduce what you owe.

  1. Maximize your adjusted basis

    Your taxable gain = Sale Price – Basis. Every dollar you add to your basis is a dollar of gain that disappears. Qualifying home improvements like a kitchen remodel, a new roof, or added square footage all increase your basis.

  2. Tax-loss harvesting elsewhere.

    If you have investment accounts with unrealized losses, selling those positions in the same tax year can offset capital gains from your home sale. This requires coordination between your tax advisor and your investment strategy, which is why we always suggest having your advisor and accountant working together.

  3. Installment sales.

    If a buyer is open to it, structuring the sale as an installment arrangement spreads your gain recognition, and your tax bill, over multiple years. This can be valuable if spreading income keeps you out of a higher bracket or below the NIIT threshold (more on that below).

  4. Charitable giving strategies.

    Donating appreciated assets, or contributing to a donor-advised fund in a high-income year, can reduce overall taxable income in the year of the sale.

 

Question #3: “What is this additional 3.8% Tax?”

Which sellers are most likely to be blindsided by the Net Investment Income Tax, and when it kicks in.

The Net Investment Income Tax (NIIT) is a 3.8% tax that applies to investment income for higher-income taxpayers. This is relevant here because it includes capital gains from home sales.

NIIT applies if your Modified Adjusted Gross Income (MAGI) exceeds $200k for single filers, or $250k for married couples filing jointly.

If your gain qualifies for the primary residence exclusion, the excluded amount doesn't count toward NIIT, but any taxable gain does. So, if you and your spouse have a $1M gain, your $500k exclusion applies, and the remaining $500k is potentially subject to both regular long-term capital gains tax and the 3.8% NIIT.

This mostly affects high earners who already have significant income from salaries, rental properties, or business interests. A large home sale gain can push income well over the threshold in a single year, making planning (ideally the year before the sale) essential.

 

Question #4: “We made home improvements…how do we use those to adjust our basis?”

Tracking home improvement costs lowers your tax bill, so you need to keep adequate records.

Your home's adjusted cost basis includes the cost of capital improvements made over the years.

The IRS distinguishes between repairs (which don't count) and improvements (which do). Things like adding a deck, replacing your HVAC system, finishing a basement, or installing new windows all increase your basis and reduce your taxable gain.

The problem is that most sellers either don't track these costs, or they throw away records without realizing they have tax value that lasts the life of the home.

What you should be keeping, permanently, for every home:

  • Permits and contractor invoices for any capital improvement project.

  • Bank and credit card statements that corroborate payments.

  • Before-and-after photos for major renovations (useful if the records are ever questioned).

  • Closing documents from when you purchased the home (your original basis).

  • Settlement statements from any refinances that involved capital improvements.

Even partial records are better than none. It takes time, but recovering $50,000 of basis can easily save $10,000–$15,000 in taxes.

 

Question #5: “Are there any exceptions to these rules?”

What sellers in special situations most misunderstand about their capital gains exposure.

Several life events create capital gains tax situations that don't follow the standard rules.

  1. Divorce

    When a home is transferred to one spouse as part of a divorce settlement, the receiving spouse inherits the original cost basis, not the fair market value at the time of transfer. That means a large, embedded gain can follow the home. Also, a divorced individual selling within two years of the divorce may still be able to use a partial exclusion based on the time they lived in the home before the split.

  2. Inherited property

    This is one of the most favorable situations in the tax code. Inherited property receives a "step-up in basis" to the fair market value at the date of the original owner's death. If your parent bought a home for $150k that's now worth $2M, your basis is $2M. In this case, you could sell immediately with little to no capital gains tax.

  3. Recent widowhood

    A surviving spouse has a two-year window after their spouse's death to use the full $500,000 married exclusion, but only if they sell during that window, and before filing as a single taxpayer.

  4. Military service

    Active-duty military members can suspend the five-year ownership and use test for up to ten years while on qualified extended duty. This means a service member who couldn't meet the two-out-of-five-year residency requirement due to deployment may still qualify for the full exclusion.

  5. Unforeseen Events like Job Changes or Health Issues

    The general rule is that you can only use the primary residence exclusion once every two years. But, there's a partial exclusion when a sale is driven by things like a job change or health issue. You can use this even if you haven't met the two-year ownership and residency requirements, or if you've used the exclusion recently. The partial exclusion is calculated as a fraction of the full amount: how many months you met the requirements, divided by 24 months. So, if you lived in a home for 12 months before a job relocation forced a sale, you could potentially exclude up to $125,000 of gain as a single filer (half of the full $250,000).

 

Question #6: “When do I need to start planning?”

If a seller comes to us six months out, here's what we can do that we can't do after the fact.

The most valuable thing we can do with a six-month runway is build a tax projection and stress-test your options before you're committed to anything.

That means:

  • Calculating your gain.

  • Reviewing every capital improvement you've made for basis documentation.

  • Modeling the impact of the sale on your income and evaluating what it does to your tax bracket, NIIT exposure, and eligibility for the full exclusion.

  • Seeing how it interacts with other planning that year (i.e. retirement contributions, investment rebalancing, charitable giving).

With enough time, we might recommend selling certain investments at a loss in the same tax year, shifting a portion of charitable giving into that year, structuring an installment sale, or accelerating planned home improvements to maximize your basis.

We might identify that you qualify for a partial exclusion rather than none at all, or that widowhood timing creates a narrow window you should act on.

These are not small adjustments. For many sellers, early planning is the difference between a tax bill of $40,000 and of $110,000, or between owing nothing and owing something.

 

Capital gains tax on a home sale isn't a simple calculation, and it’s made more difficult when  you account rising home values, overlapping income sources, and life events like divorces, inheritances, or military service.

If you're planning to sell in the next year, reach out. The earlier we talk, the more we can do.

As always, we recommend working with a professional who understands both tax strategies and wealth management.

Author: Ryan McCloskey, CFP®

 

This material is purely intended to be general and educational in nature, and should not be construed as specifically-tailored investment, financial planning, tax, legal, or other professional advice. Information and data contained herein is as-of the date of publication, and may be subject to change in the future without notice. Any investment performance referenced is purely past performance, which is no guarantee of any future performance. Nothing contained herein should be construed as an offer to sell, a solicitation of an offer to buy, or a recommendation of any security or other financial product or investment strategy. All investment, tax, and financial planning strategies involve risk that you should be prepared to bear. You are highly encouraged to consult with professionals of your choosing before taking any action based on this material.

Next
Next

Mini Case Study: Spousal Lifetime Access Trust