Yes, you can sell a house after three years, and the timing is actually good for taxes. Three years of ownership and occupancy puts you past the two-year threshold that unlocks the federal capital gains exclusion, so up to $250,000 of profit is tax-free for a single filer and up to $500,000 for a married couple filing jointly.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The costs that actually sting when selling a house after 3 years are the commissions and closing fees, and — for a smaller group — depreciation recapture from a home office. Mortgage prepayment penalties, the thing people worry about most, almost never apply at this point.
The Capital Gains Exclusion at Three Years
Section 121 of the tax code lets you exclude gain on the sale of a principal residence if you owned and lived in the home for at least two of the five years before the sale. Single filers exclude up to $250,000 in profit. Married couples filing jointly exclude up to $500,000, provided both spouses met the residency test and at least one met the ownership test.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence At three years, an owner-occupant clears both tests comfortably.
Two details are worth knowing. The two years of residency don’t need to be consecutive; they just have to add up to 24 months inside the five-year window. Short absences like vacations count as time lived in the home.2Internal Revenue Service. Publication 523, Selling Your Home And you can only use the exclusion once every two years, so if you sold another primary residence recently and claimed it there, you can’t claim it again now.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
If you didn’t actually live in the home for a full 24 months during those three years — because of a job relocation, a health issue, or an unforeseen circumstance like divorce — a partial exclusion may still be available. The amount is prorated by the number of months of residency divided by 24.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Figuring Your Taxable Profit
Your gain isn’t the sale price minus what you paid. The IRS lets you raise your cost basis for qualifying improvements and subtract selling expenses from what you received. Both moves shrink the number that counts as profit.
Improvements that add value or extend the home’s useful life adjust your basis upward — a new roof, a kitchen remodel, an added bathroom, an HVAC replacement. Routine maintenance and repairs don’t. Keep the receipts, because they reduce the profit the IRS treats as taxable.
On the sale side, the IRS allows you to deduct commissions, advertising costs, legal fees, transfer or stamp taxes paid by the seller, and any loan charges you covered that were normally the buyer’s responsibility.2Internal Revenue Service. Publication 523, Selling Your Home
A quick illustration. You bought for $350,000, spent $25,000 on improvements, and sold for $450,000. Your adjusted basis is $375,000. Subtract $25,000 in commissions and closing costs from the sale price, and the amount realized is $425,000. Your gain is $50,000 — fully covered by the $250,000 exclusion. Nothing owed federally.
When Profit Exceeds the Exclusion
Anything above $250,000 (or $500,000 jointly) is taxed as a long-term capital gain, because you held the home for more than a year. In 2026, long-term capital gains rates are 0%, 15%, or 20%, depending on taxable income. Most sellers land at 15%. The 20% bracket kicks in above roughly $545,500 for singles and $613,700 for joint filers.
High earners face a second layer. The Net Investment Income Tax adds 3.8% on the smaller of your net investment income or the amount your modified adjusted gross income exceeds $200,000 single or $250,000 joint.3Internal Revenue Service. Net Investment Income Tax Gain sheltered by Section 121 doesn’t count toward NIIT; only the non-excluded portion does. A married couple with $400,000 in profit and no other investment income would owe no NIIT because the whole gain is excluded. A single filer with $350,000 in profit would have $100,000 exposed to capital gains tax and potentially the surtax.
Closing Costs Are the Real Hit
For most three-year sellers, closing costs matter more than taxes. Real estate commissions are the biggest line item. National averages in 2026 sit around 5.7% of the sale price, typically split between the listing and buyer’s agents. On a $400,000 home, that’s roughly $22,800. Since the 2024 NAR settlement, commission terms have become more openly negotiable, so it’s worth having that conversation before you list.
Beyond commissions, expect some combination of the following:
- Transfer taxes, which vary widely by jurisdiction — from a fraction of a percent to over 2% in some places.
- Title insurance. An owner’s policy paid by the seller is customary in many markets and can run from roughly $1,300 to over $4,700 depending on price and location.
- Escrow and settlement fees, typically a few hundred to over a thousand dollars.
- Prorated property taxes through the closing date.
Total out-of-pocket for closing, including commissions, commonly lands between 7% and 10% of the sale price. That math matters at three years. If prices haven’t moved much since you bought, closing costs can consume most or all of your equity. Run the numbers before you list to make sure you aren’t bringing money to the table. Commissions, transfer taxes, and other qualifying selling expenses also reduce your taxable gain under Section 121.2Internal Revenue Service. Publication 523, Selling Your Home
Prepayment Penalties Rarely Apply
Prepayment penalties get more anxiety than they deserve at the three-year mark. Since January 2014, federal rules implementing the Dodd-Frank Act have effectively banned prepayment penalties on most residential mortgages.4Consumer Financial Protection Bureau. Ability to Repay and Qualified Mortgage Standards Under the Truth in Lending Act Regulation Z For qualified mortgages (which covers most conventional fixed-rate loans made after that date), any allowed penalty is capped at 2% during the first two years and 1% during the third year, and it cannot apply after three years at all.5eCFR. 12 CFR 1026.43 – Minimum Standards for Transactions Secured by a Dwelling FHA-insured loans closed on or after January 21, 2015 carry no prepayment penalty and no post-payment interest.6Federal Register. Federal Housing Administration (FHA) Handling Prepayments Eliminating Post-Payment Interest Charges VA-guaranteed loans prohibit them as well.
Where penalties can still show up is on certain non-qualified mortgages, including hard-money loans, some jumbo products, and portfolio or private financing. If you’re unsure, check your original promissory note and closing disclosure. Even loans that do carry penalties are usually past the applicable window at three years.
Home Office Depreciation Recapture
If you claimed a home office deduction using the regular method during the years you owned the home, selling triggers depreciation recapture. The IRS makes you recapture the depreciation you previously deducted on the office portion, and that amount is taxed at a maximum 25% rate — even if the rest of your gain is fully excluded under Section 121.7Internal Revenue Service. Simplified Option for Home Office Deduction The exclusion doesn’t shelter recapture.
If you used the simplified method instead (the flat $5-per-square-foot rate, up to 300 square feet), there’s nothing to recapture, because that method doesn’t involve claiming depreciation.7Internal Revenue Service. Simplified Option for Home Office Deduction If you switched between the two methods during ownership, recapture only applies to the years you used the regular method.
Gain allocated to any period of “nonqualified use” — time when the property wasn’t your primary residence — also falls outside the Section 121 exclusion.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For a home office inside the same dwelling unit, this usually isn’t an issue. If you converted the property to a full rental for a stretch before selling, the gain allocated to that rental period doesn’t qualify.
Reporting the Sale to the IRS
Even when the entire gain is tax-free, you may still have reporting to deal with. The closing agent or title company is generally required to file Form 1099-S reporting the sale proceeds. They can skip the filing if you sign a certification that the home was your principal residence, no nonqualified use occurred after December 31, 2008, and the full gain is excludable under Section 121.8Internal Revenue Service. Instructions for Form 1099-S Proceeds From Real Estate Transactions
For single sellers, the sale price must be $250,000 or less to use the certification. For married sellers who certify marital status, the threshold is $500,000.8Internal Revenue Service. Instructions for Form 1099-S Proceeds From Real Estate Transactions Above those amounts, the closing agent files the 1099-S and you should report the sale on your return, even when the gain is fully excluded. Skipping that report is what tends to draw IRS correspondence later.
Disclosure Rules for Pre-1978 Homes
If your home was built before 1978, federal law requires specific disclosures before the buyer is locked into the contract. You must provide an EPA-approved lead hazard information pamphlet, disclose any known lead paint hazards, share any available lead testing reports, and give the buyer a 10-day window to conduct their own inspection (which the buyer can waive in writing).9eCFR. 24 CFR Part 35 – Lead-Based Paint Poisoning Prevention in Certain Residential Structures The purchase contract itself must carry a lead warning statement signed by both parties, and you’re required to keep copies of the disclosure documents for at least three years after closing.
This isn’t a tax rule, but it’s a federal obligation with real teeth: noncompliance can bring fines and civil liability. Your agent or closing attorney usually handles the paperwork, but the responsibility rests with you. Most states add their own seller disclosure requirements on top, covering things like structural defects and flooding history, so the lead paint form is rarely the only disclosure you’ll sign.