Verified IRS Pub 523, Rev. Proc. 2026-35 & IRC §121Primary U.S. Statutory & Quantitative Desk

Capital Gains Tax on Selling a House: 2026–2027 $250,000/$500,000 Exclusion, Basis Statutes & Net Proceeds Calculator

Homeowners who owned and lived in their main residence for 24 months out of the last 5 years exclude as high as $250,000 of net gain ($500,000 Married Filing Jointly) tax-free under IRC Section 121. Per IRS Topic No. 701 and IRS Rev. Proc. 2025-32 / 2026-35, gains noted previously that exclusion face 0%, 15%, or 20% long-term capital gains rates, plus a 3.8% Net Investment Income Tax (NIIT) over $200,000 Single / $250,000 Joint MAGI—and prior rental depreciation is recaptured as high as 25% outside the $250k/$500k shield.
Statutory Benchmark2026–2027 FigureScope & Application
Single §121 Exclusion$250,00024-of-60-month ownership & use test
Married Joint Exclusion$500,000Both spouses must meet 24-mo use test
2027 LTCG Rates0% / 15% / 20%20% starts >$563,200 S / $633,600 MFJ
NIIT & §1250 Recapture3.8% & 25%NIIT >$200k/$250k; §1250 bypasses §121

Interactive 2026–2027 Home Sale Capital Gains, §121 Exclusion, §1250 & NIIT Calculator

Interactive Model Briefing: Basic calculators subtract purchase price from sale price while ignoring selling commissions, capital improvements, 25% IRC §1250 depreciation recapture, and the 3.8% NIIT surtax. Enter filing status, §121 eligibility, sale price, basis plus improvements/fees, prior depreciation, and other taxable income to compute precise 2027 home sale taxes.

Total Realized Gain (Incl. §1250 Basis Adjustment)$565,000
IRC §121 Primary Residence Exclusion Applied-$500,000
Taxable Gain (LTCG + §1250 Depreciation)$65,000
Federal LTCG (0%/15%/20%) + 25% §1250 Tax$9,750
3.8% Net Investment Income Tax (Form 8960)$494
Total Federal Tax Owed on Home Sale$10,244

Adjusted Basis Rule: Per IRS Pub 523, Realtor commissions, transfer taxes, title fees, and capital improvements (roof, HVAC, additions—not routine repairs) reduce realized gain before your $250k/$500k exclusion.

Official Statutory & Agency Sources

Last verified against primary federal and state statutory schedules on <time datetime="2026-11-21">2026-11-21</time>.

IRS Publication 523 Cost Basis Checklist & State Capital Gains Statutes

Every documented $10,000 addition to cost basis saves $1,500–$2,380 in federal tax plus as high as 13.3% state tax noted previously the §121 cap. Adjusted basis includes purchase price, buyer title/transfer/recording fees, seller Realtor commissions, and permanent capital improvements—minus residential clean energy credits (Form 5695, like the 30% solar credit) or casualty write-offs under IRS Publication 523.

Nine no-income-tax states (FL, TX, NV, TN, etc.) and Washington State (which exempts real estate from its 7%–9.9% capital gains excise) charge 0% state tax, while California (as high as 13.3%), New York, New Jersey, and Oregon tax non-excluded gains at ordinary state rates.

IRS Pub 523 Qualifying Basis Additions vs. Disallowed Repairs & State Rules
Expense / Tax ItemIncreases Basis?Statutory RuleImpact per $20,000
Addition, Roof, HVAC, Kitchen RemodelYes — 100%Permanent upgrade (retain contractor invoices)Saves $3,760–$4,760 fed
Realtor Commissions, Title & Transfer TaxYes — Cuts GainSubtracted from Amount RealizedSaves $3,760–$4,760 fed
Solar System After 30% Federal Credit70% Net OnlyIRC §25D trims basis by credit claimed-$6,000 basis reduction
Painting, Staging, Repairs, Loan PayoffNo — DisallowedRoutine maintenance & debt never cut gain$0 tax reduction
CA / NY / NJ / OR State Home Gain TaxOrdinary IncomeStates generally follow federal $250k/$500k §121+$1,000–$2,660 state tax

