The short version
- If it was your main home and you lived in it for two of the last five years, you can exclude up to $250,000 of gain, or $500,000 married filing jointly. Most sellers owe nothing.
- The two years do not have to be consecutive, and the five year window is more generous than people assume.
- Your gain is almost certainly smaller than you think, because improvements and selling costs come off it.
- Where it goes wrong: a rental converted to a home, a second property, a sale under two years without a qualifying reason, or a gain genuinely above the limit.
The rule that covers most people
Sell your main home, and if you owned it and lived in it as your main home for at least two of the five years ending on the sale date, you can exclude up to $250,000 of gain from tax. Married filing jointly, that becomes $500,000, provided both of you meet the residence test and neither has used the exclusion on another sale in the past two years.
This is not a deferral. It is not a rollover into the next house, which is an old rule people still repeat. The gain simply is not taxed. You generally do not report the sale at all if the whole gain is excluded and you receive no reporting form for it.
Get our starter pack of tax guides, free.
One welcome email with our most-used guides, then a few genuinely useful ones a month. Unsubscribe anytime.
Two details that help more than people expect. The two years need not be consecutive. Twelve months, moved out, came back for another twelve months, still qualifies. And the five year window means you can have been gone for up to three years and still make the test, which quietly covers a lot of people who moved for work and rented the place out for a while before selling.
Your gain is smaller than you think
People calculate the gain as sale price minus purchase price. That is not the calculation, and the real one is friendlier.
Start with what you sold it for. Subtract the selling costs, and this list is longer than most people use: agent commission, transfer taxes, title fees, legal fees, advertising, even certain repairs made specifically to prepare for sale.
Then subtract your basis, which is what you paid plus every capital improvement you ever made. The new roof. The kitchen. The addition. The HVAC replacement. The deck. Improvements that added value or extended the life of the property, as opposed to routine repairs.
This is the moment those receipts pay off. A household that has kept fifteen years of improvement records routinely finds their taxable gain is tens of thousands lower than the naive calculation. A household that kept nothing has to accept the higher number, because the burden of proof sits with the taxpayer.
If you own a home and are not keeping that folder, start it today. This is the reason.
The four situations where you do owe
You did not make two years. Sold at eighteen months because of a job change, a health situation, or another qualifying unforeseen circumstance, and you may still get a partial exclusion, prorated for the time you did live there. That partial exclusion is often enough to cover the entire gain on a short hold. Sold at eighteen months because you simply wanted to, and the full gain is taxable.
It was a rental first. Converting a rental into your main home does not wipe the slate. The portion of gain matching the period it was a rental generally stays taxable, and depreciation you claimed while renting gets recaptured and taxed regardless of the exclusion. This one surprises people badly, because they lived there for years and assumed that settled it.
It was not your main home. A second home, a vacation place, an investment property. No exclusion. The gain is a capital gain, taxed at long term rates if you held it over a year, and a 1031 exchange may be worth considering for a genuine investment property if you are buying another.
The gain genuinely exceeds the limit. In parts of Florida this is no longer rare. The excess above the exclusion is a long term capital gain, and long term capital gains have their own brackets, including a zero percent bracket for households under a certain taxable income. Where your other income lands that year can be the difference between paying nothing on the excess and paying real money on it, which makes the timing of a sale a genuine planning decision rather than a formality.
Selling and moving states in the same year
If you sold in one state and moved to another, the sale is generally taxable to the state where the property sat, regardless of where you were living when the money arrived. A Florida buyer does not escape another state's tax on a house that was located there.
That is a part year return, and it deserves attention rather than assumption.
What to do this month
- Find the closing statements from both ends, purchase and sale. They contain the numbers the whole calculation rests on.
- Assemble the improvement records. Every receipt reduces the gain. This is the highest value hour available to you.
- Check the residence test honestly, two of the last five years, and note any period the property was rented.
- If you did not clear two years, find out whether you qualify for the partial exclusion before assuming you owe. A job relocation of sufficient distance, a health reason, or certain unforeseen events all count.
For most sellers this ends with nothing owed and nothing to file. It is worth ten minutes to confirm you are one of them, and worth considerably more than ten minutes if you are not.
If the property was ever a rental, or the gain looks like it might clear the limit, that is worth a proper look before you file. Book a 15 minute call and bring both closing statements.