Skip to content
SaleGain

Ownership and Use Tests (2 of 5 Years)

By SaleGain Editorial · Updated · 6 min read

Ownership and use are the twin gates most homeowners meet before the Section 121 dollar caps matter. Publication 523 asks whether, during the five-year period ending on the sale date, you owned the home for at least two years and lived in it as your main home for at least two years. SaleGain’s exclusion calculator counts those months from your entries and shows a checklist. It does not interview you about which dwelling was primary, and it does not swear that a court or the IRS would agree with your characterization.

Measuring the five-year look-back

Start at the closing date and count backward five years. Inside that window, tally months of ownership and months of main-home use. Vacations away from a home you still treat as primary usually do not erase use, but moving into a different dwelling as your real primary residence starts a different story. If you owned two properties, only one is your main home at a time for these purposes. Factors the IRS discusses in Publication 523 include where you spend time, where you work, where family lives, and the address you use for bills and tax returns — none of which SaleGain can observe from a web form.

Ownership generally means you held title, though certain life-estate and trust arrangements appear in the publication. If a spouse dies, special tacking rules may let a surviving spouse count the decedent’s ownership and use in limited circumstances; those rules are sensitive to timing (including sales within a stated period after death) and belong in a careful reading of Publication 523 plus advice, not in a silent software default.

Noncontinuous periods still count

You do not need twenty-four consecutive months. A homeowner who lived in the house for a year, rented it for two years, then moved back for another year before selling may still assemble twenty-four use months inside the look-back, depending on dates. Ownership months accumulate while title is held even if you temporarily live elsewhere. The separate doctrine of nonqualified use can still limit how much gain is excludable after you clear the two-year gates; clearing the gates is necessary but not always sufficient.

Short absences for vacation or seasonal travel typically do not break main-home use when you return to the same primary residence. Longer relocations for a job, a caregiving stint, or a trial move to another city can change which property is the main home. When facts are messy, document addresses, lease dates and time spent rather than relying on memory at filing time.

Joint returns and the use test

The $500,000 joint maximum in the common case requires that either spouse meet the ownership test and that both spouses meet the use test, along with other conditions in Publication 523 (including that neither spouse is ineligible because of a recent exclusion on another home). Married taxpayers who file separately are generally on the $250,000 path for each return. Unmarried co-owners who each meet the tests on their own shares may each apply a $250,000 figure to their own gain — a different pattern from a joint return. Do not assume “we are married” automatically unlocks $500,000 without reading the joint rules.

When the tests fail

If either ownership or use is under twenty-four months in the look-back, a full exclusion is generally unavailable. A partial exclusion may still exist when the primary reason for the sale is a change in place of employment, health, or unforeseen circumstances as described by the IRS, and when other partial-exclusion conditions are met. The fraction uses qualifying months over 24. Military families may suspend the five-year period in situations Publication 523 details; SaleGain links that topic rather than simulating every duty-station timeline.

Failing the tests does not change how you compute amount realized or adjusted basis. You still need accurate gain or loss figures. It simply means the exclusion line may be zero or reduced. Pair this guide with the partial exclusion guide and the calculators rather than stopping at a yes/no feeling.

Main home versus second home

A vacation condo you visit three weeks a year is rarely your main home. A house you rent to tenants while you live in an apartment across town is usually not your main home during the rental period, even though you own it. Converting a former rental into your primary residence can start use months, but depreciation taken after May 6, 1997 remains relevant when you later sell. See Depreciation After Rental Use.

Land you sell without a dwelling, or a dwelling used primarily in a trade or business, follows different frameworks. Publication 523 focuses on the residence; Publication 544 and other materials speak to business dispositions. SaleGain stays on the homeowner worksheets.

Documenting the tests

Useful contemporaneous records include deeds, closing statements, utility bills, voter registration, driver’s licenses, school enrollment, lease agreements for periods you moved out, and calendars that show where you slept during disputed months. You will not upload those into SaleGain; keep them with your tax file. If you claimed the home as a rental on Schedule E in some years, those returns are part of the story for both use characterization and depreciation.

When you are ready to translate months into a worksheet maximum, open the exclusion calculator, enter ownership and use months, choose the joint or non-joint cap path, and answer whether a prior exclusion falls inside two years. Treat the output as arithmetic plus checklist language. Then confirm against Publication 523 before you file.

Timing traps around the sale date

The look-back ends on the date of sale, which is usually the closing date when title transfers under local law. Listing the home months earlier does not move that endpoint. If you move out in January and close in November of the same year, the months after you vacated still sit inside the five-year window for ownership, but they may not count as use months. Plan the calendar before you accept an offer that lands just short of twenty-four use months.

People who marry, divorce, or become widowed between purchase and sale need the publication’s special chapters, not a generic month counter. Title held in a living trust that you control may still count as ownership in many common setups described by the IRS, but trust language varies. When a trust, LLC, or co-op share is involved, verify ownership characterization before you trust any online worksheet.

Comparing two homes you occupied

Taxpayers sometimes bounce between a city apartment they own and a suburban house they own. Only one dwelling is the main home for a given day. Spending Monday through Thursday in the apartment and weekends in the suburbs does not double-count use for both. Choose the property that genuinely was primary during each stretch, document it, and run Section 121 separately when that property sells. The other property is typically a second home or investment property for the periods it was not primary.

If you are helping an aging parent sell a long-held residence, confirm who owned it, who lived there, and whether any caregiver moved in recently. A child who never owned the home does not claim the parent’s ownership months on the child’s return. A sale by an estate or by heirs after death follows basis and exclusion rules that can differ from a sale by the parent during life — another reason worksheets are starting points.

Frequently asked questions

Do the 24 months have to be continuous?

No. Publication 523 allows noncontinuous periods that add up to at least 24 months of ownership and 24 months of use during the five-year period ending on the sale date.

Can I count time in a home I rent from someone else?

Use requires that the home be your main home. Renting someone else’s dwelling does not create ownership of that dwelling for Section 121, and it is a different property from one you own elsewhere.

Sources and further reading