Your sole residence for tax purposes is the one home where you primarily live, and getting that designation right is what lets you shield up to $250,000 of profit from federal capital gains tax when you sell, or $500,000 if you’re married filing jointly. The rule comes from Section 121 of the Internal Revenue Code, and it applies only if you meet ownership and use requirements tied to that specific property.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If you own only one home, the designation takes care of itself. If you own more than one, the IRS decides which is your principal residence by looking at where your life is actually anchored.
How the IRS Decides Which Home Is Your Principal Residence
When you own multiple properties, the IRS applies a facts-and-circumstances test. The single most important factor is where you spend the most time, but it isn’t the only one.2Internal Revenue Service. Publication 523, Selling Your Home
The agency looks at a bundle of indicators together:
- The address shown on your federal and state tax returns, voter registration, driver’s license, and car registration.
- Proximity to your workplace, your bank, family, and any clubs or religious organizations you belong to.
- Your mailing address and the address on your insurance policies.
No single document decides it. The IRS weighs everything together. Trouble comes when the paperwork tells conflicting stories: a driver’s license in one state, tax returns filed from another, and most of the time actually spent somewhere else. If you want the designation to hold up under scrutiny, keep your records pointing at the same house you actually live in.
One point worth clearing up, because it causes confusion: the 183-day “substantial presence” test determines whether a foreign national is a U.S. tax resident. It has nothing to do with which of your homes counts as your principal residence. There’s no day-count threshold that automatically settles the principal residence question. It’s always a facts-and-circumstances analysis.
What the Designation Unlocks: Ownership and Use
Correctly identifying a home as your principal residence only matters at sale time if you also meet two separate tests. The ownership test requires that you held title to the property for at least two years during the five-year window ending on the sale date. The use test requires that you actually lived in the home as your principal residence for at least two of those same five years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
The two periods can overlap, but they don’t have to. You could own the home for the first three years, rent it out, then move in for the final two years and still qualify. The two years of use don’t need to be consecutive either. Someone who lives in a home for 14 months, moves away for a year, then returns for 10 months has met the 24-month use requirement.3Internal Revenue Service. Topic No. 701, Sale of Your Home Total time is what counts, not continuity.
If you hold the home through a revocable living trust, you are treated as the owner for the ownership test, and the trust’s sale is treated as if you made it yourself.4eCFR. 26 CFR 1.121-1 – Exclusion of Gain From Sale or Exchange of a Principal Residence
How Much the Designation Shields
Single filers who meet both tests can exclude up to $250,000 of gain. Married couples filing jointly can exclude up to $500,000, provided at least one spouse meets the ownership test, both spouses meet the use test, and neither spouse used the exclusion on a different home sale within the prior two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Any profit above the exclusion is taxed at long-term capital gains rates. High earners may also owe the 3.8% Net Investment Income Tax on the taxable portion. Gain you successfully exclude under Section 121 is not subject to the NIIT.5Internal Revenue Service. Topic No. 559, Net Investment Income Tax
The Two-Year Waiting Period
You can’t use the Section 121 exclusion more than once every two years. If you excluded gain on a different home within the 24 months before your current sale, the full gain on the new sale is taxable.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The rule keeps people from cycling through homes as a tax-free income strategy.
Surviving Spouse Benefit
If your spouse has died and you haven’t remarried, you can still claim the full $500,000 exclusion rather than the $250,000 single-filer amount, but only if you sell within two years of your spouse’s death. You must also meet the standard ownership and use requirements, and your deceased spouse’s time living in the home counts toward the use test.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence After that two-year window closes, the exclusion drops to $250,000.
Partial Exclusions When You Have to Sell Early
Life doesn’t always cooperate with a two-year residency plan. If you sell before meeting the tests because of a job change, a health condition, or unforeseen circumstances, you may qualify for a partial exclusion rather than losing the benefit entirely.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
The partial amount is a fraction of the full $250,000 or $500,000. You take the shorter of your ownership period, your use period, or the time since your last Section 121 exclusion, then divide by two years. If you lived in the home for 15 months before a qualifying job relocation, your fraction is 15/24, giving a single filer a partial exclusion of roughly $156,250.2Internal Revenue Service. Publication 523, Selling Your Home
Job-change moves have a safe harbor: your new workplace must be at least 50 miles farther from the home you’re selling than your old workplace was. If you had no previous job, the new workplace must be at least 50 miles from the home.6eCFR. 26 CFR 1.121-3 – Reduced Maximum Exclusion Health-related moves must be connected to obtaining or providing medical care for you, a spouse, or certain family members. Natural disasters, divorce, and multiple births from a single pregnancy also qualify as unforeseen circumstances.
When the Home Has Been a Rental or Had a Home Office
A home office or business-use room inside your house does not disqualify any portion of the gain from Section 121. You don’t split the sale between business and personal portions. However, any depreciation you claimed (or were allowed to claim) on that space after May 6, 1997 cannot be excluded, and that amount is taxed as unrecaptured Section 1250 gain at a maximum rate of 25%.2Internal Revenue Service. Publication 523, Selling Your Home
A separate structure on the property, like a detached guest house or converted garage used as a rental, is treated differently. Gain tied to that structure generally cannot be excluded, and the sale proceeds must be allocated between the residence and the separate building.2Internal Revenue Service. Publication 523, Selling Your Home
If you bought a property as a rental and later moved in as your principal residence, the nonqualified use rules under Section 121(b)(5) reduce your excludable gain. The IRS calculates a ratio: time the property was used for something other than your principal residence, divided by total time you owned it. Gain allocated to that fraction cannot be excluded, even if it would otherwise fit under the cap.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
One important nuance: time after you stop using the home as your residence doesn’t count as nonqualified use. If you live in a home for six years and then rent it out for two years before selling, those two rental years at the end are excluded from the nonqualified-use calculation. The rule primarily catches properties that start as investments and are later converted to residences.
Military, Foreign Service, and Intelligence Personnel
Members of the uniformed services, Foreign Service, and intelligence community can suspend the five-year test period. If you’re stationed at a duty post at least 50 miles from your home or living in government quarters under orders, you can pause the five-year clock for up to 10 years, effectively extending the look-back to as long as 15 years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
The suspension applies to one property at a time. Any period after 2008 when the home was not your principal residence still counts as nonqualified use and may reduce your excludable gain, and depreciation claimed during rental periods is always taxable at the 25% recapture rate.7Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 5
Reporting the Sale
If your entire gain falls within the exclusion and you don’t receive a Form 1099-S from the closing agent, you generally don’t need to report the sale on your tax return at all. If you do receive a 1099-S, you must report the sale even if all the gain is excludable. The same applies if any portion of your gain exceeds the exclusion. Either way, you report it on Schedule D (Form 1040) and Form 8949.3Internal Revenue Service. Topic No. 701, Sale of Your Home
Closing agents can skip issuing a 1099-S if you provide written certification that the property is your principal residence and qualifies for the full Section 121 exclusion. Ask about that certification at settlement if you want to avoid the paperwork. The certification only affects the 1099-S filing requirement; if you have taxable gain above the exclusion, you’re still responsible for reporting and paying tax on it.
State Taxes Are a Separate Question
Section 121 is a federal benefit. States handle home sale profits differently. Some impose no income tax at all. Others follow the federal exclusion, so excluded gain is also excluded at the state level. A handful treat home sale gains as regular taxable income regardless of the federal exclusion. Check your state’s rules before assuming the federal designation covers your full tax picture.