You can sell two primary residences in the same year, but the federal home-sale tax break only stretches to one of them. Section 121 of the Internal Revenue Code lets you exclude up to $250,000 of gain if you file single, or $500,000 if you file jointly, and it caps that benefit at one sale every two years.1Office of the Law Revision Counsel. 26 U.S.C. 121 – Exclusion of Gain From Sale of Principal Residence The profit on the second sale will almost always be taxable, though a few life events unlock a partial exclusion, and careful basis planning can meaningfully shrink the bill.
One Exclusion Every Two Years
The frequency limit is the rule that trips people up. You cannot claim the Section 121 exclusion more than once in any two-year window, and the window runs backward from each sale date rather than by calendar year.1Office of the Law Revision Counsel. 26 U.S.C. 121 – Exclusion of Gain From Sale of Principal Residence A sale 18 months ago blocks the exclusion today, even in a new tax year.
When two closings land in the same year, the first eligible sale usually takes the exclusion and the second is fully taxable. If you have any say over closing dates, apply the exclusion to whichever home carries the larger gain. Sequencing is one of the few real levers you have.
Which Sale Actually Qualifies
The exclusion is not automatic even on the sale you pick. You must have owned the home for at least two of the five years before the sale date, and lived in it as your main home for at least 24 months during that same five-year window. Those 24 months do not need to be consecutive.2Internal Revenue Service. Publication 523, Selling Your Home
When you own multiple properties, the IRS looks at where you actually spent most of your time to decide which one was your primary residence. The address on your tax return, your voter registration, your driver’s license, and where your mail goes all count as evidence. Passing the two-year use test for two different homes sold in the same twelve months is close to impossible for most people, because the 24-month occupancy periods would have to overlap inside separate five-year lookbacks.
Married Couples
To claim the full $500,000 on a joint return, at least one spouse must meet the ownership test, both spouses must meet the use test, and neither spouse can have used the exclusion in the past two years.1Office of the Law Revision Counsel. 26 U.S.C. 121 – Exclusion of Gain From Sale of Principal Residence If the couple falls short, each spouse can still figure their exclusion separately, up to $250,000 apiece.3eCFR. 26 CFR 1.121-2 – Limitations
Surviving Spouses
If your spouse died and you have not remarried by the closing date, you can count your late spouse’s ownership and use toward your own, and claim the full $500,000, as long as you sell within two years of the death.2Internal Revenue Service. Publication 523, Selling Your Home
Partial Exclusion for Job, Health, or Unforeseeable Events
Failing the ownership, use, or two-year frequency test does not necessarily make the entire gain taxable. If the sale was driven by a work-related move, a health-related move, or an unforeseeable event, you can claim a prorated exclusion.
The math is straightforward. Take the shortest of three periods: the time you lived in the home, the time you owned it, or the time since your last Section 121 exclusion. Divide that by 24 months (or 730 days) and multiply by your normal cap. If you lived in the second home for 12 months before a qualifying move, your maximum exclusion would be 12 ÷ 24 × $250,000, or $125,000.2Internal Revenue Service. Publication 523, Selling Your Home
A work-related move qualifies if the new job is at least 50 miles farther from the home than your previous workplace, and the trigger can be your job, your spouse’s, or a co-owner’s. A health-related move covers treatment for yourself, care for an ill or injured family member, or a doctor’s recommendation to change residence, and the IRS reads “family member” broadly to include parents, grandparents, siblings, in-laws, aunts, uncles, nieces, and nephews. Unforeseeable events include the home being destroyed or condemned, casualty losses from disaster or terrorism, divorce or legal separation, multiple births from a single pregnancy, becoming eligible for unemployment, or becoming unable to pay basic living expenses after a change in employment.2Internal Revenue Service. Publication 523, Selling Your Home Keep the documentation. Medical records, employment letters, and court orders are what defend the claim if the IRS asks.
Military and Foreign Service Exception
Active-duty members of the uniformed services and Foreign Service can elect to suspend the five-year lookback for up to 10 years while on qualified extended duty.4eCFR. 26 CFR 1.121-5 – Suspension of 5-Year Period for Certain Members of the Uniformed Services and Foreign Service The suspension cannot apply to two properties at once, but it can rescue eligibility on the sale you do choose to exclude.
How the Second Sale Gets Taxed
The sale that cannot use the exclusion produces a capital gain. If you owned the property longer than a year, long-term capital gains rates apply. For the 2026 tax year:5Internal Revenue Service. Revenue Procedure 2025-32
- 0% on taxable income up to $49,450 single, $98,900 married filing jointly, $66,200 head of household
- 15% up to $545,500 single, $613,700 married filing jointly, $579,600 head of household
- 20% above those thresholds
Higher earners also pay the 3.8% Net Investment Income Tax once modified adjusted gross income clears $200,000 single or $250,000 married filing jointly, which can push the effective rate on a large home-sale gain to 23.8%. Those NIIT thresholds are not indexed for inflation.6Internal Revenue Service. Net Investment Income Tax
Shrinking the Taxable Gain
Your gain is not just sale price minus purchase price. Selling expenses come off the sale price first, and capital improvements add to your basis. Every legitimate dollar in either bucket is a dollar of gain that goes away.
Selling costs that reduce the sale price include real estate commissions, advertising, legal fees tied to the sale, and any loan charges you paid on the buyer’s behalf. On a typical sale, commissions alone knock tens of thousands off the gain.2Internal Revenue Service. Publication 523, Selling Your Home
Capital improvements add to your basis. The IRS separates improvements from repairs by asking whether the work added value, extended the home’s life, or adapted it to a new use. A new roof is an improvement; patching a leak is a repair. Room additions, kitchen remodels, HVAC systems, replacement windows, new flooring, finished basements, landscaping, driveways, fences, and security systems all count. Certain purchase-side closing costs also add to basis, including title insurance, survey fees, recording fees, and transfer taxes. Repairs done as part of a larger remodel can be rolled into the improvement — replacing every window during a renovation counts, while replacing a couple of broken panes does not.2Internal Revenue Service. Publication 523, Selling Your Home
Keep receipts and contractor invoices. Owners who added a deck, updated a kitchen, and replaced a roof over 15 or 20 years often carry six figures in basis adjustments, and that arithmetic is what turns a painful bill into a manageable one.
Two Traps for Converted Rentals
If one of the homes you are selling was previously a rental or included a home office, two extra rules apply.
The first is nonqualified use. Any period after January 1, 2009 during which the home was not your primary residence counts as nonqualified use, and the share of gain allocated to that time cannot be excluded even on the qualifying sale. Own a property for 10 years, rent it for 4 and live in it for 6, and roughly 40% of the gain falls outside the exclusion. Time after you moved out but still inside the five-year window is exempt from the penalty, as are temporary absences up to two years for a job change, health condition, or other unforeseen circumstance, and qualified extended military duty up to 10 years.1Office of the Law Revision Counsel. 26 U.S.C. 121 – Exclusion of Gain From Sale of Principal Residence
The second is depreciation recapture. Any depreciation you claimed (or were entitled to claim) after May 6, 1997 is not covered by the Section 121 exclusion. That amount comes back as ordinary income on Form 4797, no matter how much of the rest of the gain you exclude.2Internal Revenue Service. Publication 523, Selling Your Home
A Loss on One Home Does Not Offset a Gain on the Other
Losses on a personal residence are not deductible. Federal tax law limits individual loss deductions to trade or business property, profit-seeking transactions, and certain casualty losses, and a personal home fits none of those.7Office of the Law Revision Counsel. 26 U.S. Code 165 – Losses8Internal Revenue Service. Capital Gains, Losses, and Sale of Home Selling two homes in a soft market and losing money on one produces no offset against gain on the other. The loss simply disappears.
Paying the Tax on Time
A taxable home sale creates a spike in income the IRS expects you to pay for during the year, not the following April. If wage withholding does not cover the extra tax, make an estimated payment for the quarter of the sale to avoid an underpayment penalty.9Internal Revenue Service. When Are Quarterly Estimated Tax Payments Due? Two safe harbors keep you clear: pay at least 90% of the current year’s tax, or 100% of last year’s liability (110% if prior-year AGI exceeded $150,000).10Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty Quarterly deadlines are April 15, June 15, September 15, and January 15. The prior-year safe harbor is usually easier to hit when a large one-time gain makes current-year tax hard to project.
State Tax Sits on Top
Most states tax capital gains as ordinary income, at rates from zero in no-tax states to over 13% at the top. A few offer their own primary residence break or reduced real estate rate; many do not. A sale that is fully excluded federally can still generate a state bill, so check your state’s rules before you assume the federal outcome carries over.
Reporting Both Sales
Both closings get reported, even the one you fully exclude. The settlement agent or closing attorney typically files Form 1099-S for each transaction reporting gross proceeds.11Internal Revenue Service. Instructions for Form 1099-S You report each sale on Form 8949 with the purchase date, sale date, sale price, and adjusted basis, and the totals flow to Schedule D.12Internal Revenue Service. Instructions for Form 8949 On the sale that uses Section 121, the exclusion is entered as an adjustment on Form 8949 with code “H.” If depreciation recapture applies from prior rental or business use, that portion goes on Form 4797 as ordinary income.2Internal Revenue Service. Publication 523, Selling Your Home The IRS matches 1099-S filings against returns, so leaving a sale off is what generates the notice.