Skip to content
Rubric Financial

Tax

Home Sale Exclusion (Section 121): The $250,000 and $500,000 Rules, Partial Exclusions, and Rentals

The home sale exclusion shields up to $250,000 of gain ($500,000 married) under Section 121. The 2-of-5-year tests, partial exclusions, rentals, and reporting.

By 11 min readPublished

The home sale exclusion under Section 121 lets you exclude up to $250,000 of gain on selling your main home, or $500,000 for married couples filing jointly, if you owned and lived in it for two of the five years before the sale. It is available once every two years. Gain above the limit and past depreciation are taxable.

Key facts

ItemRule
Maximum exclusion$250,000 single; $500,000 married filing jointly
Ownership testOwned the home at least 24 months of the 5 years before the sale
Use testLived in it as your main home at least 24 months (730 days) of those 5 years; need not be continuous
FrequencyOnce every 2 years
Married couplesEither spouse meets ownership; both meet use; neither used it in the prior 2 years
Partial exclusionAvailable for work, health, and unforeseen circumstances
Nonqualified useGain allocated to rental or vacation use after 2008, before you moved in, is taxable
DepreciationDepreciation after May 6, 1997 is not excluded; taxed at up to 25%
ReportingForm 8949 and Schedule D if you got a Form 1099-S or have taxable gain
Indexed for inflation?No. The limits have been $250,000 and $500,000 since 1997

Source: IRS Publication 523 and Internal Revenue Code Section 121.

Because the limits are not indexed, more sellers in high-cost markets now have gain above them. A couple who bought in 2005 and sells in 2026 can easily have gain above $500,000. The planning work is in the basis records, the timing of the sale, and the years the home was rented or used for business.

How the section 121 exclusion is figured

Start with the gain, not the price:

  • Amount realized: sale price minus selling costs (commissions, title, transfer taxes the seller pays)
  • Adjusted basis: purchase price plus certain closing costs plus capital improvements, minus depreciation and casualty losses claimed
  • Gain: amount realized minus adjusted basis
  • Exclusion: up to $250,000 or $500,000 of that gain

Worked example: a married couple over the limit. Ana and Luis bought their home in 2012 for $400,000 and spent $80,000 on a kitchen, a roof, and an addition, for a basis of $480,000. They sell in 2026 for $1,100,000 and pay $60,000 in commissions and closing costs. Amount realized: $1,040,000. Gain: $1,040,000 - $480,000 = $560,000. They exclude $500,000, and $60,000 is long-term capital gain. At the 15% rate that is $9,000 of federal tax. If their modified AGI including the gain is above $250,000, the 3.8% net investment income tax can apply to the taxable part as well.

The ownership and use tests

You need 24 months of ownership and 24 months of use as your main home within the five years ending on the sale date. The two periods do not have to overlap: a renter who buys the home they have lived in for three years, then sells two years later, passes both tests. Short absences, like vacations, count as use. If you have two homes, your main home is the one you live in most of the time, supported by where you work, vote, register your car, and file taxes.

You can claim the exclusion only once every two years. If you sold another home and excluded gain within the two years before this sale, you get no exclusion, or only a partial one if a qualifying reason applies.

Members of the uniformed services, the Foreign Service, and the intelligence community on qualified extended duty can suspend the five-year period for up to 10 years.

Married couples: the $500,000 rules

The $500,000 limit requires a joint return and that:

  • either spouse meets the ownership test,
  • both spouses meet the use test, and
  • neither spouse excluded gain on another home in the prior two years.

If one spouse qualifies and the other does not, the limit is figured as if each were unmarried and the results are added. A spouse who owned and lived in the home for years and marries someone who moved in six months ago generally gets $250,000, not $500,000, until the new spouse has two years of use.

A surviving spouse who has not remarried can still use the $500,000 limit for a sale within two years of the spouse's death, counting the late spouse's ownership and use. After a divorce, a spouse who moves out can generally count the time the other spouse lives in the home under the divorce or separation instrument.

Partial home sale exclusion: work, health, and unforeseen circumstances

If you sell before meeting the two-year tests, or within two years of a prior exclusion, the partial home sale exclusion is available when the main reason for the sale is one of three things:

  • Work: a new job location at least 50 miles farther from the home than the old one (or at least 50 miles from the home if you had no prior job)
  • Health: moving to get diagnosis or treatment, to care for a family member, or on a doctor's recommendation
  • Unforeseen circumstances: the safe harbors in the regulations include the home being destroyed or condemned, a casualty from a disaster, death, divorce or legal separation, multiple births from one pregnancy, becoming eligible for unemployment compensation, and a change in employment that leaves you unable to pay basic living expenses

