What the one-time capital gains exemption does

If you sell your home and have lived in it for at least two of the last five years, you can exclude up to $250,000 of the gain from your federal income tax — or $500,000 if you are married and file jointly. This is a one-time exemption, meaning you can use it once in your lifetime. You do not have to be retired to claim it, but many seniors use it when they downsize or relocate.

The exemption applies to the profit you make on the sale, not the sale price itself. If you bought your home for $200,000 and sold it for $450,000, your gain is $250,000. With the exemption, that entire gain would be tax-free (for a single filer). Without it, you would owe federal income tax on that $250,000.

This is a federal tax rule. Some states have their own rules about capital gains tax on home sales, so you will need to check your state's requirements separately. The exemption does not reduce what you owe to your state.

Key Takeaways

  • You can exclude up to $250,000 of gain if single, or $500,000 if married filing jointly, when you sell a home you have owned and lived in for at least two of the last five years.
  • The exemption is one-time only in your lifetime, so timing the sale matters if you own multiple properties or plan to move again.
  • You claim the exemption on your federal tax return using Schedule D (Form 1040), not when you list the home or close the sale.
  • State capital gains taxes are separate and may still explore even if you use the federal exemption.
  • If you inherited the home, you may have a stepped-up basis that reduces or eliminates the gain without using the exemption.

The two-year ownership and use test

To use the exemption, you must have owned the home and lived in it as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive, and they do not have to be the most recent two years.

If you owned the home for ten years but lived in it for only one year, you cannot use the exemption. If you owned it for three years and lived in it for two of those three years, you can. The IRS looks at the five-year window ending on the date of sale.

If you moved out but kept the home as a rental or left it vacant, that time does not count toward the two-year requirement. The same applies if you owned it but never lived in it — for example, if you inherited a home and sold it without ever moving in.

How much gain you can exclude

The amount you can exclude depends on your filing status on the date of sale. A single filer or head of household can exclude up to $250,000. Married couples filing jointly can exclude up to $500,000. Married filing separately filers can each exclude up to $250,000, but only if both meet the ownership and use test.

The exclusion is per person, per lifetime. If you are married and both of you meet the test, you can use $500,000 combined. If only one spouse meets the test, you can use $250,000. If you have already used the exemption on a previous home sale, you cannot use it again, even if you are now married to someone who has not used theirs.

If your gain exceeds the limit — for example, you are single and your gain is $300,000 — you owe federal income tax on the amount over the exemption. That $50,000 would be taxed as a long-term capital gain, which is usually taxed at 0%, 15%, or 20% depending on your income.

When you cannot use the exemption

You cannot use the exemption if you have used it within the last two years on a different home. The IRS calls this the "once-per-two-years" rule. If you sold a home in 2022 and used the exemption, you cannot use it again until 2024 at the earliest.

You also cannot use the exemption if you did not meet the two-year ownership and use test. This includes homes you inherited and never lived in, investment properties, vacation homes you rented out, or homes you owned for less than two years.

If you are going through a divorce, the rules are more complex. Generally, if you received the home as part of a divorce settlement, the time your ex-spouse owned it may count toward your two-year requirement, but you must have lived in it for two of the five years. Consult a tax professional about your specific situation.

Stepped-up basis and inherited homes

If you inherited a home, you may not need to use the exemption at all. When someone dies, their heirs receive a stepped-up basis, which means the home's value is reset to its fair market value on the date of death. If you inherited the home worth $400,000 and sold it for $410,000, your gain is only $10,000, and you owe no federal tax on it.

This is different from the capital gains exemption. The stepped-up basis is automatic for inherited property and does not count as using your one-time exemption. If you later sell another home you owned and lived in, you can still use the $250,000 or $500,000 exemption on that sale.

The stepped-up basis rules are complex and depend on when the person died, whether the estate was large enough to file a federal estate tax return, and your state's rules. If you inherited a home and are considering selling it, a tax professional can tell you whether you owe any capital gains tax.

How to claim the exemption on your tax return

You claim the exemption when you file your federal income tax return for the year you sold the home. You report the sale on Schedule D (Form 1040), which is the form for capital gains and losses. You will also receive a Form 1099-S from your real estate closing agent or title company, which reports the sale price.

On Schedule D, you list the home's cost basis (what you paid for it, plus improvements), the sale price, and the gain. Then you report the exclusion amount. The instructions on Schedule D walk you through this step by step. If your gain is less than the exclusion limit, your taxable gain is zero.

If you are married filing jointly, both spouses sign the return, and you report the combined exclusion of $500,000. If you are married filing separately, each spouse files their own return and reports their own exclusion of $250,000 (if they meet the test).

You do not claim the exemption when you close the sale or list the home. The real estate agent and closing attorney do not need to know about it. It is purely a tax matter that you handle when you file your return.

State capital gains taxes and other considerations

The federal exemption does not explore to state income tax. If you live in a state with a capital gains tax — such as California, New York, or Washington — you may owe state tax on the gain even if you use the federal exemption. Some states have their own exemptions for home sales, but they are separate from the federal rule and have different limits.

You may also owe local transfer taxes or recording fees when you sell, depending on where the home is located. These are not income taxes and are not affected by the capital gains exemption. Your closing attorney or title company will itemize these fees on your closing statement.

If you sold the home at a loss — meaning you sold it for less than you paid for it — you cannot deduct the loss on your federal return. The capital gains exemption only applies to gains, not losses.

Frequently Asked Questions

Can I use the exemption if I rent out part of my home?

If you rented out part of the home but lived in the rest, you may still may have access to, but the gain is split. The portion of the gain from the rented part is taxable; only the portion from the part you lived in qualifies for the exemption. This gets complicated quickly, so consult a tax professional if you rented out any rooms or a separate unit.

What if I owned the home before I was married?

If you owned the home before marriage and lived in it for two of the five years before sale, you can use the $500,000 exemption as a married couple filing jointly. Your spouse does not have to have owned it; they just have to be married to you on the date of sale and you both must have lived in it for two of the five years.

Can I use the exemption if I sell to my child or another family member?

Yes. The exemption applies to any sale, regardless of who buys the home. The sale price and the buyer's relationship to you do not affect whether you can use it. You still must meet the ownership and use test.

Do I have to report the sale to the IRS even if my gain is under the exemption?

Yes. You must file Schedule D and report the sale, even if your taxable gain is zero after the exemption. The IRS wants to see the calculation. If you do not report it, the IRS may send you a notice based on the Form 1099-S your closing agent filed.

What happens if I move and then move back — does that reset the two-year clock?

No. The IRS looks at whether you lived in the home for two of the five years before sale. If you lived there, moved away, and moved back, the time you lived there before you left still counts. You do not have to live there continuously for two years.