If you sell your main home and meet the ownership and use tests, § 121 and IRS Topic no. 701 let you exclude up to $250,000 of gain, or $500,000 if you file a joint return with your spouse. Gain above the exclusion, and gain that does not qualify, is generally taxable. Publication 523 explains the rules.
Updated November 19, 2026
If you sell your main home and you meet the tests in § 121, you may be able to exclude up to $250,000 of gain, or up to $500,000 if you file a joint return with your spouse. IRS Topic no. 701 and Publication 523 explain the rule. Gain above that exclusion, and gain that does not qualify, is generally taxable as capital gain.
The exclusion and the tests
In general you must have owned the home and used it as your principal residence for at least two years, or 24 months, during the five-year period ending on the date of sale. On a joint return, either spouse may satisfy the ownership test, but both spouses must generally satisfy the use test for the full $500,000 limitation to apply. The two years need not be a single block of time. You generally cannot claim the exclusion if you already used it on another home sold during the two years before this sale. Publication 523 also describes partial exclusions in certain forced-move situations.
What is still taxable
The exclusion is a cap, not a complete exemption for every luxury sale. If the gain is larger than $250,000 or $500,000, the rest is generally taxable. Depreciation taken if the home was rented or used for business can also affect the excluded amount, and unrecaptured § 1250 gain can be taxed at a maximum 25% rate, as IRS Topic no. 409 notes. Nonqualified-use periods can limit the exclusion as well. A tax advisor should compute basis, improvements, selling costs, and any depreciation before you treat the sale as tax-free.
Planning before you list
The tests are measured to the closing date, so a listing calendar can matter if you are close to the two-year or five-year lines, or close to the two-year lookback after a prior excluded sale. Keep records of purchase price, improvements, and any casualty or energy items that affect basis. This federal exclusion is separate from state income tax and from transfer taxes due at recording. Review the figures with a tax advisor while the listing plan is being written, not only after a contract is signed.
Sources
- IRS, Topic no. 701, Sale of your home
- IRS Publication 523 (2025), Selling Your Home
- 26 U.S.C. § 121, Exclusion of gain from sale of principal residence
- IRS, Topic no. 409, Capital gains and losses
- Florida Constitution, Art. VII, s. 5
Related: What Is the 2-Out-of-5-Year Rule? and How Is Capital Gains Taxed on a Second Home? and What Is Depreciation Recapture? and What Is the Net Investment Income Tax?.
This is general information from Haute Real Estate Network, not legal, tax or financial advice.
Frequently Asked Questions
Is every sale of a main home tax-free?
No. The exclusion is $250,000, or $500,000 on a qualifying joint return, and only if the tests are met. Gain above that can be taxable.
Do the two years of use have to be consecutive?
No. Publication 523 and Topic no. 701 say the 24 months can fall anywhere in the five-year period ending on the sale date.
Does state tax also apply?
It can, in states that tax the gain. Florida's Constitution, Art. VII, s. 5, generally bars a state income tax on natural persons, but that does not erase federal tax.