Selling Your Home in Under Two Years — Do You Still Get an Exclusion?
TL;DR: Owning and living in your home for less than two of the last five years usually means you lose the full $250,000 ($500,000 for married couples) capital gains exclusion under IRS Section 121. But if the sale is tied to a job change of 50+ miles, a health issue, or an IRS-recognized "unforeseeable circumstance," you can often claim a partial exclusion prorated by how much of the two years you actually owned and lived there.
_Last reviewed: August 2026 · 7 min read_
Selling a home you've only owned for a year, or even eight months, feels like it should cost you the whole tax exclusion. Most owners assume the answer is a flat no. It's not that simple, and knowing the exceptions can save you tens of thousands of dollars.
Okoniq Property Hub helps owners track purchase dates, move-in dates, and sale timelines in one place, which matters a lot when the IRS wants exact ownership and use periods to the day.
What is the two-year exclusion rule in the first place?
The two-year rule, formally IRS Section 121, lets a homeowner exclude up to $250,000 in capital gains from a home sale ($500,000 if married filing jointly) if they owned and used the home as their main residence for at least 24 months out of the 60 months before the sale.
Those 24 months don't have to be consecutive. You could live in the home for 14 months, move out for a year, move back for 10 months, and still qualify, as long as the total adds up to two years within the five-year window. The clock starts on your closing date as buyer and stops on your closing date as seller. If you're currently figuring out how long closing takes, that closing date is the one the IRS will use to measure your ownership period on both ends.
Sell before hitting 24 months and you fall into "short ownership," which triggers the partial exclusion question rather than an automatic denial.
Does selling early always mean losing the exclusion?
No. Selling before the two-year mark doesn't disqualify you automatically, it just means you have to prove the sale was driven by one of three IRS-recognized reasons: a change in place of employment, health, or unforeseeable circumstances.
A job change qualifies if your new job (or your spouse's, or a co-owner's) is at least 50 miles farther from the home than your old job was. Health reasons cover moves recommended by a physician for treatment, or to care for a family member with an illness. Unforeseeable circumstances is the broadest category and includes divorce, death, job loss that triggers unemployment benefits, multiple births from the same pregnancy, or a natural disaster damaging the home. The IRS lists specific safe harbors for each, so it's worth checking the exact language in Publication 523 rather than guessing.
If none of these apply and you're selling purely because the market is hot or you found a better house, the full exclusion isn't available, but you may still weigh the trade-offs the way you would when pricing your home right for a fast, clean sale instead of chasing a tax break you don't qualify for.
How much do you actually get with a partial exclusion?
The partial exclusion is prorated based on the shorter of how long you owned the home, lived in it, or the time since your last home sale used a Section 121 exclusion.
The formula is straightforward: take the number of months you qualified (owned and used the home, or time since your last exclusion, whichever is shortest) and divide by 24. Multiply that fraction by $250,000 (or $500,000 for joint filers).
| Scenario | Months owned/used | Partial exclusion (single) | |---|---|---| | Job relocation after 12 months | 12 | $125,000 | | Health-related move after 18 months | 18 | $187,500 | | Divorce settlement after 9 months | 9 | $93,750 |
So an owner who has to relocate for work after just one year in the home still shields $125,000 of gain from tax, even though they missed the full two-year mark by 12 months. That's real money, especially in markets where home values have jumped and the gain on paper is larger than the owner expected.
What paperwork proves you qualify?
Documentation is what turns a partial exclusion claim from a guess into something that survives an IRS review. Keep the closing statement from your purchase, the closing statement from your sale, and anything tying the move to your qualifying reason.
For a job move, keep the new employer's offer letter with the start date and work address, plus your old work address, so the 50-mile distance is easy to verify. For a health-related sale, keep a letter from a physician recommending the move for treatment or care. For divorce or death, the decree or death certificate does the job. If you're selling while a mortgage is still active, review selling with an existing mortgage so the payoff timing doesn't complicate your closing on top of the tax question.
Also hold onto records of any capital improvements you made while you owned the home. Improvements increase your cost basis, which lowers your taxable gain regardless of whether you qualify for a full or partial exclusion. A $15,000 kitchen remodel, for example, reduces your gain dollar for dollar, which matters even more when you're only getting a fraction of the exclusion.
What if you're selling because of a home defect, not a life event?
If the sale is being forced by a structural problem rather than a job or health reason, the IRS won't automatically treat that as an unforeseeable circumstance unless it meets specific safe harbor language, like sudden, unexpected damage from an event beyond your control.
Gradual issues, like signs your foundation is moving under your house, generally don't qualify on their own unless tied to a documented event such as a flood or earthquake. If a defect is pushing you to sell early, talk to a tax professional before assuming it counts, and separately weigh whether a repair or a price reduction makes more financial sense for the sale itself.
FAQ
Can I get the full $250,000 exclusion if I owned the home for 18 months?
Not the full amount unless you meet a safe harbor exception. At 18 months out of the required 24, you'd typically qualify for a partial exclusion of 18/24, or 75% of $250,000, which is $187,500 for a single filer.
Does renting out the home before selling affect the exclusion?
Yes. The two years must be use as your main residence, not as a rental. Time the home was rented to tenants generally doesn't count toward your 24 months of qualifying use.
What if I'm selling after a divorce within one year of buying?
Divorce is one of the IRS's recognized unforeseeable circumstances, so you'd likely qualify for a partial exclusion prorated to the months you owned and lived in the home before the sale.
Do both spouses need to meet the two-year use test for the $500,000 exclusion?
No, only one spouse needs to meet the ownership test, but both spouses generally need to meet the use test, and neither can have used the exclusion on another home sale within the last two years.
Is the partial exclusion automatic or do I have to claim it on my tax return?
It's not automatic. You calculate and claim it on Form 8949 and Schedule D when filing, so accurate records of your qualifying reason and timeline matter at tax time.
This is educational information, not tax advice. Talk to a CPA or tax attorney about your specific ownership timeline and eligibility before filing.
Keep reading
Get buying & selling tips by email
Closing costs, staging, and the steps that actually move a sale forward. No schedule, no spam — unsubscribe anytime.
Prefer to dive in? Get started free →