To prove primary residence for capital gains tax purposes, you need documentation showing you owned the home and actually lived in it as your main home for at least two of the five years before the sale date. The IRS will not take your word for it. Under Section 121, that two-of-five-years showing is what unlocks the exclusion of up to $250,000 in gain from federal tax, or $500,000 if you file jointly.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Building the evidence file starts the day you move in, not the day you list.
What the Two-of-Five-Years Rule Actually Requires You to Show
Section 121 sets two separate tests, both measured against the five-year window that ends on your sale date. You must have held legal title for at least two years within that window (the ownership test), and you must have lived there as your primary residence for at least two years within that same window (the use test).1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The two periods do not have to overlap and neither has to be continuous. You could own the place for five years and only move in for the final two, and it still counts.
Short absences do not break the use period. Vacations, business trips, and other brief time away still count as time you lived there, even if you rented the property out during those stretches.2Internal Revenue Service. Publication 523 (2025), Selling Your Home Long absences are different. A year-long work assignment across the country generally will not count toward the use requirement unless it falls under one of the specific exceptions for military duty, health moves, or other qualifying events.
Proving ownership is usually simple: the deed, closing statement, and title records do the job. Proving use is harder, because it means proving daily life. That is where the documentation work actually happens.
Which Home Counts as Your Main Home
If you own more than one property, the IRS decides which is your primary residence by looking at where your life actually happens, not which home produces the better tax outcome. No single record is decisive. The agency weighs a combination of indicators, and the more of them that point to the same address, the stronger the claim.
The factors that carry the most weight include:
- The address on your federal and state tax returns
- Where you work, and how close the home is to your job or business
- Where your spouse and children live
- The address on file with your banks, insurers, and government agencies
- Community ties: local memberships, your doctor and dentist, where your kids go to school
If you split time between two homes, get every official record aligned with the one you intend to claim well before you sell. A tax return showing the other address, or an insurance policy that never got updated, is exactly the kind of inconsistency that draws scrutiny.
Documents That Prove You Lived There
An auditor reviewing a Section 121 claim wants to see a continuous paper trail across the two-year use period. The goal is to show real presence at the address, month after month, from multiple independent sources.
Utility Bills
Monthly bills for electricity, water, and gas are some of the strongest evidence because they show actual consumption at the property over time. Most utility companies keep at least two years of billing history available through online portals. These records are hard to fabricate and easy for the IRS to verify, which is why auditors rely on them.
Government-Issued Identification
A driver’s license or state ID showing the property address creates a formal legal link between you and the home. Voter registration and vehicle registration serve the same purpose. Save copies of every version issued during your residency, especially updates made after you moved in. State motor vehicle agencies and county registrars generally retain these records for several years.
Financial and Insurance Records
Bank and credit card statements, homeowner’s insurance policies, health insurance enrollment forms, and correspondence from financial institutions all reinforce the picture when they list the property address. No single statement decides anything. What matters is that dozens of records from unrelated sources show the same address across the same time span.
Move-In and Move-Out Paperwork
Keep the records that bracket the residency period on both ends. Lease termination at your prior address, moving company receipts, and USPS mail forwarding confirmations mark the start. Closing documents and utility shutoffs mark the end. These bookends help an auditor see when the residency began and ended without guesswork.
Organizing the File
Arrange everything in chronological order in one folder, physical or digital. A timeline turns a stack of unrelated documents into a coherent story an auditor can follow. Gaps in the timeline are what invite questions, so aim for at least one dated record for every month of the use period.
Consistency Is What Wins
Any single document can be explained away. What is hard to explain is dozens of documents from independent sources all telling the same story. That is why the strongest claims are the ones where the tax return address, the driver’s license address, the utility service address, the bank statement address, the insurance address, and the voter registration address all match, across the full two-year period.
The opposite is also true. A homeowner claiming a beach house as a primary residence while filing tax returns from a city address, keeping health insurance tied to the city, and enrolling children in city schools will have a hard time convincing the IRS. The fix is to align the records well before the sale, not after.
Special Situations That Change What You Need to Prove
Military, Foreign Service, and Intelligence Duty
If you or your spouse are on qualified official extended duty with the uniformed services, the Foreign Service, or the intelligence community, you can elect to suspend the five-year lookback window for up to 10 years. That effectively gives you up to 15 years to meet the two-year use requirement, which protects service members stationed away from home for extended tours.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Orders and duty station records are the documents you will need to support the election.
Surviving Spouses
If your spouse has died and you sell within two years of the date of death, you may qualify for the full $500,000 exclusion rather than the $250,000 single-filer limit. You must not have remarried before the sale, neither spouse can have used the exclusion on another home within the prior two years, and you must meet the ownership and use tests (your late spouse’s time of ownership and residence counts toward yours).2Internal Revenue Service. Publication 523 (2025), Selling Your Home The two-year deadline is firm.
Divorce and Property Transfers
When a home is transferred between spouses as part of a divorce, the receiving spouse inherits the transferring spouse’s ownership period. If your former spouse continues living in the home under a divorce decree, that time also counts toward your use test even though you are not there.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Keep the decree and any related orders with your tax records.
Selling Before You Hit Two Years
If a job change, a health condition, or an unforeseen event forces a sale before you meet the full two-year use requirement, you may still qualify for a prorated exclusion. For job moves, the new workplace must be at least 50 miles farther from the home than the old one, or 50 miles from the home if there was no prior job. For health moves, keep the physician’s written recommendation. Unforeseen events the IRS recognizes include death of a household member, divorce or legal separation, becoming eligible for unemployment compensation, inability to pay basic living expenses due to a change in employment, multiple children from the same pregnancy, destruction or condemnation of the home, and casualty loss from a natural disaster or act of terrorism.2Internal Revenue Service. Publication 523 (2025), Selling Your Home The documentation you need shifts to whatever proves the triggering event: employment records, medical records, court orders, insurance claims.
One boundary worth flagging: even if you pass both tests and have every document lined up, you cannot claim the full exclusion if you already used it on another home sale within the two years before this one.2Internal Revenue Service. Publication 523 (2025), Selling Your Home
What Weak Documentation Costs
Without the Section 121 exclusion, your profit is taxed as a long-term capital gain if you owned the home more than a year. For 2026, the federal rates are 0% for lower incomes, 15% for most filers, and 20% for high earners, with the 15% bracket starting at $49,450 for single filers and $98,900 for joint filers. On a $300,000 gain, a seller in the 15% bracket would owe $45,000 in federal tax that the exclusion would have wiped out.
How long you need to hold onto the file matters too. The IRS generally has three years to audit a return, but that stretches to six years if gross income is understated by more than 25%. Keep the complete residency file, along with a full copy of the filed return and its supporting documents, for at least that long after the sale. The value of the exclusion is measured in tens of thousands of dollars, and the cost of documenting it is a folder.