Own and live in your home 2 of the last 5 years to exclude the gain. Check the 2-of-5 rule and your taxable gain — instant, in your browser.
Free 2025 guide and calculator for the home-sale "2 of 5 year" rule. To take the §121 exclusion ($250,000 single / $500,000 married) you must have owned the home and used it as your main home for at least 24 months out of the 5 years ending on the sale date, and not have used the exclusion in the prior 2 years. Source: IRS Topic No. 701 & Publication 523 (§121 exclusion); IRS Topic No. 409 & Rev. Proc. 2024-40 (2025 long-term capital-gains thresholds); IRC §1411 (NIIT). Runs entirely in your browser; no data sent to any server. Not tax or legal advice. It runs free in your browser on Gera Tools, with nothing uploaded.
Last updated · Source: Gera Tools
What is the 2-out-of-5-year rule for the home sale exclusion?
To exclude the gain on your main home, you must have owned the home for at least 24 months and lived in it as your main home for at least 24 months during the 5-year period ending on the date of sale. The 24 months of use don't have to be continuous. (Source: IRS Topic No. 701; Publication 523.)
Get one useful tool a week
Like this tool? Enter your email and we'll send you one genuinely
useful Gera tool a week — plus a link to come back to this one.
No spam, one-click unsubscribe any time.
2-of-5-Year Rule for the Home Sale Exclusion (2025)
The 2-of-5-year rule: to take the §121 home-sale exclusion you must have owned the home and used it as your main home for at least 24 months out of the 5 years ending on the sale date (the 24 months of use need not be continuous), and not have used the exclusion in the prior 2 years.
Enter your sale below to see the gain, how much the §121 exclusion covers, the taxable gain, and an estimate of the federal capital-gains tax and 3.8% NIIT. Everything runs in your browser — no data is transmitted.
Important: This is a federal estimate only. It does not compute state capital-gains tax, and it does not model depreciation recapture (unrecaptured §1250 gain, taxed up to 25%) if the home was ever a rental. Source: IRS Topic No. 701 & Publication 523 (§121 exclusion); IRS Topic No. 409 & Rev. Proc. 2024-40 (2025 long-term capital-gains thresholds); IRC §1411 (NIIT); figures for the 2025 tax year, data as of 2024-10-22. Rates and rules change; this is not tax or legal advice.