Pomegra Wiki

Primary Residence Capital Gains Exclusion: Limits and Eligibility

Under Section 121 of the Internal Revenue Code, a primary residence capital gains exclusion allows homeowners to exclude up to $250,000 (single) or $500,000 (married filing jointly) of gains when they sell their main home. The exclusion rests on ownership and use tests and excludes sellers who have used it recently or fail to meet residency requirements.

Who qualifies: the ownership and use tests

The exclusion is available only to taxpayers who meet two independent tests over the five-year period ending on the sale date.

Ownership test: The taxpayer (or spouse, if married filing jointly) must have owned the home for at least 2 of the past 5 years. This is straightforward: if you bought the home on January 1, 2020, and sold it on July 1, 2025, you owned it for over 5 years, satisfying the test. If you bought on January 1, 2024, and sold on July 1, 2025, you owned it for only 18 months, failing the test.

Use test: The taxpayer must have lived in the home as their primary residence—their main home—for at least 2 of the past 5 years. Part-time or vacation residences do not qualify. A rental property that you later move into does not qualify unless you have lived there for 2 of the past 5 years at the time of sale. The clock resets if you move away; living in the home for 2 consecutive years counts, but so do 2 non-consecutive years (e.g., year 1 and year 3).

Both tests must be met. A taxpayer who owned a home for 4 years but used it as primary residence for only 1 year fails; a taxpayer who lived in it for 4 years but owned it for only 18 months fails.

The $250,000 and $500,000 thresholds

Single taxpayers (and married filing separately taxpayers) can exclude up to $250,000 of capital gain. A single person who buys a home for $200,000, spends $50,000 on improvements, and sells for $600,000 has a gain of $350,000. The exclusion covers $250,000; the remaining $100,000 is taxable as long-term capital gain.

Married couples filing jointly can exclude up to $500,000. The same home sold for $600,000 ($350,000 gain) would be entirely covered by the exclusion.

Married filing separately taxpayers do not qualify for the higher limit; each is subject to the $250,000 cap. If both spouses meet the ownership and use tests, each can claim $250,000, but they must file separately to do so—a strategy rarely worthwhile given other tax penalties for filing separately.

Calculation of gain and cost basis

The gain is the difference between the sale price (net of commissions and selling costs) and the cost basis.

Cost basis begins with the original purchase price. If you paid $300,000 for a home, your initial basis is $300,000. But basis is adjusted upward for capital improvements—major renovations, new roof, HVAC replacement, deck addition, landscaping—that materially add value or extend the home’s life. Minor repairs and maintenance do not qualify.

If you paid $300,000 and spent $100,000 on capital improvements, your adjusted basis is $400,000. Selling for $600,000 yields a gain of $200,000, entirely covered by the $250,000/$500,000 exclusion.

Inherited homes receive a “step-up” in basis at the date of death. If your parent bought for $200,000 and the home was worth $400,000 when they died, your inherited basis is $400,000, not $200,000. If you then sell immediately for $400,000, you have no taxable gain despite the home having appreciated $200,000 in value during your parent’s lifetime.

The once-every-two-years requirement

The exclusion is available only once every 2 years, measured from the date of the most recent prior sale where the taxpayer used the exclusion. This is a frequency limit, not a lifetime limit.

A taxpayer can claim the exclusion, wait 2 years, and claim it again on a different home. Someone who sells a home in January 2024 and uses the exclusion is barred from using it again until January 2026. They could buy and sell another home on January 15, 2026, and use the exclusion a second time.

This rule is easily overlooked by taxpayers who buy and sell multiple homes over their lifetime. It is particularly relevant for retirees or military families who relocate frequently.

Partial exclusion: reduced gains and time windows

Under the Tax Cuts and Jobs Act (2017) and subsequent guidance, a taxpayer who fails to meet the ownership or use tests (or who has used the exclusion within the past 2 years) may claim a partial, pro-rata exclusion if the failure is due to a “unforeseen circumstance.”

Unforeseen circumstances include job loss, job relocation, health issues, or death of a family member. A taxpayer who sold a home 15 months after the prior sale due to a job transfer might claim 75% of the usual exclusion ($187,500 for a single taxpayer) because 3 of the usual 5 years had passed, or 1.5 of the usual 2 years of ownership or use.

The rules for partial exclusion are complex and depend on the specific circumstance, distance moved, and timing. Taxpayers in these situations should consult a tax professional; the IRS provides guidance in Revenue Ruling 2008-24 and other formal interpretations.

Disqualifying events and circumstances

The exclusion is forfeited entirely if the taxpayer has used it within the past 2 years, regardless of the home’s size or the gain realized.

A taxpayer cannot claim the exclusion for a home that was used for business or was a rental property at any point during the ownership period—even if they later converted it to a primary residence and met the use test. A rental property or vacation home that was converted to primary residence is disqualified.

Depreciation taken on the home—such as if part of it was rented out and deducted under Section 179 or depreciation rules—creates a “recapture” of gain. That portion of the gain is not eligible for the exclusion and is taxed at 25% (the depreciation recapture rate), not the long-term capital gains rate.

A home acquired through a like-kind 1031 exchange of another property may disqualify the exclusion if the taxpayer fails to hold the new home as a primary residence for the required time.

Married couples and separate ownership

If only one spouse meets the ownership and use tests, only that spouse can claim the exclusion. If both spouses meet the tests and file jointly, both can claim, up to the $500,000 limit.

If both spouses own the home but only one lived in it as primary residence, only the resident spouse qualifies. If one spouse owned the home before marriage and the other moved in during marriage, both still may qualify if the resident spouse meets the 2-year use test, provided the house was jointly owned at the time of sale (or the deed was transferred before sale).

These scenarios require careful tracing and are frequent sources of confusion and error.

Calculating and reporting the exclusion

The capital gain is reported on Schedule D (Capital Gains and Losses) when filing the Form 1040. The taxpayer must clearly identify the home as a primary residence sale and apply the exclusion.

If the gain is less than the exclusion limit, the entire gain is eliminated and the home sale generates no tax liability. If the gain exceeds the exclusion, only the excess is reported as taxable income and subjected to long-term capital gains tax rates.

Many home sales involve a small enough gain to be entirely sheltered by the exclusion, making them non-taxable events—one reason the exclusion is so valuable and widely used.

Edge cases and limitations

Multiple homes: Owning multiple homes at once does not disqualify the exclusion, but only the primary residence qualifies. A taxpayer with a vacation home and a primary residence can claim the exclusion only on the primary residence.

Foreign property: The exclusion applies only to homes located in the United States. Sales of foreign real estate are not eligible.

Death and surviving spouse rights: If a taxpayer dies before selling a home that would have qualified for the exclusion, the surviving spouse has a limited right to claim the exclusion on behalf of the estate if they sell within a certain period.

Reverse mortgages: Using a reverse mortgage on the home does not disqualify the exclusion, as the home is still a principal residence.

See also

Wider context