2026 tax year editionFederal tax · NIIT · 50 states and DC

Guide

Taxes on selling a house in 2026: federal exclusion, then your state

A gain on the sale of your main home is taxed only where it is larger than the federal exclusion: up to $250,000, or $500,000 on a joint return, when the ownership, use and look-back tests are met. The calculator applies it when you choose “Yes, tests met” on its main-home line.

Determine the gain before applying an exclusion

Keep the purchase settlement statement, documented capital improvements and records of adjustments to basis. Compare the amount realized after approved selling expenses with the adjusted basis. Mortgage principal paid at closing affects cash received; it is not itself the purchase basis or a separate automatic reduction of gain.

The three tests behind the full exclusion

IRS Topic 701 and Publication 523 set out the conditions. Ownership: you held title for at least 24 months of the 5 years ending on the sale date. Use: you lived there as your main home for at least 24 months of those 5 years; the months need not be consecutive or the same months as ownership. Look-back: you did not exclude gain on another home sold in the 2 years before this one. On a joint return the $500,000 limit needs one spouse to pass ownership and both spouses to pass use and look-back; otherwise each spouse’s own limit is figured and the two are added. A home bought through a like-kind exchange in the past 5 years does not qualify.

A joint sale, worked through the calculator

A married couple filing jointly sells the house they have owned and lived in for eight years for $1,150,000. Their adjusted basis is $480,000 and selling costs are $62,000, so the gain is $608,000. Their other 2026 taxable income is $150,000, their MAGI without the sale $180,000 and their other net investment income $5,000.

Federal tax on a $608,000 joint home-sale gain, 2026
LineMain home, tests metNo exclusion
Excluded under section 121$500,000$0
Taxable gain$108,000$608,000
Federal income tax on the gain$16,200$98,415
Net investment income tax$1,444$20,444
Federal total$17,644$118,859

With the exclusion only $108,000 is taxed. Stacked on $150,000 of other income it stays inside the joint 15% band, which is $16,200. The excluded part is not net investment income either, so the 3.8% charge falls on $38,000: the smaller of net investment income and the amount by which MAGI passes $250,000. Without the exclusion the whole $608,000 would be taxed and part of it would reach the 20% band. The exclusion is worth $101,215 of federal tax here. State income tax, credits and the alternative minimum tax are left out of this comparison.

How each state taxes the gain left after the exclusion

After the federal exclusion, 8 states do not tax the rest of the gain, 13 tax it at one flat rate, 18 through graduated bands, 11 shelter part of it or tax it at its own rate, and 1 jurisdiction, Washington, applies a separate excise.

When only part of the gain can be excluded

A sale that misses the 2-year tests can still earn a reduced exclusion when the main reason was a work move of at least 50 more miles, a health reason, or an unforeseeable event listed in Publication 523. Its Worksheet 1 takes the shortest of your use, your ownership and the time since your last excluded sale, divides it by 24 months and multiplies by $250,000; a joint return repeats that for each spouse and adds them. Someone who lived in the home 15 months before a qualifying job move has a $156,250 limit. In the calculator, choose “Reduced or rental use” and enter that amount on the approved exclusion line.

Rental use and depreciation

Gain equal to depreciation allowed or allowable after May 6, 1997, for a rental or a home office, is not excluded and is taxed as unrecaptured section 1250 gain at up to 25%. Gain allocated to periods after 2008 when the home was not anyone’s main home (nonqualified use) is not excluded either. Both need Publication 523’s Worksheet 3; this site’s ordinary-sale model does not split them, so a sale with depreciation belongs in the special category.

State home-sale treatment can differ

Washington’s capital-gains excise guidance exempts real estate, whereas Maryland’s additional covered-gain tax has a specific primary-dwelling exception with a price condition. Other states require their own basis, deductions and source-income reconciliation. Real estate located in a state may remain sourced there after a move. On a state page, the quick state lines and the with-sale MAGI follow the gain left after the exclusion; a state that builds income from its own statute can treat the sale differently, and its instructions decide.

Open the sale calculator and choose the main-home line, or use a state guide for that state’s own line. Review methodology for omitted credits, changing deductions and complete-return effects. Closing cash and gain remaining after modeled tax are different outputs.