Educational information, not legal, tax or financial advice. Laws and numbers change. Confirm your situation with a licensed attorney, CPA or loan originator before you act.
Start here: most home sellers owe nothing
If you’re worried about a huge tax bill from selling your home, the first thing to know is that for most primary-residence sellers, there isn’t one. Under IRS Section 121, if you owned and used the home as your main residence for at least two of the five years before the sale, you can exclude:
- Up to $250,000 of gain if you file as single, or
- Up to $500,000 of gain if you’re married filing jointly.
This exclusion is automatic (you don’t have to apply for it), it applies whether you sell for cash or through an installment sale, and it can generally be used again for a future home sale as long as you meet the ownership and use tests again. For most sellers whose gain is fully covered by the exclusion, the entire principal portion of the sale is tax-free — full stop.
Where it gets more complicated
The exclusion doesn’t erase every tax question. A few groups genuinely need to think harder about the tax picture:
1. Gain above the exclusion
Long-tenure owners in appreciated markets, and single or recently widowed owners (who may only qualify for the $250,000 exclusion even though the home appreciated as a couple), can have gain above their limit. According to NAR estimates cited in industry research, roughly a third of U.S. homeowners already have gains above $250,000, a share expected to keep growing. For gain above the exclusion:
- An installment sale (IRS Section 453) — receiving the sale price over time, such as through seller financing — lets you spread the taxable portion of the gain over the years you receive principal payments, instead of recognizing it all in the sale year. This can help keep more of the gain in the lower 0%/15% long-term capital gains brackets instead of the 20% top bracket, and can help you stay under the income thresholds for the 3.8% Net Investment Income Tax and for Medicare’s IRMAA surcharge (see below).
- This is a deferral and smoothing tool, not tax elimination. The gain above your exclusion is still fully taxable eventually; the installment sale just changes the timing.
2. Rental and investment property
Section 121 doesn’t apply to property that isn’t your primary residence. A rental or investment property sale is fully taxable, and any depreciation you claimed over the years is generally “recaptured” and taxed as ordinary income (up to 25%) in the year of sale — this recapture generally cannot be deferred through an installment sale. The remaining gain, though, can still be spread over time through an installment sale, which is where this strategy adds the most real value.
3. The Medicare surcharge (IRMAA) angle
Medicare bases your Part B and Part D premiums on your income from two years earlier, and it applies as a hard cliff: cross a threshold by even a dollar, and you pay the full surcharge for that bracket, potentially hundreds of dollars more per month, for a full year. A single large capital-gains year — from selling a highly appreciated home for cash, for example — can push a retiree into a higher IRMAA bracket two years later, even if their normal income is modest. Spreading a taxable gain over several years through an installment sale can help some sellers avoid crossing that threshold. This is highly dependent on your full financial picture (Social Security, pensions, required minimum distributions, and more) — this is exactly the kind of decision to run past a CPA or financial planner before you sell, not after.
4. Net Investment Income Tax (NIIT)
A 3.8% surtax applies to net investment income (including taxable capital gains) for taxpayers above certain income thresholds. It can apply to the taxable portion of a home-sale gain above your Section 121 exclusion. Confirm your exact threshold and the calculation with a CPA, since it depends on your full modified adjusted gross income, not just the home sale.
5. The estate-planning tradeoff
If you hold a home until death rather than selling it, your heirs typically receive a “stepped-up” basis, which can eliminate the original gain for tax purposes entirely. A seller-financed note, by contrast, does not get this step-up if the seller dies before it’s paid off — it’s generally treated as “income in respect of a decedent.” For older sellers weighing an installment sale, this is a real tradeoff to discuss with an estate attorney, not just a tax preparer.
What an installment sale changes, concretely
| Lump-sum sale | Installment sale (e.g., seller financing) | |
|---|---|---|
| Gain within your Section 121 exclusion | Tax-free either way | Tax-free either way — no difference |
| Gain above your exclusion | Fully taxed in the sale year | Spread over the years you receive principal |
| Interest earned on the note | N/A | Taxed as ordinary income each year, like CD interest |
| Depreciation recapture (rental property) | Taxed in the sale year | Still generally taxed in the sale year |
| Effect on IRMAA / NIIT | One potential income spike | Can be smoothed across years |
| Estate step-up if seller dies before payoff | Applies normally | Generally does not apply to the outstanding note |
How your basis affects the numbers
Your taxable gain isn’t simply “sale price minus what you paid.” It’s the sale price minus your adjusted basis — generally your original purchase price, plus the cost of qualifying capital improvements (a new roof, an addition, major renovations) over the years, minus any depreciation claimed if part of the home was used for business or rental purposes. Keeping records of major improvements can meaningfully reduce your taxable gain, sometimes enough to bring a sale that looked like it exceeded the Section 121 exclusion back under it. If you’ve owned your home for decades, it’s worth the time to reconstruct this history — old receipts, permits, and contractor invoices — before you calculate your gain, rather than assuming the worst.
It’s also worth noting that selling costs — real estate commissions, some closing costs, and certain fees — reduce your amount realized, which lowers your gain further. A CPA or a good tax-prep worksheet (IRS Publication 523 includes one) will walk through this calculation step by step.
A practical checklist
- Calculate your actual gain (sale price minus your adjusted basis, including qualifying improvements) before assuming you’ll owe tax.
- Check whether you meet the 2-of-5-years ownership and use test for Section 121.
- If your gain is fully covered by the exclusion, know that an installment sale offers no tax benefit — decide based on income, risk, and liquidity instead (see our guide on home equity and retirement income).
- If your gain exceeds the exclusion, or the property is a rental, ask a CPA to model a lump-sum sale against an installment sale, including the IRMAA and NIIT impact.
- If you’re older or have health considerations, ask an estate attorney about the stepped-up basis tradeoff before choosing an installment sale.
- Never assume “no capital gains tax” applies to you without checking your specific numbers — the exclusion amounts and thresholds above are current as of the 2026 tax year and can change.
How Clavesta fits in
Clavesta’s calculators apply the Section 121 exclusion first and show you the honest result before anything else — tax appears as a secondary panel, not the headline, because for most sellers the real decision is about income, risk, and liquidity, not tax. Our retirement tax planner walks through NIIT and IRMAA year by year and can export a CSV for your CPA. We always recommend confirming your specific numbers with a CPA before you sell.
Selling directly also changes what you keep: see how much a realtor costs and run the closing costs and savings calculator.
Educational information, not legal, tax or financial advice. — Clavesta Editorial Team
Frequently asked questions
- Do I owe capital gains tax on my home sale?
- Most primary-home sellers owe nothing. If you owned and lived in the home as your main residence for at least 2 of the 5 years before the sale, Section 121 excludes up to $250,000 of gain (single) or $500,000 (married filing jointly) from tax entirely. Only gain above that amount is taxable. Confirm your specific numbers with a CPA.
- Does seller financing (an installment sale) avoid capital gains tax?
- No — it defers tax on gain above your Section 121 exclusion, spreading it over the years you receive principal payments, rather than eliminating it. If your entire gain is already covered by the exclusion, an installment sale has no tax benefit; the interest you earn is simply taxed as ordinary income, same as interest from a CD.
- What is the Net Investment Income Tax (NIIT), and does it apply to me?
- The 3.8% NIIT applies to certain investment income, including taxable capital gains, for taxpayers above set income thresholds (commonly cited around $250,000 modified adjusted gross income for married couples filing jointly, unchanged since the tax's creation and not indexed for inflation). It can apply to the taxable portion of a home-sale gain above your Section 121 exclusion. Confirm your threshold and calculation with a CPA.
- Can spreading a gain over several years affect my Medicare premiums?
- Yes, potentially. Medicare's IRMAA surcharge is based on your income from two years earlier, and it works as a cliff — crossing a threshold by even $1 triggers the full surcharge for that tier. A single large gain in one year can push you into a higher IRMAA bracket two years later; spreading a taxable gain over several years (through an installment sale) can help some sellers avoid that. This depends heavily on your full income picture — confirm with a CPA or financial advisor.
- What happens to a seller-financed note if the seller dies before it's paid off?
- This is a real and often-overlooked issue. A home held until death normally passes to heirs with a "stepped-up" tax basis, erasing the original gain for tax purposes. A promissory note from an installment sale, by contrast, is generally treated as "income in respect of a decedent" and does not get that step-up. Sellers considering an installment sale late in life should discuss this tradeoff with an estate attorney before choosing that structure.
- Does this apply to a rental or investment property the same way?
- No. Section 121's exclusion applies only to a primary residence. Rental and investment property gains are fully taxable (subject to other rules), and any depreciation you claimed is generally "recaptured" and taxed in the year of sale — even if you spread the rest of the gain over an installment sale. This is where installment-sale tax deferral tends to matter most. Confirm the recapture calculation with a CPA.
Sources
- IRS Publication 523 — Selling Your Home (opens in a new tab)irs.gov
- IRS Publication 537 — Installment Sales (opens in a new tab)irs.gov
- IRS Topic No. 701 — Sale of Your Home (opens in a new tab)irs.gov
- IRS — Net Investment Income Tax FAQs (opens in a new tab)irs.gov
- Medicare.gov — Costs / Part B premium (IRMAA) (opens in a new tab)medicare.gov
