Figures last verified against primary sources on . See methodology and corrections.
A $400,000 Home Sale Gain Costs a Single Seller $22,988 in 2026 Federal Tax and a Married Couple Nothing
A single filer earning $65,000 who sells a home in 2026 for a $400,000 gain owes $22,987.50 in federal tax on it; a married couple filing jointly with the same gain owes $0. The difference is one subsection of 26 U.S.C. §121: it excludes $250,000 of gain from a principal residence, or $500,000 on a joint return, and the $150,000 the single seller keeps above that line is taxed like any other long-term capital gain.
Two years out of five, once every two years
Section 121(a) asks one question about the five years ending on the closing date: did you own the home and live in it as your principal residence for periods adding up to two years? The months need not be consecutive. Publication 523 counts it as 24 months or 730 days of residence anywhere in the window, and adds the look-back rule from §121(b)(3): no other home sale in the prior two years on which you took the exclusion.
Married couples get the $500,000 limit under §121(b)(2)(A) only when either spouse meets the ownership test, both meet the use test, and neither is barred by the two-year look-back. A couple that fails those conditions gets the sum of what each spouse would qualify for alone.
Neither dollar figure is indexed. The $250,000 and $500,000 limits sit in the statute as written by the Taxpayer Relief Act of 1997, with no inflation adjustment, while the 2026 capital gains brackets they feed into move every year under Revenue Procedure 2025-32.
The worked sale, line by line
The seller is TaxMath's P1 reference filer: single, $65,000 of wages, the $16,100 standard deduction for 2026. The home was bought for $350,000, lived in for more than two years, and sold in 2026 for $750,000. Treat the $400,000 difference as the gain after selling costs and improvements, which Publication 523 subtracts before anything else.
- Realized gain: $400,000.
- Section 121 exclusion: $250,000. Recognized gain: $150,000, reported on Form 8949 and Schedule D.
- Adjusted gross income: $65,000 + $150,000 = $215,000. Taxable income after the standard deduction: $198,900.
- Ordinary taxable income is $48,900, which leaves $550 of room below $49,450, where the 15% rate starts for a single filer in 2026. That $550 of gain is taxed at 0%.
- The other $149,450 falls between $49,450 and $545,500: 15% × $149,450 = $22,417.50.
The IRS uses the same $400,000 sale in its net investment income tax questions and answers: "Recognized gain subject to regular income taxes is $150,000 ($400,000 realized gain less the $250,000 section 121 exclusion)."
The 3.8% reaches only what the exclusion leaves
The net investment income tax "does not apply to any amount of gain that is excluded from gross income for regular income tax purposes," per the same IRS page. The $250,000 is out of reach. The $150,000 is not.
The tax is 3.8% of the lesser of net investment income or modified AGI above $200,000 for a single filer, a threshold the IRS notes is not indexed for inflation. The seller's modified AGI is $215,000, so the lesser figure is the $15,000 overage, and 3.8% × $15,000 = $570. Federal tax on the sale comes to $22,417.50 + $570 = $22,987.50.
A married couple with the same $400,000 gain and both spouses meeting the use test excludes all of it. Nothing reaches Schedule D as taxable gain, and nothing reaches Form 8960.
What states do with the $150,000
A state that starts its return from federal adjusted gross income carries the $250,000 exclusion through without a form of its own. Minnesota's Form M1 opens with federal AGI from line 11a of Form 1040. New Jersey, which builds its own gross income, states the rule outright in its NJ-1040 instructions: for the sale of a main home, "Any amount that is taxable for federal purposes is taxable for New Jersey purposes." California adopts §121 by statute in R&TC §17152, with one modification no other state in this table makes: up to 18 months of Peace Corps service in the five-year window counts against the two-year requirement.
Taxed as ordinary income, the $150,000 costs the P1 seller this much in state tax for 2026, computed from TaxMath's rate tables as the difference between the state's tax on $215,000 and on $65,000:
| State | Treatment of the recognized gain | 2026 state tax on the $150,000 |
|---|---|---|
| California (provisional) | Ordinary income, rates up to 13.30% | $13,775 |
| Minnesota (final) | Ordinary income, rates up to 9.85% | $11,148 |
| New Jersey (provisional) | Ordinary income, rates up to 10.75% | $9,462 |
| Texas | No individual income tax | $0 |
| Washington | Real estate exempt from the capital gains tax | $0 |
Neither top rate in the table touches this sale. Most of California's figure comes from its 9.30% bracket, which runs from $72,724 to $371,479 of taxable income. Minnesota's comes from its 6.80% and 7.85% brackets, and the seller's taxable income stops below $203,150, where Minnesota's 9.85% begins. California's and New Jersey's 2026 entries are provisional: both carry their 2025 structures forward without a separately verified 2026 schedule.
Washington taxes the price instead of the gain
Washington's 7% capital gains excise lists real estate first among its exemptions, so a home sale never reaches it, at any size. The state collects on the sale anyway, through the real estate excise tax, which the Department of Revenue says the seller usually pays and which is figured on the selling price with no regard to gain or to §121.
For sales from January 1, 2023 through the end of 2026, the state portion is 1.10% of the price up to $525,000 and 1.28% from there to $1,525,000. On the $750,000 sale: 1.10% × $525,000 = $5,775, plus 1.28% × $225,000 = $2,880, for $8,655 of state excise, before the local excise each city or county adds. A married couple who owes nothing in federal tax on the same sale still owes the $8,655. The thresholds rise to $551,000 and $1,551,000 for sales beginning January 1, 2027.
Maryland's 2% surtax stops at $1.5 million
Maryland added an extra 2% on net capital gain for filers with federal adjusted gross income above $350,000, starting with tax year 2025. The statute, Tax-General §10-105(a)(3), carves out a home with a price test: the 2% does not reach gain from "any residential dwelling sold for less than $1,500,000 that is the individual's primary residence," and the dwelling must be a single-family home, town house, row home, condominium or cooperative unit.
That makes $1.5 million a cliff. A single Marylander with $65,000 of wages who sells a home for $1,600,000 at a $550,000 gain recognizes $300,000 after the §121 exclusion. Federal AGI is $365,000, over the $350,000 gate, and the sale price is over the carve-out, so the surtax is 2% × $300,000 = $6,000. Sold for $1,450,000 at the same gain, the house owes no surtax. Sold for $1,600,000 by a filer whose AGI stays at or under $350,000, it owes none either.
The surtax sits on top of Maryland's regular rates, which reach 6.50%, and on top of the county income tax every Maryland resident pays on the same taxable income: 2.25% in Worcester County to 3.30% in Dorchester and Kent for 2026. TaxMath's calculator does not yet apply the 2% surtax or the county tax, so its Maryland figure for a sale like this one runs low.
Selling before two years
A seller who misses the two-year mark can still exclude part of the gain if the sale was by reason of a change in employment, health, or an unforeseen circumstance, under §121(c). Publication 523's worksheet takes the shortest of the time lived in the home, the time owned, and the time since the last excluded sale, divides by 24 months, and multiplies by $250,000. The work-related test is a new job location at least 50 miles farther from the home than the old one.
A single filer who owned and lived in a home for 18 months before a qualifying job transfer gets 18 ÷ 24 × $250,000 = $187,500 of exclusion. On a $220,000 gain, $32,500 is taxable, and at 18 months the holding period is long enough for the long-term rates.
What the exclusion never covers
Three pieces of gain stay taxable however long you lived in the house. Depreciation claimed after May 6, 1997, typically for a home office or a rental period, stays outside the exclusion under §121(d)(6). Gain allocated to periods after 2008 when the home was not your principal residence, such as years as a rental before you moved in, is carved out by §121(b)(5). And a loss on the sale of a personal home is not deductible, so a home sold below its adjusted basis produces no capital loss to offset other gains.
Gains on stock and other assets get their own state-by-state treatment in the capital gains patchwork. To price your own sale, enter only the recognized gain, after the exclusion, as a long-term capital gain in the calculator. It does not know the gain came from a house, so for a recognized gain larger than Washington's capital gains deduction its Washington line would apply the stock-sale tax that the law waives for real estate.
This article is for informational purposes only and does not constitute tax advice. Consult a qualified tax professional for guidance specific to your situation.
Sources
Ordered by authority — the law and the agencies administering it first. Every link is checked for rot; see all sources.
- Primary lawCal. Rev. & Tax. Code §17152 — IRC §121 home sale exclusion, as modifiedCalifornia Legislature · checked 2026-10-21California applies IRC §121 with modifications: (a) the two-year period is reduced by up to 18 months of Peace Corps service during the five years before the sale; (c) a federal §121(f) election, or the absence of one, binds for state purposes; (f) §121(d)(11), property acquired from a decedent, does not apply. Amended by Stats. 2010, ch. 14 (SB 401).Other articles citing this source
- Primary law26 U.S.C. §121 — Exclusion of gain from sale of principal residenceLegal Information Institute, Cornell Law School · checked 2026-10-21§121(a) ownership and use for periods aggregating 2 years in the 5 ending on the sale; (b)(1) $250,000 limit, (b)(2)(A) $500,000 for a joint return when either spouse owns and both use, (b)(3) one sale every 2 years, (b)(5) gain allocated to nonqualified use after 2008; (c) reduced limit of the qualifying period over 2 years for a sale by reason of employment, health or unforeseen circumstances; (d)(6) depreciation after May 6, 1997 not excluded. No inflation adjustment; the current form dates to Pub. L. 105-34 (1997).Other articles citing this source
- Primary lawMd. Code, Tax-General §10-105 — State income tax ratesMaryland General Assembly · checked 2026-09-01Subsection (a), the schedule for an individual other than a joint filer, ending in the two brackets added for taxable years after 2024: 6.25% of Maryland taxable income of $500,001 through $1,000,000 and 6.50% in excess of $1,000,000.Other articles citing this source
- Government2025 Maryland resident income tax bookletComptroller of Maryland · checked 2026-10-21Minimum filing levels, Table 1: a single person under 65 files if Maryland gross income (federal gross income plus Maryland additions, Social Security excluded) is $15,750 or more. FAQ 3: "You may claim itemized deductions on your Maryland return only if you claimed itemized deductions on your federal return."Other articles citing this source
- GovernmentPublication 523 (2025), Selling Your HomeInternal Revenue Service · checked 2026-10-21The ownership, residence (24 months or 730 days in the 5 years before closing) and look-back tests; the partial-exclusion worksheet (shortest qualifying period over 730 days or 24 months, times $250,000); a work-related move qualifies at a new work location at least 50 miles farther from the home; recognized gain goes on Form 8949 and Schedule D; a loss on a home is not deductible.Other articles citing this source
- GovernmentQuestions and answers on the Net Investment Income TaxInternal Revenue Service · checked 2026-08-02Which income the 3.8% NIIT reaches and how the MAGI threshold is applied.Other articles citing this source
- GovernmentRevenue Procedure 2025-32 — tax year 2026 inflation adjustmentsInternal Revenue Service · checked 2026-10-20The revenue procedure itself: the §1(j)(2) rate tables with their formula rows, the capital-gains thresholds, the child tax credit amount, the §4.14 standard-deduction rows and §63(f) aged/blind additional amounts, and the §2 background listing which OBBBA sections changed each figure. Section 4.14: the 2026 standard deduction is $32,200 for married filing jointly.Other articles citing this source
- GovernmentLocal Tax Rates in Maryland, FY 2026 / CY 2026Maryland Department of Legislative Services · checked 2026-10-21Local income tax rates by subdivision for calendar 2022 through 2026 (source: Office of the Comptroller). CY 2026: Worcester 2.25% lowest; Dorchester and Kent 3.30% highest; Baltimore City 3.20%; Anne Arundel and Frederick graduated since tax year 2023.Other articles citing this source
- Government2025 Minnesota individual income tax instructions (Form M1)Minnesota Department of Revenue · checked 2026-10-21A full-year resident files if income was at least $14,950 (single, born on or after January 2, 1961); those not required may file to claim refundable credits (K–12 Education, Child and Working Family, Child and Dependent Care) or a refund of withholding. Electing advance 2025 Child Tax Credit payments also requires a return. "You may itemize deductions on your Minnesota income tax return even if you claimed the standard deduction on your federal income tax return."Other articles citing this source
- Government2025 Form NJ-1040 InstructionsNew Jersey Division of Taxation · checked 2026-10-21Line 15 takes wages from W-2 box 16 (State wages). The exempt-income list names Archer MSA contributions and distributions excluded federally, and cafeteria-plan benefits "but not salary reduction or premium conversion plans." Worksheet F (line 31, medical expenses) adds qualified Archer MSA contributions; it has no HSA line.Other articles citing this source
- GovernmentCapital gains taxWashington State Department of Revenue · checked 2026-08-02The 7% rate, the indexed standard deduction threshold, the exclusions, and filing rules.Other articles citing this source
- GovernmentReal estate excise taxWashington State Department of Revenue · checked 2026-08-02The graduated REET rate schedule on property sales.Other articles citing this source