roofy
Selling · New York City

How much tax will I owe on the profit from selling my NYC home?

Federal, NIIT, New York State and NYC tax on a home sale after the $250,000/$500,000 Section 121 exclusion.

Updated October 12, 2026 · fact-checked against official sources

Estimated tax on this sale
$20,710
3.6% of your $580,000 gain
Excluded under §121 (tax-free)$500,000
Taxes$20,710
Taxable gain kept after tax$59,290

Gain

Amount realized (price − selling costs)$1,305,000
Adjusted basis$725,000
Total gain$580,000
Exclusion limit (tests met)$500,000
Taxable gain$80,000

Tax

Federal: $0 at 0%, $80,000 at 15%, $0 at 20%$12,000
Net investment income tax (3.8%)$380
New York State income tax$5,229
New York City income tax$3,101
Total$20,710

Estimate for 2026 sales. Assumes the standard deduction, no other capital gains or losses, and that both spouses meet the use test on a joint return. Includes the NYS high-income tax computation worksheets; ignores nonqualified use after 2008, itemized deductions and AMT. Not tax advice.

Most people who sell a home they have lived in for years owe little or no tax, because federal law lets you exclude up to $250,000 of profit ($500,000 for married couples filing jointly). Whatever is left is taxed three ways if you live in the city: by the IRS, by New York State and by New York City.

At a glance

Section 121 exclusion
$250k / $500k
Single / married filing jointly
Ownership and use test
2 of 5 years
Both, before the sale date
2026 federal long-term rates
0% / 15% / 20%
NIIT
3.8%
Above $200k / $250k MAGI
NYS 2026 rates
3.9%–10.9%
Gains taxed as ordinary income
NYC resident rates
3.078%–3.876%

How the calculation works

  1. Amount realized = sale price − selling costs (commission, seller transfer taxes, legal fees).
  2. Adjusted basis = purchase price + purchase closing costs + capital improvements − depreciation you claimed.
  3. Gain = amount realized − adjusted basis. A loss on a personal home is not deductible.
  4. Exclusion: subtract up to $250,000 or $500,000 if you meet the 2-of-5-year tests, or a partial amount if you sell early for a qualifying reason. Depreciation claimed after May 6, 1997 cannot be excluded.
  5. Federal tax: the taxable gain is stacked on top of your other taxable income. Depreciation recapture is taxed at your regular rate up to 25%; the rest at 0%, 15% or 20% depending on where it lands.
  6. NIIT: 3.8% on the smaller of the taxable gain or the amount your modified AGI exceeds the threshold.
  7. New York: the same taxable gain is added to your New York income and taxed at your state rates (including the high-income recapture above $107,650 of NY adjusted gross income), plus city rates if you are an NYC resident.

Worked example

A married couple sells their Queens house for $1,400,000 in 2026. They bought it for $650,000 nine years ago, paid $15,000 in closing costs, spent $60,000 on a new kitchen and roof, and pay $95,000 to sell. Their other income is $180,000.

LineAmount
Amount realized ($1,400,000 − $95,000)$1,305,000
Adjusted basis ($650,000 + $15,000 + $60,000)$725,000
Gain$580,000
Exclusion (married filing jointly)−$500,000
Taxable gain$80,000
Federal at 15% (taxable income already above $98,900)$12,000
NIIT: 3.8% × ($260,000 MAGI − $250,000)$380
NYS: added tax on $80,000 (5.9% bracket, plus the high-income recapture)$5,229
NYC: $80,000 at 3.876%$3,101
Total$20,710

That is about 3.6% of the $580,000 profit. The NYS line is more than a flat 5.9% because New York phases out the benefit of its lower brackets once income passes $107,650; the calculator uses the state's 2026 worksheets for this. Without the $60,000 of improvements and the purchase closing costs in their basis, the taxable gain would be $75,000 higher, so keep those receipts.