Outside the safe harbors, a sale can still qualify on the facts and circumstances, but the burden of proof is on you.

The reduced limit is the full limit times a fraction: the shortest of your ownership period, your use period, or the time since your last exclusion, divided by 24 months (or 730 days).

Worked example: a job move after one year. Jordan, single, bought a condo for $310,000 and lived in it for exactly 12 months. A new job 60 miles farther from the condo than her old one makes her sell for $420,000, with $20,000 of selling costs. Her gain is $420,000 - $20,000 - $310,000 = $90,000. Her reduced limit is $250,000 x 12 / 24 = $125,000, so the whole $90,000 is excluded. The reduced limit caps the exclusion; it does not cut her gain in half.

Nonqualified use: renting before you move in

Since 2009, gain allocated to periods of nonqualified use is not excludable, even if you pass the two-year tests. Nonqualified use is any time after 2008 when the home was not your main home, typically a rental or vacation home you later move into. The taxable share is the nonqualified days divided by total days of ownership, applied to the gain after setting aside depreciation.

Not every absence counts. These periods are excepted:

  • time after you last lived in the home, within the five-year window ending on the sale (so moving out and renting it before a sale does not create nonqualified use)
  • temporary absences totaling up to two years for work, health, or unforeseen circumstances
  • up to 10 years of qualified extended duty for service members and similar personnel

Worked example: a rental turned home. Chris, single, bought a house on January 1, 2019 and rented it out through December 31, 2021, claiming $30,000 of depreciation. He lived in it from January 2022 until he sold in January 2026, seven years of ownership in all. His gain is $350,000. The first $30,000 is depreciation and is taxable as unrecaptured section 1250 gain at up to 25%. Of the remaining $320,000, the nonqualified share is 3 / 7 of the ownership period: $137,143, taxable as long-term capital gain. The other $182,857 is within his $250,000 limit and excluded.

Depreciation recapture after a home office or rental

The exclusion never covers depreciation you claimed, or could have claimed, after May 6, 1997. That part of the gain is unrecaptured section 1250 gain, taxed at a maximum 25% rate. Two common cases:

  • Home office in the house itself. If the office is part of the dwelling unit, you do not split the gain between home and business. You exclude all of it except the depreciation claimed on the office. A detached structure, like a separate studio or a rental unit with its own entrance outside the dwelling, is allocated separately and its share of gain is not excludable.
  • Moving out and renting. If you convert your home to a rental and sell within the window, the exclusion still applies, but every dollar of rental depreciation is taxable.

Worked example: home first, rental second. Morgan, single, lived in a home from January 2021 through December 2023, then rented it for 2024 and 2025, claiming $9,000 of depreciation each year on a $247,500 building basis. She sells in January 2026 with a $200,000 gain. She lived there three of the last five years, and the rental came after her last use, so it is not nonqualified use. She excludes $182,000. The $18,000 of depreciation is taxed at up to 25%, at most $4,500. To keep the exclusion she needs to close by about the end of 2026, while two years of use still fall within the five-year window.

For more on how recapture works on rentals and business property, see depreciation recapture.

Converting to a rental: the 1031 interplay

A home that became a rental can sometimes use both breaks. Under IRS guidance in Rev. Proc. 2005-14, a property that qualifies for the home sale exclusion and is also held as a rental at the time of sale can exclude gain under Section 121 first, then defer the remaining gain, including the depreciation, through a 1031 exchange into another rental. Run the numbers with the 1031 exchange calculator.

The reverse move has a trap. If you acquired a home through a 1031 exchange as a rental and later move in, you must hold it at least five years from the exchange before the home sale exclusion is available, and the nonqualified use rule then applies to the rental years.

Basis: the records that cut the tax

Basis is where most of the money is. It includes the purchase price, certain settlement costs (title insurance, recording fees, transfer taxes you paid as buyer), and capital improvements: additions, a new roof, a remodeled kitchen, new HVAC, landscaping, a fence. Repairs and maintenance that do not add value or extend the home's life do not count. Basis is reduced by depreciation and by casualty losses or energy credits claimed.

