toolskoInstant Results. Privacy First.

Home Sale Capital Gains Exclusion Calculator

Selling your house? See how much gain is tax-free under the IRS $250,000 / $500,000 home sale exclusion, including partial exclusions and depreciation.

Tool inputs stay in your browser · optional AI search sends your query

Good to know: Scope: the federal exclusion of gain when you sell your main home (IRC § 121, IRS Publication 523). You can exclude up to $250,000 of gain, or $500,000 on a joint return when one of you owned the home and both of you lived in it at least 24 months (730 days) in the 5 years before the sale, and neither of you excluded gain on another home sale in the 2 years before. If you don’t meet those tests but sold mainly because of a change in workplace location, health, or an unforeseeable event, you can get a partial exclusion: the shortest of your residence time, ownership time and time since your last excluded sale, divided by 24 months, times $250,000 (figured for each spouse and added). Gain equal to depreciation taken after May 6, 1997 (home office or rental use) and gain from nonqualified use after 2008 can’t be excluded. A loss on your own home is generally not deductible. Not included: the 10-year suspension for military, Foreign Service, intelligence and Peace Corps duty; the 12-month rule for people who become unable to care for themselves; separated, divorced and surviving-spouse rules; inherited homes, vacant land, 1031 exchanges, the capital gains tax rate and state tax. Time is counted in whole months here. Nothing you type is sent or saved. Independent ToolsKo estimate, not tax advice. Sources reviewed November 16, 2026.

How to use it (step by step)

  1. 1Pick your filing status and type the sale price, your selling costs (agent commission, legal and advertising fees), what you paid for the home including closing costs, and the improvements you added.
  2. 2Type how many months, in the 5 years before the sale, you owned the home and lived in it as your main home (and your spouse, if filing jointly). If you sold early, pick the main reason: work move, health or an unforeseeable event.
  3. 3Add depreciation if you rented the home or had a home office, then read your exclusion limit, the gain you can exclude and any taxable gain to report on Form 8949 and Schedule D.

Words to know

Home sale exclusion
A tax rule that lets you leave up to $250,000 ($500,000 for many married couples) of profit from selling your main home off your tax return.
Amount realized
What you really got from the sale: the sale price minus selling costs like the agent’s commission and legal fees.
Adjusted basis
What the home cost you for tax purposes: the price you paid plus closing costs and improvements, minus things like depreciation you took.
2-out-of-5-year rule
To get the full exclusion you must have owned the home and lived in it as your main home for at least 24 months during the 5 years before you sold it. The months don’t have to be in a row.

Explore tools for Australia, the US & Europe →

Sources & methods

References checked November 11, 2026. Read each tool’s scope and assumptions before relying on its result.

Spotted a wrong result or an outdated rule? Report a mistake · How we check our tools · Get new tools by email

Related tools

See all tools in the US Tax Toolkit: Paycheck, Credits & Deductions →