Rules that change the answer

  • The 2-year look-back. You can use the exclusion only once in any 2-year period.
  • Married couples. For the $500,000 limit, either spouse can meet the ownership test but both must meet the use test.
  • Different 2 years. The 2 years of ownership and the 2 years of use do not have to be the same period, so years you rented the home before buying it can count toward the use test.
  • Partial exclusion. Moving for a job at least 50 miles farther away, for health, or after an unforeseeable event can earn a pro-rated exclusion.
  • Rented periods. Depreciation is always taxable, and time after 2008 when the home was not your main home can reduce the exclusion. This tool does not model that second rule.
  • Holding period. If you owned the home one year or less, the gain is short-term and taxed at ordinary rates.

What to do next

Work out your selling costs with the seller net proceeds calculator and seller transfer tax calculator, then read capital gains tax when you sell your home. A tax professional can confirm your basis and exclusion before you file.

Common questions

How much home sale profit is tax-free?

If you owned and lived in the home as your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain, or $500,000 on a joint return when both spouses meet the use test. You generally cannot use the exclusion if you used it on another home in the prior 2 years.

Does New York have its own capital gains tax rate?

No. New York State and New York City tax capital gains as ordinary income at your regular rates. For 2026 the state rates run from 3.9% to 10.9% and the NYC resident rates from 3.078% to 3.876%. Gain excluded under Section 121 is also left out of your New York income.

Do I pay NYC income tax if I moved out of the city before selling?

NYC personal income tax applies to city residents. If you were not a city resident when you sold, you generally do not owe NYC tax on the gain. You still owe New York State tax on gain from New York property even as a nonresident.

What if I sell before living there two years?

You may still get a partial exclusion if the main reason is a job change (new workplace at least 50 miles farther), health, or an unforeseeable event such as divorce, death or job loss. The partial amount is the shorter of your ownership or use time divided by 24 months, times $250,000 per person.

Is the 3.8% net investment income tax charged on a home sale?

Only on gain that is taxable after the exclusion, and only to the extent your modified AGI is over $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately).

Fact-checked October 12, 2026

Re-verified 2026-10-12. Section 121 limits, 2-of-5 tests, partial exclusion (50-mile work rule), non-excludable post-May 6, 1997 depreciation and nonqualified use after 2008 in IRS Pub 523; nonconcurrent ownership and use periods in 26 CFR §1.121-1(c)(1). 2026 federal brackets, 0%/15% LTCG ceilings and standard deductions checked line by line in Rev. Proc. 2025-32. NIIT 3.8% and thresholds on the IRS NIIT page. NYS/NYC 2026 rate schedules, NYS standard deductions and the NYS tax computation worksheets (recapture base and incremental benefit amounts) from IT-2105-I (2026). Fixes: added the NYS high-income recapture worksheets (the old version understated NYS tax for NYAGI over $107,650); nonresident NYS tax now uses the IT-203 income-percentage method; use time is no longer capped at ownership time. Worked example recomputed by hand ($20,710). Model omits AMT, itemized deductions, nonqualified use and other capital gains or losses.

Sources

  1. Publication 523, Selling Your Home · IRS (accessed October 12, 2026)
  2. Rev. Proc. 2025-32 (2026 tax brackets, capital gains thresholds, standard deduction) · IRS (accessed October 12, 2026)
  3. Net Investment Income Tax · IRS (accessed October 12, 2026)
  4. Form IT-2105-I (2026): NYS and NYC tax rate schedules and standard deduction · NYS Department of Taxation and Finance (accessed October 12, 2026)
  5. 26 CFR §1.121-1: Exclusion of gain from sale or exchange of a principal residence · Cornell Law School Legal Information Institute (accessed October 12, 2026)
  6. FAQs about filing requirements, residency and telecommuting · NYS Department of Taxation and Finance (accessed October 12, 2026)

General information, not legal, tax or financial advice. Rules change; confirm with the agency or a professional before you act.