Keep the closing statement and every improvement invoice for as long as you own the home, plus at least three years after filing the return that reports the sale. Older homeowners should also check for gain deferred into the home under the rollover rule that applied to sales before May 7, 1997, which reduces basis.

Reporting the sale: Form 1099-S and Form 8949

Report the sale on Form 8949 and Schedule D if:

  • you received a Form 1099-S from the closing agent, even if all the gain is excluded, or
  • any gain is taxable after the exclusion.

The closing agent can skip the 1099-S for a sale of $250,000 or less ($500,000 if married) when you sign a certification that the home was your principal residence, the full gain is excludable, and there was no nonqualified use after 2008. If you received no 1099-S and all the gain is excluded, you generally do not report the sale. A loss on a personal residence is not deductible.

State taxes on a home sale

Most states with an income tax start from federal adjusted gross income, so the exclusion generally carries through to the state return, and taxable gain is taxed at the state's ordinary rates (few states have a lower capital gains rate). Rules differ, so check your state. Sellers who no longer live in the state where the home sits may face state withholding at closing; California, for example, generally requires withholding on real estate sales unless an exemption, such as the principal residence exemption, applies.

Inherited homes: the step-up comes first

Heirs usually do not need the home sale exclusion. An inherited home's basis steps up to its fair market value on the date of death, so a sale soon after typically produces little or no gain. An heir who moves in and lives there for two years can use the exclusion on appreciation after the death. In community property states, a surviving spouse generally gets a full step-up on the home. See basis step-up at death.

Timing the sale

Because gain above the limit is taxed as a capital gain stacked on your other income, the year of sale matters: a year with lower wages, a sabbatical, or retirement can keep more of it in the 15% bracket instead of 20%, and under the 3.8% net investment income tax thresholds. For the broader playbook, see capital gains tax timing.

How Rubric Financial helps

Rubric Financial reconstructs basis from closing statements and improvement records, tests the ownership, use, and nonqualified use periods, figures partial exclusions and depreciation recapture, and plans the year of sale around the rest of your return. Aparna Devalla, CPA, leads our tax practice; see our personal tax services.

Sources

Figures are federal and current as of the date above. Tax law and inflation-adjusted amounts change; confirm current figures before acting.

Educational content, not tax, legal, investment, or accounting advice. Confirm the specifics with a CPA before acting. See our Terms.

Frequently asked questions

How does the $250,000 home sale exclusion work?

If you owned your main home and lived in it for at least two of the five years before the sale, you can exclude up to $250,000 of gain from income, or $500,000 on a joint return when both spouses lived there. The exclusion applies to gain, not to the sale price. You can use it once every two years, and there is no requirement to buy another home.

Do I pay capital gains on sale of home if I buy another one?

Buying a replacement home does not matter any more. The old rollover rule ended in 1997. Today the only question is whether your gain exceeds the exclusion. Gain above $250,000, or $500,000 for qualifying married couples, is taxed as a capital gain, at long-term rates if you owned the home more than a year, whether or not you buy again.

How does the partial home sale exclusion work?

If you fail the two-year tests because you moved for a new job at least 50 miles farther away, for health reasons, or because of unforeseen circumstances such as divorce, death, or job loss, you get a reduced limit. Divide the shortest of your ownership time, use time, or time since your last exclusion by 24 months, and multiply by $250,000 or $500,000.

Can I use the section 121 exclusion on a rental property?

Only if it was your main home for two of the five years before the sale. Renting it out after you move out keeps the exclusion if you sell within about three years. Renting it before you moved in, after 2008, makes part of the gain taxable under the nonqualified use rule. Depreciation claimed after May 6, 1997 is never excluded and is taxed at up to 25%.

Do I have to report a home sale on my tax return?

You must report it on Form 8949 and Schedule D if you received Form 1099-S or if any gain is taxable. If you did not receive a 1099-S and the whole gain is excluded, you generally do not report it. The closing agent can skip the 1099-S if you certify the home was your principal residence and the full gain is excludable.

About the author

Aparna Devalla, CPA, Partner, Tax & Accounting

Licensed CPA. Decades of experience in U.S. taxation, accounting, and banking. Leads the tax and accounting practice at Rubric Financial.

Want this handled instead of researched?

Tell us what your business looks like and a partner at Rubric Financial will scope the work: a fixed engagement cost, a monthly retainer, or hourly, whichever fits.

Get in touch