Capital Gains on a Home Sale, Explained Simply
Updated November 19, 2026
Gain is not the same as sale price
Tax is not figured on what the buyer paid. It is figured on your gain, which is roughly the sale price minus what you put into the home. That second number is called your basis. It starts with what you paid, including certain buying costs, and goes up with improvements that add value. Selling costs come off the price as well.
Say the house sold for far more than you paid. The gain is the difference after those adjustments. Then the home sale exclusion may wipe out some or all of it. Knowing your basis is half the job, which is why records matter so much here.
The exclusion for your main home
The tax code lets you leave part of the gain out of your income when you sell your main home. The limits are $250,000 for a single seller and $500,000 for married people filing a joint return. The $500,000 limit has its own conditions: either spouse meets the ownership test, both spouses meet the use test, and neither spouse used the exclusion on another sale within the past 2 years.
An unmarried surviving spouse can sometimes still use the larger amount if the sale comes within 2 years after the spouse's death. A second home, a rental the owner never lived in, or a vacation property does not qualify as a main home.
A real preparer reviews and signs your return. You get a free quote.
The ownership and use tests
You must meet two tests during the 5-year period that ends on the day of the sale.
- Ownership: you owned the home for at least 24 months, which is 2 years.
- Use: you lived in it as your main home for at least 2 years.
The two stretches of time do not have to be the same 2 years, and they do not have to run back to back. The code adds the periods together. Short trips and time away generally still count as use. On a joint return, only one spouse needs to meet the ownership test, but both must meet the use test.
You also generally cannot use the exclusion if you already used it on another home sale in the 2 years before this one. Keep that in mind if you sell two homes close together.
When a sale is taxable
A sale can be taxable in a few ways.
- Your gain is larger than the exclusion, and the extra is taxable.
- You missed the ownership or use test, and no special rule applies.
- You used the exclusion on another sale within the past 2 years.
- The property was not your main home, such as a rental or investment house.
There is one more path worth knowing. If you sold because of a job change, health, or certain unforeseen events, you may qualify for a reduced exclusion even when you did not reach the full 2 years. The reduction is based on how much of the 2-year period you did meet. Taxable gain from the sale is reported on Schedule D and Form 8949 with your return.
If you sold at a loss on a home you lived in, that loss is generally not deductible. Sales of a rental follow separate rules, which our rental property tax guide covers.
What Form 1099-S tells the IRS
Form 1099-S is titled Proceeds from Real Estate Transactions. It reports the sale or exchange of real estate. If a closing company or settlement agent sends you one, the IRS gets a copy too, so the sale will show up in their records.
This surprises people. The IRS says that if you received a 1099-S, you must report the sale on your return, even when the gain is fully excludable. If you cannot exclude all of the gain, you must report the sale as well. So a 1099-S in your mailbox does not mean you owe tax, but it does mean the sale belongs on your return. Match the sale price on the form to your closing statement, and tell us if they differ.
Records to keep
Bring or save these before you file, and keep them after.
- The closing statement from when you bought the home
- The closing statement from the sale, plus any Form 1099-S
- Receipts for improvements, such as a new roof, an addition, a new kitchen or a paved driveway
- Records showing you lived there, such as bills, a license or voter registration with that address
- Divorce or death records if they affect who owned the home
Basis can go back many years, so hold on to home records for as long as you own the home and for a while after. Our guide to how long to keep tax records has the general idea.
Getting the sale reported correctly
We prepare your return remotely, from anywhere. A family return starts at $299, and a return with a taxable home sale may need more work. We give you a free quote first, and the final fee is set in the quote, plus e-file and processing fees. See pricing for current starting prices. We prepare returns only. We are not a CPA firm and we do not give legal advice. You are responsible for the accuracy of the dates, costs and papers you provide.
FAQ
Do I owe tax if I sell my house for a profit?
Not always. If you meet the ownership and use tests, you can leave out up to $250,000 of gain, or $500,000 on a joint return. Only gain above that, or gain on a sale that misses the tests, is generally taxable.
Do I have to report a home sale if the gain is excluded?
If you received Form 1099-S, yes, you must report the sale on your return even when the gain is excludable. You also must report it when you cannot exclude all of the gain.
What if I lived in the home less than 2 years?
You may qualify for a reduced exclusion if you sold because of a job change, health reasons, or certain unforeseen events. The amount is cut based on how much of the 2 years you met.
Can I use the exclusion every time I sell a home?
Generally you cannot use it again if you excluded gain on another home sale during the 2 years before this one. The 2-year rule is one reason to plan the dates of two sales.
Sources
- irs.gov/taxtopics/tc701
- irs.gov/taxtopics/tc703
- irs.gov/forms-pubs/about-form-1099-s
- govinfo.gov/link/uscode/26/121
Keep reading
- Behind on Taxes for Several Years? Where to Actually Start
- Can Your Tax Preparer Represent You in an Audit?
- DIY Taxes or a Tax Preparer: When Hiring One Pays Off
Serving Longwood, Seminole County and clients in all 50 states remotely. See where we work.
General information, not tax advice for your specific situation. Rules can change, and a human preparer reviews your facts before any return is filed. Zero Fuss Taxes is a PTIN-holding tax preparation firm. We are not a CPA firm, enrolled agents or attorneys.