Couples Advisor Match

Capital Gains Tax When Married Couples Sell Their Home (2026 Guide)

Married couples get a $500,000 federal income tax exclusion on home sale gains under IRC §121 — double the $250,000 available to single filers. In most cases, a couple that bought a home for $400,000 and sells it for $900,000 owes zero federal tax on the $500,000 gain. But the rules on who qualifies, what happens when only one spouse meets the tests, and what you owe if your gain exceeds $500,000 require careful planning. This guide covers all of it for 2026.

The short version for most couples: If you have owned and lived in your home as your primary residence for at least 2 of the last 5 years, and your gain is $500,000 or less, you owe no federal capital gains tax. Your gain is the sale price minus your adjusted basis (purchase price plus improvements minus selling costs). Most U.S. homeowners who bought more than a decade ago fall comfortably within this exclusion.

The $500,000 exclusion: what married couples can exclude

Under IRC §121,1 married couples filing jointly can exclude up to $500,000 of capital gain from the sale of a principal residence from federal income tax. Single filers get $250,000. This exclusion has not been adjusted for inflation since it was set in 1997 — meaning it covers less of the real-dollar gain than it once did in expensive markets.

The exclusion applies to your gain, not the sale price itself. Gain is calculated as:

Gain = Sale price − Adjusted basis
Adjusted basis = Purchase price + capital improvements + purchase closing costs − selling costs (commissions, transfer taxes, etc.)
Example scenarioNumbers
Purchase price (2010)$450,000
+ Capital improvements (kitchen, addition)$80,000
+ Purchase closing costs added to basis$12,000
= Adjusted basis$542,000
Sale price (2026)$1,050,000
− Selling costs (agent 5% + transfer tax)−$60,000
= Net sale proceeds$990,000
Gross gain (proceeds − adjusted basis)$448,000
§121 exclusion (MFJ)−$500,000
Taxable gain$0

Capital improvements increase your basis; routine maintenance and repairs do not. Keep receipts — they can save you tens of thousands in taxes at sale.

The two eligibility tests — and the asymmetry that trips up couples

To claim the full $500,000 MFJ exclusion, you must satisfy both the ownership test and the use test. This is where married couples run into a trap that single filers don't face.

Ownership test

Only one spouse must have owned the home for at least 2 of the 5 years immediately before the sale. The ownership period can be non-consecutive — you can own the home for 18 months, move away, come back, and if the combined ownership in the last 5 years reaches 24 months, you pass.

Use test

Both spouses must have used the home as their principal residence for at least 2 of the 5 years immediately before the sale to claim the full $500,000 exclusion. Each spouse's use period is calculated independently. Short absences for vacation or medical treatment generally don't interrupt the 2-year use period; long-term absences may.

The critical asymmetry for recently married couples: Say one spouse owned and lived in the home for 4 years before the marriage. The other spouse moved in after the wedding — 14 months ago. The ownership test is satisfied (one spouse owned it for 4 years). But the recently moved-in spouse has only 14 months of use. Because only one spouse meets the 24-month use requirement, the couple can only claim $250,000 — not $500,000 — on a joint return.

The IRS rule is precisely this: for MFJ, the $500,000 exclusion applies only if neither spouse has used the exclusion in the last 2 years and both spouses meet the use test. If only one spouse passes the use test, the maximum exclusion is capped at $250,000 — the amount that qualifying spouse would receive as a single filer.1

Frequency limit

The §121 exclusion can be claimed at most once every 2 years. You cannot use it twice in a two-year window, even if you sell two different homes. If either spouse used the exclusion on a prior home sale within the last 24 months, you cannot claim it on the current sale.

How to calculate your adjusted basis accurately

The difference between a good basis calculation and a poor one can easily be $50,000–$100,000 in tax for a long-held home in an appreciating market. Here's what adds to and subtracts from basis:

ItemEffect on basisNotes
Original purchase price+Starting point
Purchase closing costs (title, attorney, recording fees)+Agent commissions paid by buyer are also included
Capital improvements+Additions, new roof, kitchen remodel, finished basement, HVAC system, new windows
Casualty losses previously deductedIf you took a deduction for storm/fire damage, it reduces basis
Depreciation (home office or rental use)Claiming the home office deduction reduces basis; recapture rules apply at sale
Selling costs at time of saleAgent commission, transfer taxes, title insurance paid by seller, attorney fees — these reduce the net proceeds you're taxed on

What does NOT add to basis: routine maintenance (painting, lawn care, cleaning), repairs that restore the home to working condition, utility hookups, interest on your mortgage, property taxes, or homeowner's insurance.

What if your gain exceeds $500,000

If your home has appreciated beyond $500,000 above your adjusted basis — common in coastal cities and homes held for 20+ years — you will owe capital gains tax on the excess. The rate depends on your total taxable income in the year of sale.

