Selling a house before two years of ownership generally means paying federal income tax on your profit, because you won’t qualify for the exclusion that shelters up to $250,000 of gain for single filers or $500,000 for married couples filing jointly. The rate you pay depends on exactly how long you owned the home, and a handful of life events can rescue part of the exclusion even when you fall short of the two-year mark.
The One-Year Line Sets Your Rate
The IRS draws a bright line at 12 months of ownership. Sell at a profit within that first year and the gain is short-term, taxed at ordinary income rates that run from 10 percent up to 37 percent in 2026.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 A $100,000 gain in the 24 percent bracket costs $24,000 in federal tax alone, before any state tax.
Cross the one-year mark and the same profit becomes a long-term capital gain, taxed at 0, 15, or 20 percent depending on your total taxable income.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses For most sellers, that means 15 percent. A single filer in the 32 percent ordinary bracket who sells at month 11 pays more than double what waiting a few extra weeks would have cost. If your closing date has any flexibility, the difference is worth the calendar check.
Why the $250,000/$500,000 Exclusion Slips Away
Section 121 of the tax code lets homeowners exclude a large chunk of profit from a primary-residence sale, but only when two tests are both satisfied within the five years before closing: you must have owned the home for at least two years, and you must have used it as your main home for at least two years.3Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The two periods can overlap and neither has to be continuous, but two years is two years. Sell earlier and the full exclusion is off the table.
When both tests are met, single filers exclude up to $250,000 of gain and married joint filers exclude up to $500,000. On a joint return, either spouse can meet the ownership test, but both must meet the use test. There is also a frequency limit: you can only claim the exclusion once every two years. Using it on a prior sale within the past 24 months blocks you from using it again, no matter how long you lived in the current place.3Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Partial Exclusions That Can Save an Early Sale
Selling before two years doesn’t always cost you the entire exclusion. If the sale was primarily driven by a work move, a health issue, or a specific unforeseeable event, you can claim a prorated share of the full amount.4Internal Revenue Service. Publication 523, Selling Your Home
Work-Related Moves
A job change qualifies if your new workplace is at least 50 miles farther from the home than your previous workplace was. If you used to commute 10 miles, the new job needs to be at least 60 miles away for the safe harbor to apply.4Internal Revenue Service. Publication 523, Selling Your Home
Health-Related Moves
You qualify if you moved to get medical treatment for yourself or a family member, to provide care for someone with an illness or injury, or on a doctor’s recommendation tied to a health problem.4Internal Revenue Service. Publication 523, Selling Your Home
Unforeseeable Events
The IRS recognizes several specific situations as safe harbors:4Internal Revenue Service. Publication 523, Selling Your Home
- Death of you, your spouse, or a co-owner
- Divorce or legal separation, including a court-ordered support decree
- Becoming eligible for unemployment compensation
- A change in employment that leaves you unable to cover basic living expenses
- Multiple births from the same pregnancy
- Destruction or condemnation of the home, including casualty losses from natural disasters or terrorism
How the Partial Amount Is Calculated
Take the shortest of three time periods: how long you owned the home, how long you lived in it, or how long since you last used the exclusion. Divide that number of months by 24 and multiply by your full exclusion amount. A single filer who lived in the home for 12 months before a qualifying job transfer gets 12/24 of $250,000, or $125,000 of gain excluded.4Internal Revenue Service. Publication 523, Selling Your Home For many early sellers, that is enough to erase the tax entirely.
Figuring the Gain the IRS Actually Taxes
Your taxable profit is not just the sale price minus the purchase price. The IRS calculates gain as the amount realized minus your adjusted basis, and both figures include more than the numbers on the two contracts.
Start with what you paid, then add settlement costs from the original purchase: title insurance, legal fees, recording fees, survey fees, and transfer taxes. Add the cost of capital improvements that added value, extended the home’s useful life, or adapted it to new uses. A new roof, a kitchen remodel, a finished basement, central air conditioning, a deck, or a fence all count. Routine maintenance doesn’t, but repair work folded into a larger remodeling project can be included.4Internal Revenue Service. Publication 523, Selling Your Home
On the sale side, subtract selling expenses before calculating gain. Real estate commissions are usually the biggest item, but legal fees, advertising costs, and any loan charges you paid on the buyer’s behalf also reduce the amount realized.4Internal Revenue Service. Publication 523, Selling Your Home On a $400,000 sale with $22,000 in commissions and a $300,000 adjusted basis, taxable gain is $77,800 rather than $100,000. Early sellers often skip this step because they haven’t accumulated years of improvement receipts, but even one large project can meaningfully cut the bill.
Extra Taxes That Can Land on Top
Net Investment Income Tax
Higher earners owe an additional 3.8 percent on net investment income, including any home-sale profit not sheltered by Section 121. The surcharge applies once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers, and those thresholds are not indexed for inflation.5Internal Revenue Service. Topic No. 559, Net Investment Income Tax The tax hits the lesser of your net investment income or the amount by which your income exceeds the threshold.6Internal Revenue Service. Questions and Answers on the Net Investment Income Tax Gain that the exclusion shields doesn’t count toward the calculation at all, which is another reason a partial exclusion is worth chasing.
Depreciation Recapture If You Rented It
If you rented out the property or used part of it for business before selling, any depreciation you claimed, or should have claimed, gets taxed at a rate of up to 25 percent when you sell, regardless of your bracket.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses The Section 121 exclusion does not shelter depreciation recapture. Even if your total gain fits inside the $250,000 or $500,000 limit, the depreciation portion is still taxable. Buying a house, renting it for a year while you lived elsewhere, and then moving in is a common path to this surprise.
A Loss Doesn’t Help You
Losses on a personal residence are not deductible. The IRS treats your home as personal-use property, so a decline in value cannot offset other income or capital gains.7Internal Revenue Service. Capital Gains, Losses, and Sale of Home This is a real risk for early sellers because there hasn’t been much time to build equity, and commissions, closing costs, and transfer taxes alone can push a sale into the red.
State Taxes Add to the Bill
Federal is only part of the calculation. Roughly 42 states tax capital gains, generally at the same rate as ordinary income, with rates running from about 2.5 percent to over 13 percent. Alaska, Florida, Nevada, Texas, and a few others impose no state income tax on capital gains at all. Most states offer nothing equivalent to the federal Section 121 exclusion, so run the state number before you assume a small federal bill means a small total bill.
Military, Foreign Service, and Similar Assignments
Members of the uniformed services, the Foreign Service, Peace Corps volunteers, and intelligence community employees get more flexibility with the two-year clock. On qualified official extended duty, you can suspend the five-year lookback period for up to 10 years, effectively giving yourself up to 15 years to meet the ownership and use tests.4Internal Revenue Service. Publication 523, Selling Your Home The assignment has to be indefinite or longer than 90 days, and your duty station must be at least 50 miles from the home or you must be living in government quarters under orders. You make the election by filing your return for the year of sale, and you can only suspend the clock for one property at a time.8eCFR. 26 CFR 1.121-5 – Suspension of 5-Year Period for Certain Members of the Uniformed Services and Foreign Service
Reporting the Sale
The settlement agent files Form 1099-S with the IRS after closing, reporting your gross proceeds. You report the sale on Form 8949 and carry the totals to Schedule D. Short-term gains (one year or less) go in Part I; long-term gains go in Part II.9Internal Revenue Service. Instructions for Schedule D (Form 1040) When you qualify for a full or partial Section 121 exclusion, you enter the excluded amount as a negative adjustment on Form 8949 using code “H.”10Internal Revenue Service. 2025 Instructions for Form 8949 Keep purchase documents, improvement receipts, and closing statements from both transactions; improvement records are easy to lose and painful to rebuild if the IRS asks.11Internal Revenue Service. How Long Should I Keep Records