Pomegra Wiki

Real Estate Capital Gains Exclusion

The home sale capital gains exclusion lets you exclude a substantial portion of your profit from a home sale from federal income tax—up to $250,000 for single filers or $500,000 for married couples filing jointly. The exclusion applies only if you meet an ownership-and-use test and have not used the benefit within a defined window, with narrow exceptions for hardship or job relocation.

The Ownership-and-Use Test

To qualify for the exclusion, you must satisfy two separate conditions over the five-year period ending on the sale date.

First, you must have owned the home for at least two of the last five years. This ownership need not be continuous; you can own it for two years, sell it, then buy another—as long as you owned some qualifying property for the requisite period.

Second, you must have used the home as your principal residence for at least two of the last five years. This is where the requirement bites: the IRS looks at where you actually lived. If you bought a home, rented it out immediately, then moved back in two years before selling, you qualify. If you bought it and rented it out for the full five years, you do not. Military deployments, temporary work assignments, and brief absences for personal reasons typically don’t break the test, but the IRS evaluates each case by looking at the totality of your presence.

The two-year periods do not need to be the same two years. You could have owned the property for years one and two, then been absent or not yet owned it during years three, four, and five—and still qualify, provided you used it as your principal residence for any two years within the five-year window.

Exclusion Limits by Filing Status

Single filers and heads of household can exclude up to $250,000 of gain on the sale of a principal residence.

Married couples filing jointly can exclude up to $500,000, provided both spouses meet the ownership-and-use test for the same property. If only one spouse meets the test, the exclusion drops to $250,000.

The exclusion is per taxpayer, per two-year period. You cannot claim the exclusion more than once every two years. If you sell a home in 2024 and claim the exclusion, you are ineligible to claim it again until 2026 (though Section 121 exceptions may permit use in certain circumstances).

Calculating Your Taxable Gain

Your gain is the difference between your sale price and your cost basis, adjusted for depreciation and improvements.

Example: You bought a primary residence for $300,000. You spent $50,000 on capital improvements (kitchen, roof). You sold it for $700,000. Your adjusted basis is $350,000. Your gain is $350,000. As a single filer, you exclude $250,000. Your taxable gain is $100,000.

If your gain exceeds the exclusion limit, the excess is subject to the long-term capital gains tax rate (0%, 15%, or 20% federally, depending on your income). Married couples filing jointly with gains above $500,000 face tax on the remainder at long-term rates.

The Two-Year Window Rule

You can claim the exclusion only once every two years per person. This rule prevents you from buying, selling, and immediately buying again while claiming the benefit repeatedly.

However, you can own multiple properties and claim the exclusion on more than one home over time—you simply cannot do so more frequently than once per 24-month period. If you sell two homes within a two-year span, only one sale qualifies for the exclusion in that window.

Exceptions for Hardship and Job Relocation

The IRS recognizes that life circumstances sometimes force a sale before you have lived in or owned the home for the full two years. In such cases, a reduced exclusion may be available.

The principal exceptions are:

  • Change of employment: A new job or significant change in your place of work that requires you to relocate.
  • Health reasons: A diagnosis or condition requiring a change of residence.
  • Divorce or legal separation: Division of marital property.
  • Unforeseen circumstances: Death, involuntary conversion, or similar events beyond your control.

Under these exceptions, the exclusion is reduced proportionally based on the fraction of the two-year period you actually met the test. For example, if you owned and used the home for 18 months before a job relocation forced a sale, you might claim 75% of the full exclusion. A single filer would exclude approximately $187,500; a married couple filing jointly, approximately $375,000.

The IRS provides safe harbors and detailed guidance on what qualifies, and the safe-harbor language often refers to whether the sale is “on account of” a listed reason—a fact-specific inquiry that benefits from documentation (offer letter, medical records, divorce decree).

State and Local Considerations

The federal capital gains exclusion under Section 121 applies to federal income tax only. Many states and localities do not mirror the exclusion.

  • States with no income tax (Florida, Texas, Nevada, Wyoming, and others) impose no state capital gains tax on home sales.
  • States with income tax (California, New York, Massachusetts) generally do not exclude home sale gains at the state level, though some states offer targeted relief or preferential treatment for principal residences.
  • Local taxes in a handful of jurisdictions (New York City, the District of Columbia) may also tax home sale gains.

Your overall tax bill depends on both federal and state/local rules. A $300,000 gain might be entirely excluded federally but subject to state income tax at the marginal rate, meaning you still owe tax even though the federal exclusion applies.

When the Exclusion Does Not Apply

The exclusion is not available if:

  • You failed to meet the two-year ownership or use test.
  • You have used the exclusion within the prior two years on a different property.
  • The home was acquired in a like-kind exchange (under old Section 1031 rules, though recent law has narrowed this exception).
  • You did not live in the home as your principal residence—for instance, you purchased it as an investment property or vacation home.

Investment properties, rental homes, and second homes do not qualify. If you later move into a rental property and live in it for two years, you can then qualify for the exclusion on that property going forward, provided you meet the full test.

See also

Wider context