According to the National Association of Realtors, over four million existing U.S. homes were sold in 2025, with a median sales price of $414,400. For many people, selling a home is the single largest capital transaction they will ever undertake. From a tax perspective, though, it is often treated as an afterthought: “my home sale is tax‑free, right?” The reality is more nuanced. The familiar principal residence exclusion can indeed shelter a substantial amount of gain, but only if the web of statutory rules, regulations, and timing requirements are satisfied.
What Counts as a Principal Residence?
For principal residence gain exclusion purposes, the question isn’t “did the taxpayer own a house,” but “was this property, based on all the facts and circumstances, the taxpayer’s principal residence?” A principal residence is generally the taxpayer’s main home, and the term residence is broad enough to include a house, condominium, cooperative apartment, mobile home, house trailer, or even a houseboat, so long as the taxpayer is entitled to occupy it and uses it as a home.
When a taxpayer has multiple residences, perhaps a city condo and a lake house, the regulations tell us to look first at where the taxpayer spends the majority of their time during the year, but this isn’t the only factor. The regulations provide a nonexclusive list of additional indicators: the location of the taxpayer’s employment; where family members live; the address used on federal and state income tax returns; the address on a driver’s license, vehicle registration, and voter registration; the address where bills and correspondence are sent; where the taxpayer’s banks are located; and the location of religious and recreational organizations the taxpayer frequents. Clients chasing state tax benefits or lifestyle flexibility can unintentionally scatter these ties across more than one location; by the time of sale, their own paperwork may support the IRS’s argument that the property they want to treat as the principal residence was, in fact, the vacation home.
Taxpayers with two or more residences should take steps to positively establish one home (generally, the one that will be sold first or at the largest gain) as the principal residence. In addition to spending over half of each year there, they should establish as many ties (such as a driver’s license, voter registration, etc.) to that location as they can.
Basic Mechanics of the Exclusion
At its core, the principal residence gain exclusion is built around three concepts: (1) ownership and use of a principal residence for at least two out of the five years before sale, (2) dollar caps on the amount of gain that can be excluded, and (3) a frequency limitation that generally allows only one excluded home sale every two years.
The Ownership and Use Test. The ownership and use test requires the taxpayer to own and use the property as a principal residence for periods totaling at least two years during the five‑year period ending on the date of sale.
Dollar Limitations. Even when the ownership and use test is met, the exclusion is generally capped at $250,000 of gain. This increases to $500,000 on a joint return if three conditions are satisfied: (1) either spouse meets the ownership requirement, (2) both spouses meet the use requirement, and (3) neither spouse excluded gain on another home sale during the two‑year period ending on the current sale date. If these joint‑filing conditions aren’t all met, the regulations effectively limit the couple to the sum of what each spouse could have claimed separately, which often caps them at $250,000.
The One-Sale-in-two-years Restriction. Layered on top of the ownership/use test and dollar limit is the one-sale-in-two-years limitation. The exclusion doesn’t apply if the taxpayer excluded gain from the sale or exchange of a principal residence during the two‑year period ending on the date of the current sale. This rule frequently trips up clients who are rapidly “trading up” properties, or married couples who each sell a home after moving in together; they may meet the 2‑out‑of‑5 requirement but still be ineligible for a full exclusion because a prior exclusion is too recent.
Partial Exclusions for Employment, Health, or Unforeseen Circumstances
Recognizing that life events often force sales before the eligibility clock runs out, Congress built in a safety valve: If a taxpayer fails the normal ownership, use, or frequency tests, a reduced exclusion may be available when the sale is due to a change in place of employment, health, or unforeseen circumstances. The rules provide safe harbors such as moving a specified distance for a new job, certain physician recommended moves, or specific categories of unforeseen circumstances. This relief can be important for clients who sell after a job relocation, illness, divorce, casualty, birth of multiple children from the same pregnancy, or another unexpected event.
Rental, Business, and Nonqualified Use Can Create Taxable Gain
One of the most common traps involves homes that were not always used solely as the taxpayer’s principal residence. If the taxpayer rented out the home, used part of it for business, claimed depreciation, or held it as a vacation or investment property before moving in, the exclusion may not shelter all of the gain. Depreciation allowed or allowable after May 6, 1997, generally cannot be excluded, even if the property was later converted back to personal use. In addition, post-2008 periods when the property was not used as the taxpayer’s principal residence may create “nonqualified use,” causing part of the gain to remain taxable even if the taxpayer later satisfies the two-out-of-five-year ownership and use test. Clients should gather depreciation schedules, rental records, home office records, and prior tax returns before assuming the entire sale is tax-free.
Special Rules for Common Life Events
Select Government Service Members. Certain members of the uniformed services, the foreign service, intelligence community, or Peace Corps may elect to suspend the five-year test period for up to ten years while on qualified official extended duty. This can help preserve eligibility when a taxpayer is away from home for an extended period.
Marriage. Marriage requires planning when one or both spouses owned a home before marriage. If one spouse owns a home and the other moves in after marriage, the couple may need to wait two years before both spouses satisfy the use test for the full $500,000 exclusion. Prior home sales by either spouse can also affect eligibility.
Divorce. Divorce has its own special rules. A transfer of the home between spouses or former spouses incident to divorce generally does not trigger gain or loss, and the receiving spouse may be able to count the other spouse’s prior ownership period.
By contrast, the use requirement after divorce must generally be met based on each spouse’s own occupancy. A key exception is the divorce use attribution rule. Under this rule, a nonresident spouse is treated as using the property as their principal residence during any period that their former spouse is granted use of it under a divorce or separation instrument. This allows both former spouses to potentially qualify for their own $250,000 exclusion upon a subsequent sale of the jointly owned home.
Elderly and Nursing Home Residents. A taxpayer who becomes physically or mentally incapable of self-care may be treated as using their home as a principal residence for any time they spend in a licensed care facility (e.g., a nursing home), if they owned and used the home for at least one year during the five-year period preceding the move.
Death of a Spouse. After the death of a spouse, an unmarried surviving spouse may qualify for the $500,000 exclusion if the sale occurs within two years and the joint exclusion requirements were met immediately before death. After that, the surviving spouse can still tack the deceased spouse’s periods of ownership and use to their own to qualify for the standard $250,000 exclusion.
Involuntary Conversions. The destruction, theft, seizure, or condemnation of a home is treated as a sale for principal residence gain exclusion purposes if the usual ownership and use tests are met. This allows a taxpayer to exclude gain from insurance proceeds or other compensation, even if they don’t reinvest in a new property.
Electing Out of the Exclusion
In some cases, a taxpayer may choose to elect out of the principal residence gain exclusion. This can be useful if a taxpayer sells two homes within a two-year period and the second home has a larger gain. By paying tax on the gain from the first sale, the taxpayer preserves the full exclusion for the more profitable second sale.
Bottom Line
The home-sale exclusion is generous, but it is not automatic. Careful planning is required to preserve the exclusion, avoid unexpected taxable gain, and correctly report the sale.
Editor’s Note: The full article is available in the Practitioner’s Tax Action Bulletin, as National Tax Advisory (NTA) 1360, Issue 11, first published June 9, 2026, along with other valuable tax practitioner articles. Contact Our Sales Team for a Subscription to Checkpoint’s bi-monthly Practitioner’s Tax Action Bulletin, which is available in print, and online or to add Thomson Reuters Planner CS to your advisory toolkit.
Take your tax and accounting research to the next level with Checkpoint Edge and CoCounsel. Get instant access to AI-assisted research, expert-approved answers, and cutting-edge tools like Advisory Maps and State Charts. Try it today and transform the way you work! Subscribe now and discover a smarter way to find answers.