Capital Gains Tax on Sale of Home: The $250K/$500K Exclusion Explained
Most Texas homeowners owe no tax when they sell, thanks to the Section 121 exclusion. Here is who qualifies, how to calculate your gain, and what happens with rentals.

This article contains affiliate links. If you buy through them we may earn a commission at no cost to you. Details.
Most Texas homeowners pay no capital gains tax on the sale of their home. Federal law lets you exclude up to $250,000 of profit, or $500,000 if you are married filing jointly, as long as you owned and lived in the house for at least two of the last five years. Texas has no state income tax, so the only possible tax is federal, and only on gain above the exclusion or gain that does not qualify.
Below is how the exclusion works, how to calculate your real gain, what happens if you sell early or rented the house, and what paperwork to expect at closing.
The Section 121 exclusion: $250,000 or $500,000
The home sale exclusion lives in Section 121 of the Internal Revenue Code. According to IRS Topic 701, you may exclude up to $250,000 of gain from the sale of your main home, or up to $500,000 if you file a joint return with your spouse.
To qualify for the full exclusion, you must pass three tests:
- Ownership test: You owned the home for at least 24 months (two years) during the five years ending on the date of sale.
- Use test: You lived in the home as your main residence for at least 24 months during that same five-year period. The 24 months do not have to be continuous, and they do not have to overlap with the ownership period.
- Look-back test: You did not exclude gain from the sale of another home during the two years before this sale.
For the $500,000 joint exclusion, only one spouse has to meet the ownership test, but both spouses must meet the use test, and neither can have used the exclusion in the prior two years. A surviving spouse who has not remarried can still claim up to $500,000 if the home is sold within two years of the spouse's death and the other requirements were met.
Has anything changed for 2026?
No. As of November 2026, the limits are still $250,000 and $500,000. They are not indexed for inflation and have not changed since the exclusion took effect in 1997. The 2025 federal tax law known as the One Big Beautiful Bill Act did not change Section 121. Bills to raise or eliminate the caps have been introduced in Congress, but none has been enacted. Plan around the current numbers, not proposals.
Selling early: the partial exclusion
If you sell before meeting the two-year tests, you may still qualify for a reduced exclusion when the main reason for the sale was one of these, according to IRS Publication 523:
- Work: A new job location at least 50 miles farther from the home than your old work location.
- Health: Moving to obtain, provide or facilitate care for an illness or injury, including when a doctor recommends a change of residence.
- Unforeseeable events: Examples include the home being destroyed or condemned, a casualty loss from a natural or man-made disaster, death, divorce or legal separation, becoming eligible for unemployment, or a multiple birth from the same pregnancy.
The math is a fraction of 24 months (or 730 days). Take the shortest of: the time you lived in the home, the time you owned it, or the time since you last used the exclusion. Divide by 24 and multiply by $250,000 (per eligible person).
Example: A single Houston homeowner owns and lives in a house for 12 months, then takes a job in Dallas. Her maximum exclusion is 12 / 24 x $250,000 = $125,000. If her gain is under that, she owes nothing.
Hurricane damage can matter here. A home destroyed or condemned, or a casualty loss from a disaster, is on the IRS list of unforeseeable events.
How to calculate your gain (and your basis)
The exclusion applies to gain, not the sale price. Many sellers overestimate their gain because they forget what goes into basis. The basic formula is:
- Amount realized = sale price minus selling expenses (such as real estate commissions, advertising and legal fees for the sale).
- Adjusted basis = purchase price plus certain settlement costs from when you bought, plus the cost of improvements, minus depreciation and certain other items such as casualty losses you deducted.
- Gain = amount realized minus adjusted basis.
Settlement costs you can add to basis include items such as owner's title insurance, recording fees, survey fees, abstract fees, transfer taxes and legal fees for the title search or deed. Costs of getting your mortgage, like loan origination charges, and fire insurance premiums do not count.
Improvements are work that adds value, extends the home's useful life or adapts it to new uses: a new roof, an addition, a remodeled kitchen, foundation work, a new HVAC system. Routine repairs and maintenance, like patching drywall or repainting a room, do not count on their own. Repair-type work can count when it is part of a larger remodeling project.
Keep every receipt and closing statement from the day you buy. If you have owned the home for 20 years, receipts for that 2008 roof replacement could cut your taxable gain.
Expanding Accordion File Organizer
One home for your closing disclosure, deed, warranty, inspection report and tax records.
Check price on AmazonWorked example: married vs. single seller
Here is how the numbers play out for a Houston-area home bought years ago. The figures are hypothetical, chosen only to show the method.
| Line item (hypothetical) | Married, filing jointly | Single |
|---|---|---|
| Sale price | $900,000 | $900,000 |
| Selling expenses (commissions, fees) | -$50,000 | -$50,000 |
| Amount realized | $850,000 | $850,000 |
| Original purchase price | $300,000 | $300,000 |
| Settlement costs added to basis | $3,000 | $3,000 |
| Improvements (roof, kitchen, HVAC) | $45,000 | $45,000 |
| Adjusted basis | $348,000 | $348,000 |
| Gain | $502,000 | $502,000 |
| Section 121 exclusion | -$500,000 | -$250,000 |
| Taxable long-term gain | $2,000 | $252,000 |
Notice how much the improvements matter. Without the $45,000 in documented upgrades, the married couple's taxable gain would be $47,000 instead of $2,000. To see what you would actually walk away with after payoff and closing costs, try the seller net proceeds calculator, and review typical closing costs in Texas for the selling-expense side.
Tax rates on the taxable part
If some of your gain is taxable, the rate depends on how long you owned the home and your total taxable income.
- Short-term (owned one year or less): Taxed as ordinary income at your regular bracket.
- Long-term (owned more than one year): Taxed at 0%, 15% or 20%.
- Depreciation recapture: Gain equal to depreciation you claimed (or could have claimed) is "unrecaptured Section 1250 gain," taxed at a maximum 25% rate.
- Net investment income tax: An extra 3.8% may apply to the taxable portion if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Excluded gain is not subject to it.
For tax year 2026, IRS Revenue Procedure 2025-32 sets the long-term capital gains thresholds based on taxable income:
| Filing status (2026) | 0% rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
Texas adds nothing. The Texas Constitution prohibits a state personal income tax, so there is no state capital gains tax on your home sale. Sellers moving to Texas from states like California should note that their old state may still tax a sale of property located there.
Home offices, rentals and depreciation
The exclusion gets more complicated if you ever used the home, or part of it, to earn income.
Depreciation is never excluded
If you rented out part of the home or claimed a home office, you cannot exclude gain equal to depreciation allowed or allowable after May 6, 1997. "Allowable" means the IRS counts depreciation you were entitled to take, even if you never claimed it. That amount is taxed at up to 25%.
Nonqualified use
Periods after 2008 when the home was not your main residence, such as years it was a rental before you moved in, are generally "nonqualified use." Gain allocated to those periods cannot be excluded. A key exception: time after you move out, within the five-year window, does not count as nonqualified use. That is why a homeowner who moves out and rents the house for up to three years can often still sell with the full exclusion, apart from depreciation recapture.
When a 1031 exchange fits instead
A 1031 exchange lets investors defer tax by rolling the proceeds of investment or business real estate into another like-kind property. Your personal residence does not qualify. A former home converted to a rental and held for investment may, and in some cases owners combine both provisions. Read our guide to the 1031 exchange in Texas for the timelines and intermediary rules.
Form 1099-S and reporting the sale
In Texas, the title company handling your closing is usually the settlement agent responsible for filing Form 1099-S with the IRS. It does not have to file if you sign a written certification, under penalty of perjury, stating that:
- The home was your principal residence.
- The sale price was $250,000 or less, or $500,000 or less if you are married.
- There was no period of nonqualified use after 2008.
- All of the gain is excludable under Section 121.
If you cannot sign it, expect a 1099-S. If you receive one, you must report the sale on your tax return even when the entire gain is excluded. You also must report the sale if any part of the gain is taxable. Reporting happens on Form 8949 and Schedule D. If all your gain is excludable and you received no 1099-S, you generally do not need to report the sale.
Tax rules have exceptions this article cannot cover, so confirm your situation with a CPA or tax professional before you sell.
Fujitsu ScanSnap iX1600 Document Scanner
Scan receipts, policies and contractor estimates into searchable PDFs - indispensable for an insurance claim.
Check price on AmazonBottom line
For most Houston and Texas homeowners, capital gains tax on the sale of a home is zero: owning and living in the house for two of the last five years shields up to $250,000 of gain, or $500,000 for married couples, and Texas adds no state tax. The sellers who owe are those with very large gains, short ownership, rental use or depreciation. Track your basis carefully, keep improvement receipts, and run the numbers before you list. Browse more selling guides to plan the rest of your sale.
Frequently asked questions
Do I pay capital gains tax when I sell my house in Texas?
Usually not, if it was your main home. Federal law lets you exclude up to $250,000 of gain, or $500,000 for married couples filing jointly, if you owned and lived in the home for at least two of the five years before the sale. Texas has no state personal income tax, so there is no state tax on the gain. Only gain above the exclusion, or gain that does not qualify, is taxed federally.
Has the $250,000 home sale exclusion changed in 2026?
No. As of November 2026 the limits are still $250,000 for single filers and $500,000 for married couples filing jointly. They have not been adjusted for inflation since the exclusion was created in 1997. Bills have been introduced in Congress to raise or remove the caps, but none has become law, so plan your sale around the current limits.
What if I have to sell before living in the house for two years?
You may still qualify for a partial exclusion if the main reason for the sale was a job change, a health problem or an unforeseeable event such as divorce, death, or a home destroyed by disaster. A job move generally counts if the new work location is at least 50 miles farther from the home than the old one. The partial exclusion is prorated based on how many of the 24 months you met the tests.
Will I get a Form 1099-S when I sell my house?
Maybe. The title company or other settlement agent files Form 1099-S unless you sign a written certification that the home was your principal residence, the price was $250,000 or less ($500,000 if married), there was no nonqualified use after 2008 and all the gain is excludable. If you receive a 1099-S, you must report the sale on your return even if none of the gain is taxable.
Can I use a 1031 exchange on my primary residence?
No. A 1031 exchange applies only to real property held for investment or for use in a business. Your personal home does not qualify. A former residence that you converted to a rental and held for investment may qualify, and in some cases owners combine a 1031 exchange with the Section 121 exclusion. That combination has strict rules, so work with a CPA and a qualified intermediary.
Recommended gear
Expanding Accordion File Organizer
One home for your closing disclosure, deed, warranty, inspection report and tax records.
Check price on AmazonFujitsu ScanSnap iX1600 Document Scanner
Scan receipts, policies and contractor estimates into searchable PDFs - indispensable for an insurance claim.
Check price on AmazonThis guide is for general education and is not legal, tax, insurance or financial advice. Laws, rates and programs change - confirm details for your situation with a licensed professional.