2026 long-term capital gains tax rates (married filing jointly)

Taxable income (MFJ, 2026)Long-term gains rate
$0 – $98,9000%
$98,901 – $613,70015%
Above $613,70020%

2026 LTCG thresholds per IRS Rev. Proc. 2025-32.2 Taxable income = total income minus standard deduction ($32,200 MFJ in 2026) or itemized deductions, whichever is higher. Long-term treatment requires the home was held more than 1 year.

Important: the taxable home sale gain stacks on top of your other income for rate purposes. The bracket does not reset. If you and your spouse already earn $200,000 in wages, a $100,000 taxable home sale gain is stacked on top — your marginal rate on the gain is 15%, not 0%.

Worked example — gain over $500K: A couple in San Francisco bought their home in 2003 for $620,000. They sell in 2026 for $1,650,000. After $80,000 in improvements and $75,000 in selling costs, their adjusted basis is $700,000 (purchase + improvements). Sale proceeds net of selling costs: $1,575,000. Gross gain: $875,000. After the $500,000 MFJ exclusion, taxable gain is $375,000. The couple has $120,000 in other income. After the $32,200 standard deduction, taxable income before the gain is roughly $87,800 — just under the 0% LTCG threshold. The first ~$11,100 of gain is taxed at 0%. The remaining $363,900 is taxed at 15% = about $54,585 in federal capital gains tax on an $875,000 gain. An advisor could model installment sale structures to spread this across multiple years.

Net Investment Income Tax (NIIT)

On top of the capital gains rate, the 3.8% Net Investment Income Tax (NIIT) applies to net investment income when MAGI exceeds $250,000 for married couples filing jointly.3 This threshold has not been adjusted for inflation since 2013.

The excluded portion of your home sale gain is NOT subject to NIIT — it's simply not counted as income. But the taxable portion (gain above $500K) is investment income and enters your MAGI. This can trigger NIIT even if your wage income alone was below $250K:

Special situations for married couples

One spouse owned the home before the marriage

This is one of the most common situations couples ask about. The rules work as follows:

Surviving spouse: the 2-year window at $500,000

When a spouse dies, the surviving spouse is typically left filing as a single individual — which would cut their exclusion from $500,000 to $250,000. IRC §121(b)(4) creates an important exception: a surviving spouse may claim the full $500,000 exclusion if all of these are true:1

This 2-year window gives a surviving spouse time to grieve, settle the estate, and make a considered decision about the home without being forced to sell immediately to capture the higher exclusion. After 2 years, the exclusion reverts to $250,000 (single filer) — or $500,000 if they have remarried and their new spouse meets the requirements.

Community property states: the step-up in basis advantage

In the 9 community property states (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, Wisconsin), both halves of community property get a full step-up in basis when one spouse dies — not just the deceased spouse's half.4 This means the surviving spouse's adjusted basis in the home resets to the fair market value at death for the entire property. If the home was worth $800,000 at death and was later sold for $850,000, the taxable gain is only $50,000 — not the full appreciation from the original purchase price.

In common-law states, only the deceased spouse's half of the home gets the step-up — the surviving spouse's half retains its original basis. This difference can mean $50,000–$200,000 in additional capital gains for surviving spouses who sell in common-law states.

Divorce: what happens to the exclusion

If a couple sells the home as part of a divorce (or within 2 years of a divorce), the $500,000 exclusion may still apply if the sale occurs while they are still married (technically before the divorce is final) and both spouses meet the use and ownership tests. Once divorced, each individual gets a $250,000 single-filer exclusion. In some cases, a QDRO-like divorce agreement assigns the home to one spouse with a right to use the other spouse's prior ownership period — the specifics depend on how the divorce decree is structured and often require a tax attorney.

The partial exclusion: when you have to sell before qualifying

If you're forced to sell before meeting the full 2-year ownership and use requirements, you may still claim a reduced exclusion if the primary reason for the sale is one of the IRS-recognized exceptions:

The partial exclusion formula:5

Partial exclusion = Maximum exclusion × (qualifying months ÷ 24)

Example: A couple moves in and then relocates for a job after 15 months. Qualifying months: 15. Exclusion: ($500,000 × 15/24) = $312,500. Any gain up to $312,500 is excluded; gain above that is taxable.

The home office depreciation recapture trap

If you have been claiming a home office deduction — using part of your home exclusively for business — that portion's depreciation is not covered by the §121 exclusion when you sell. The IRS requires recapture of all depreciation deductions taken after May 6, 1997, and that recaptured depreciation is taxed as ordinary income at a maximum rate of 25% (unrecaptured §1250 gain).6

How it works:

In practice, the amounts are usually modest. But if you converted the entire home to business use for a period, or claimed large depreciation, the recapture can be material. Your tax preparer should account for this on Form 4797.