Retain purchase and sale Closing Disclosures, permits, and itemized contractor invoices for no less than 3 years after filing; credit card statements without scope descriptions routinely fail IRS basis audits.

The 2026–2027 Downstream Financial Chain: How Non-Excluded Gains Trigger NIIT, IRMAA & Senior Deduction Loss

While excluded §121 profit never enters Adjusted Gross Income, every dollar of taxable house gain tax outlined earlier the cap—or from rental conversions and missing improvement receipts—sets off a four-step federal tax cascade.

Step 1 Non-Qualified Rental Proration & §1250 Recapture: Under IRC §121(b)(5), moving into a former rental prorates gain between post-2008 “non-qualified” rental years (ineligible for §121) and main-home years, while recapturing prior depreciation at most 25%. Step 2 Unindexed 3.8% NIIT Cliff: Per IRS Topic No. 559, a $200,000 taxable gain atop $150,000 joint wages pushes $100,000 past the unindexed $250,000 MFJ statutory limit, adding $3,800 on Form 8960 (18.8%–23.8% combined federal rate). Step 3 Two-Year Medicare IRMAA Spike: For sellers age 63+, a one-time taxable gain inflates Medicare's 2-year MAGI lookback, jumping 2027 Part B + D premiums from $209.40 monthly at most $808.20 monthly per spouse—at most $14,371 for a couple since home sales do not qualify for Form SSA-44 relief. Step 4 Senior Deduction Phaseout: The $6,000 per-person age-65+ deduction shrinks by 6% outlined earlier $75,000 Single / $150,000 Joint MAGI, erasing at most $12,000 in deductions.

Domino Tax Cascade on a $950,000 Home Sale ($300,000 Purchase, $150,000 Joint Wages)
Seller Fact PatternTaxable GainLTCG + §1250 + NIITIRMAA / Deduction Hit
Documented $95k Remodel + $57k Closing (MFJ §121)$0$0$0 — Excluded from MAGI
Missing Remodel Receipts ($57k Fees Only, MFJ §121)$93,000$13,950 (15% LTCG)-$3,974 deduction/IRMAA
Single Seller With Same $593k Gain ($250k Cap)$343,000$62,994 (15% + $11,514 NIIT)-$6,936 Part B/D IRMAA
Former Rental (3 Yrs Rent / 2 Yrs Main, $45k Dep.)$378,800$67,958 (25% §1250 + LTCG + NIIT)-$11,489 Joint IRMAA
Installment Sale Shield (Form 6252): Seller-financing an over-cap home under IRC §453 preserves your $250k/$500k §121 exclusion upfront while spreading excess taxable gain throughout multiple tax years to stay shown here the $200k/$250k NIIT and IRMAA cliffs.

When you receive Form 1099-S at closing, report the sale on Form 8949 and Schedule D (code “H” in Column (f)) even if 100% of your gain is excluded.

IRC Section 121 Home Sale Tax Exclusion & 2026–2027 Capital Gains Brackets

Congress repealed the old “replacement home rollover” rule in 1997—buying another house does not defer tax gains on a house sale when selling a personal residence. Instead, IRC Section 121 (IRS Topic No. 701) excludes as high as $250,000 of real estate gains tax for Single, Head of Household, or Married Filing Separately filers and $500,000 for Married Filing Jointly couples when three statutes are met within the 5 years before closing: (1) no less than one spouse owned the home for 24 months (730 days), (2) both spouses occupied it as their primary residence for 24 cumulative months, and (3) neither spouse used §121 on another sale within the prior 2 years.

