Selling your home: the $250,000 and $500,000 rule and when you still owe tax

Eli Park
Eli Park, CTEC-registered tax preparer (A337612)
Reviewed November 2026 for the 2026 tax year

If you owned and lived in your home for at least two of the last five years, you can generally exclude up to $250,000 of gain, or $500,000 on a joint return. You may still have to report the sale, especially if you got a Form 1099-S, and gain above the limit, or tied to a home office or rental, can be taxable. California follows the federal exclusion but taxes any remaining gain as ordinary income.

Get my free draft

Takes about 2 minutes. No documents needed yet.

The two tests

  • Ownership: you owned the home for at least two years (24 months) during the five years before the sale.
  • Use: you lived in it as your main home for at least two of those five years. The years don't have to be consecutive.
  • Frequency: you generally can't use the exclusion if you excluded the gain on another home sale in the prior two years.

Do I have to report the sale?

If all the gain is excludable and you didn't get a Form 1099-S, you may not have to report it. If you received Form 1099-S, the IRS expects the sale on your return even if no tax is due, and you also report it if you choose not to take the exclusion. Reporting uses Form 8949 and Schedule D. California says you don't have to report a sale when your gain is under $250,000, you haven't used the exclusion in the last two years and you owned and lived in the home for at least two years.

Figuring your gain

Your gain is the selling price minus selling costs, minus your basis. Basis is what you paid plus the cost of capital improvements, such as an addition, a new roof or a remodel. Keep closing statements and improvement receipts, since they lower your gain. The exclusion amounts aren't adjusted for inflation, so in high-value markets like Orange County many sellers now exceed them.

Home office and rental use

You can't exclude the part of your gain equal to depreciation allowed or allowable after May 6, 1997, from a home office or a rental use. That portion is taxable, up to 25%, even if the rest of your gain is excluded. Time the home was used as a rental or second home before you moved in can also reduce the exclusion.

If your gain is over the limit

Gain beyond the exclusion is capital gain. For 2026, long-term gains are taxed at 0%, 15% or 20% depending on income. For example, for single filers the 0% rate applies up to $49,450 of taxable income and the 15% rate up to $545,500, and for joint filers $98,900 and $613,700. The 3.8% net investment income tax can also apply at higher incomes. California has no lower capital gains rate.

Special cases

  • You can't deduct a loss on the sale of your main home.
  • A partial exclusion may be available if you moved for a job change, health reasons or certain unforeseen events before reaching two years.
  • An inherited home gets a stepped-up basis, which often wipes out most of the gain.
  • A surviving spouse may still qualify for the larger exclusion under certain timing rules.

What to have ready

  • Closing statement (settlement statement) from the sale
  • Form 1099-S, if you received one
  • Closing statement from your purchase
  • Receipts for improvements
  • Records of any home office or rental use and depreciation taken

You don't need these to start. After you send the form, you'll see a checklist based on your answers.

Common questions

Is the home sale exclusion automatic?

The exclusion applies if you qualify, but you still have to report the sale when you get a Form 1099-S or when your gain exceeds the limit.

What if I lived there only 18 months?

You may qualify for a reduced exclusion if the move was due to work, health or other unforeseen circumstances.

Can I deduct a loss on selling my home?

No. A loss on a personal residence isn't deductible.

I used a room as a home office. Does that matter?

Depreciation taken after May 6, 1997 for the office can't be excluded. Space inside the home doesn't need to be split from the rest of the gain.

Does California tax my home sale gain?

California follows the federal exclusion. Any gain above it is taxed as ordinary income, since California has no lower capital gains rate.

What improvements raise my basis?

Capital improvements such as an addition, new roof, remodel or new systems. Ordinary repairs don't.

See your numbers before you decide

Tell me what's going on. I'll prepare a free draft and walk you through it. If you like it, I file it. If not, you owe nothing for the draft.

Get my free draftor call (657) 799-6574

Official sources

Related help

This page is general information, not tax or legal advice for your situation. Tax rules change, and the right answer depends on your facts. Figures are from the official sources listed above as of November 2026. Eli Park is a CTEC-registered tax preparer, not an attorney, CPA or enrolled agent. Results are never guaranteed.