Tax planning strategies when selling your home

Document every capital improvement

Every dollar of documented improvement reduces your taxable gain dollar for dollar. Over a 15-year ownership period, most couples have spent $50,000–$200,000 on qualifying improvements — new roof, kitchen remodel, bathroom addition, deck, HVAC replacement, windows. Keep all receipts and permits in a dedicated file. At sale, your accountant can incorporate these to maximize your adjusted basis.

Consider the timing relative to IRMAA

If the taxable portion of your home sale gain pushes your MAGI above $218,000 (MFJ) in the sale year, you'll face IRMAA Medicare surcharges two years later (2026 sale → 2028 Medicare premiums set by 2026 MAGI). If you're already on Medicare, crossing an IRMAA tier costs each of you an additional $81–$487/month. If the gain is large enough to matter for IRMAA, an advisor can help model whether an installment sale structure — receiving proceeds over multiple years — limits the IRMAA impact.

Installment sale for gains over $500,000

If your gain exceeds $500,000, you can potentially spread the taxable gain across multiple years using an installment sale (IRC §453). Instead of receiving the full purchase price at closing, the buyer pays over time (typically with a promissory note), and you report the gain as payments are received. This can keep each year's MAGI below IRMAA thresholds and spread the gain across lower-rate years. There are tradeoffs — counterparty risk, reduced proceeds liquidity, and interest income — that require careful analysis.

Timing the sale around other income

If your home gain will exceed $500,000, the marginal capital gains rate on the excess depends on your total taxable income in the year of sale. A couple planning to retire soon might have a low-income year with minimal wages — that's the ideal window to sell if a large gain is expected, keeping more of the excess gain in the 0% or 15% LTCG bracket.

What §121 does not cover

Frequently asked questions

Can we claim the exclusion if we moved out more than 2 years ago?

No. You must have lived in the home as your primary residence for 2 of the last 5 years. If you moved out more than 3 years ago, you no longer meet the use test and cannot claim any exclusion. This commonly affects couples who converted a primary residence to a rental property — after 3 years of rental use, the §121 exclusion is no longer available (though future appreciation as a rental could be deferred with a 1031 exchange).

We bought 2 homes in the last 2 years — can we use the exclusion on both?

No. The exclusion can only be claimed once every 24 months. If you used it on a home sold within the last 2 years, you cannot use it again until the 24 months have elapsed.

My spouse recently moved in — do we need to wait?

It depends on your expected gain. If your gain is under $250,000, you can sell now — one qualifying spouse gets $250,000 even if the other doesn't meet the use test. If your gain is between $250,000 and $500,000, it may be worth waiting until the recently moved-in spouse reaches 24 months of primary residence to unlock the extra $250,000 of exclusion.

Does the exclusion apply to state taxes?

It depends on your state. Most states conform to the federal §121 exclusion, but some states have lower exclusion amounts or their own rules. California, for example, conforms to the $250K/$500K federal exclusion. Nine states have no income tax and therefore no issue. A handful of states have partial conformity — check your state's individual income tax rules or consult a tax professional in your state.

Get matched with a fee-only advisor who understands home sale tax planning

If your home sale gain may exceed $500,000, or if your situation involves a surviving spouse window, divorce, community property, or home office use, the tax planning details can be material. A fee-only advisor who sees your complete financial picture can model installment sale structures, IRMAA timing, and basis documentation — in many cases saving more than their fee on a single transaction.

Sources

  1. IRC §121 — Exclusion of Gain from Sale of Principal Residence (law.cornell.edu) — ownership test, use test, $250K/$500K amounts, surviving spouse rule (§121(b)(4)), partial exclusion rules. Verified June 2026.
  2. IRS Rev. Proc. 2025-32 — 2026 long-term capital gains brackets for married filing jointly: 0% up to $98,900, 15% up to $613,700, 20% above. Standard deduction MFJ $32,200.
  3. IRS Topic 559 — Net Investment Income Tax (IRC §1411) — 3.8% NIIT on net investment income when MAGI exceeds $250,000 MFJ. Threshold not inflation-adjusted.
  4. IRS Publication 555 — Community Property — community property step-up in basis rules, MFS income splitting, the 9 community property states. Verified June 2026.
  5. 26 CFR §1.121-3 — Reduced maximum exclusion for taxpayers failing to meet certain requirements — partial exclusion formula and qualifying unforeseen circumstances (law.cornell.edu).
  6. IRS Topic 701 — Sale of Your Home — overview of §121, depreciation recapture on home office use, reporting requirements.

Capital gains rates and income thresholds verified against IRS Rev. Proc. 2025-32 for tax year 2026. §121 statutory text verified at law.cornell.edu. This page is for informational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified tax professional for your specific situation.