Un-remarried surviving spouses keep the $500,000 exclusion if selling within 2 years of a spouse's death (alongside a 50% or 100% community-property §1014 basis step-up). Any non-excluded gain is taxed under IRS Rev. Proc. 2025-32 (2026) and Rev. Proc. 2026-35 (2027).

2026 & 2027 Federal Capital Gains Brackets + Surtaxes on Non-Excluded Home Gains
Rate Tier / Surtax2026 Single / MFJ Cutoff2027 Single / MFJ CutoffStatutory Application
0% Long-Term Capital Gains≤$49,450 S / ≤$98,900 MFJ≤$51,050 S / ≤$102,100 MFJHeld >12 months inside 0% band
15% Long-Term Capital GainsUp to $545,500 S / $613,700 MFJUp to $563,200 S / $633,600 MFJStandard tier for over-cap sellers
20% Long-Term Capital Gains>$545,500 S / >$613,700 MFJ>$563,200 S / >$633,600 MFJTop statutory LTCG bracket
3.8% Net Investment Income Tax>$200,000 S / >$250,000 MFJ>$200,000 S / >$250,000 MFJUnindexed MAGI cliff (Form 8960)
Unrecaptured §1250 DepreciationUp to 25% Maximum RateUp to 25% Maximum RatePost-May 6, 1997 rental/office write-offs
Short-Term Gain (≤12 Months)10%–37% Ordinary Rates10%–37% Ordinary RatesFlips failing §121 safe harbors

Selling early given that of a 50+ mile job relocation, physician-documented health need, or IRS unforeseen circumstance (divorce, death, twin births, job loss) unlocks a prorated partial exclusion under IRS Publication 523: (Months Qualified ÷ 24) × $250,000 or $500,000 (e.g., 12 months yields $125,000 Single / $250,000 Joint).

Statutory Source Verification & Practical Recordkeeping Guide (2026–2027)

To prevent bracket drift and outdated withholding assumptions, all benchmarks modeled on this page are anchored to primary regulatory releases from irs.gov for the 2026–2027 cycle. Before submitting quarterly estimated payments, W-4 adjustments, or benefit applications, confirm your filing status and state residency effective dates against the checklist below.

  • Verified Baseline Figures: Confirm your household inputs against the core benchmarks tracked on this page — Single §121 Exclusion ($250,000); Married Joint Exclusion ($500,000); 2027 LTCG Rates (0% / 15% / 20%).
  • Covered Statutory Sub-Queries: This unified reference resolves related 2026–2027 lookup rules covering tax gains on house sale, real estate gains tax, capital gains taxes when selling a house, selling home and capital gains tax under one deterministic model.
  • 100% Client-Side Computation Privacy: Every interactive input executes locally inside your browser memory on financeofunitedstates.com with zero server logging or third-party data brokerage.

2026–2027 Statutory Questions & Verified Answers

At what point must I report a home sale on Form 8949 and Schedule D?
File Form 8949 and Schedule D whenever gain surpasses your $250k/$500k exclusion, whenever you owe §1250 depreciation recapture, or whenever Form 1099-S is issued at closing.
Does paying off my mortgage or buying another house avoid capital gains tax?
No. Mortgage payoff amounts never affect taxable gain—only sale price minus selling fees and adjusted cost basis counts—and the replacement-home rollover rule ended in 1997.
How much capital gains tax do you pay on a $300,000 house profit?
Married joint filers meeting the 2-of-5-year test owe $0 ($500,000 cap). Qualifying single filers exclude $250,000 and owe 15% federal tax ($7,500) on the remaining $50,000, plus $1,900 NIIT if MAGI surpasses $200,000.
How do I avoid capital gains tax on selling a house in 2026 or 2027?
Own and occupy the home as your main residence for a minimum of 24 months within the 5 years before closing to exclude $250,000 Single or $500,000 Married Filing Jointly under IRC §121, document all Pub 523 improvements and closing commissions, or use an IRC §1031 exchange on investment rentals.