How Do You Avoid Capital Gains Tax When Selling a House in Texas?
How do you avoid capital gains tax when selling a house in Texas? For most homeowners, the answer is the federal Section 121 exclusion, which lets you exclude up to $250,000 of profit if you file single or up to $500,000 if you file jointly, as long as the home was your primary residence for at least two of the last five years. And because Texas has no state income tax, there is no state capital gains tax to worry about at all, so the federal rules are the whole conversation.
That short answer covers most El Paso sellers, but the details matter. The two-year clock, what happens if you rented the home out, how improvements raise your cost basis, and what to do with an investment property are where people get surprised. This guide walks through all of it in plain English.
One thing before we start: I am a REALTOR®, not a tax advisor, and this article is general information, not tax advice. Tax outcomes depend on your specific situation, so before you make decisions based on anything here, confirm the details with a certified public accountant or another qualified tax professional. What I can do is make sure you walk into that conversation knowing what to ask.
The Section 121 Exclusion: The Main Way Homeowners Avoid the Tax
The Internal Revenue Service allows you to exclude a large amount of home sale profit from your taxable income under Section 121 of the tax code. This is often called the home sale exclusion or the primary residence exclusion, and it is the single biggest reason most people who sell a home never owe capital gains tax on it.
How Much Profit Is Excluded
- Up to $250,000 of gain if you file your taxes as a single person.
- Up to $500,000 of gain if you are married filing jointly.
Notice that this is profit, not sale price. If you bought a home in Horizon City for $180,000 and sell it for $260,000, your gain is roughly $80,000 before adjustments, which sits comfortably under the $250,000 cap. With El Paso's median sale price generally reported in the $250,000 to $273,000 range by sources like Redfin and Homes.com as of mid-2026, the typical local seller's profit lands well inside the exclusion. Sellers who bought decades ago on the west side or in Kern Place, where appreciation has run longer, are the ones who should run the numbers carefully.
The 2-of-5-Year Rule
To qualify, you must pass two tests, and both look at the five years ending on the date of sale:
- Ownership test. You owned the home for at least two of the last five years.
- Use test. You lived in the home as your primary residence for at least two of the last five years.
The two years do not need to be continuous, and for married couples filing jointly, only one spouse needs to pass the ownership test, but both must pass the use test to claim the full $500,000. You also cannot have claimed the exclusion on another home sale within the two years before this sale.
A useful consequence of the five-year window: you can move out, rent the home for up to roughly three years, and still qualify if you sell before your two years of residence fall outside the window. The timing gets tight, so anyone in that situation should map the dates with a tax professional before listing.
A Special Break for Military Sellers
Fort Bliss families should know this one. Service members on qualified official extended duty, generally a Permanent Change of Station move of 50 miles or more, can suspend the five-year test period for up to ten years. That means a soldier who buys in Northeast El Paso, lives there three years, then gets orders elsewhere can often still claim the full exclusion many years later. If a PCS move is behind your sale, my guides for military buyers and sellers and on selling your home during a PCS move cover the practical side, and a tax professional can confirm how the suspension applies to your dates.
Why Texas Sellers Have It Easier Than Most
Texas is one of the states with no personal income tax, and that includes capital gains. States like California tax home sale gains above the federal exclusion as ordinary income, which can add double-digit percentages to the bill. In Texas, whatever the federal rules say is the end of the story.
Do not confuse this with property taxes, which work in the opposite direction here. Texas leans on property taxes precisely because it has no income tax, and El Paso's combined rates are among the highest in the state, generally in the 2.3% to 2.6% range depending on where you live. Those are annual taxes on ownership assessed through the El Paso Central Appraisal District, and they are completely separate from what happens when you sell. If you want the full picture on that side, my El Paso property taxes guide breaks it down.
So the honest summary for a Texas seller is: no state capital gains tax ever, and no federal capital gains tax for most primary-residence sellers whose profit fits under the exclusion.
Your Gain Is Probably Smaller Than You Think: Cost Basis Adjustments
The second layer of protection is how the gain itself is calculated. Your taxable gain is not "sale price minus what I paid." It is the amount you realize from the sale minus your adjusted cost basis, and both sides of that equation move in your favor.
What Raises Your Cost Basis
Your basis starts at your original purchase price plus many of your original closing costs, and it grows with capital improvements you made over the years. Improvements are projects that add value, extend the home's life, or adapt it to new uses. In an El Paso home, common examples include:
- A new roof, which desert sun and hail make a fact of life here
- Replacing the refrigerated air or heating system
- Room additions, garage conversions done with permits, or a covered patio
- A full kitchen or bathroom remodel
- New flooring throughout, a rock wall or fence, or a permanent storage building
- Solar panels and other permanent energy upgrades
Repairs and maintenance do not count. Patching the roof, repainting, fixing a swamp cooler, and replacing a broken window are upkeep, not improvements. The line can get blurry on big projects, which is another good question for your tax preparer.
What Reduces the Amount You Realized
On the other side, your selling costs come off the top: real estate commissions, title policy fees, escrow fees, and most of the other line items you see at closing. My closing costs guide walks through what those usually look like in an El Paso sale.
A Worked Example
Say a married couple bought a home in Socorro for $150,000, spent $40,000 over the years on a new roof, refrigerated air, and a kitchen remodel, and sells for $280,000 with about $20,000 in commissions and closing costs.
- Amount realized: $280,000 minus $20,000 = $260,000
- Adjusted basis: $150,000 plus $40,000 = $190,000
- Gain: $70,000
That $70,000 is far below their $500,000 exclusion, so they owe no federal capital gains tax and, this being Texas, no state tax either. The lesson: keep receipts and records for every improvement, because each documented dollar shrinks the gain you have to shelter.
What Breaks or Shrinks the Exclusion
The exclusion is generous, but it is not automatic. These are the situations that most often trip sellers up.
Selling Before Two Years
If you sell before hitting two years of ownership and residence, you generally do not qualify for the full exclusion. There is a partial exclusion if the early sale is driven by a work relocation of 50 miles or more, a health-related move, or certain unforeseen circumstances such as divorce or a death in the household. The partial amount is prorated by how much of the two years you completed. If none of those exceptions apply, your profit is taxable, and if you owned the home less than one year, it is taxed at short-term rates, which match your ordinary income bracket and are usually higher.
The Home Was a Rental
Rental use complicates things in two ways. First, any depreciation you claimed, or could have claimed, while renting the home out is recaptured when you sell and taxed at up to 25%. The exclusion never covers depreciation recapture. Second, if you moved into a home that had been your rental and later sold it, the years it spent as a rental after 2008 count as nonqualified use, which reduces the share of your gain the exclusion can cover. Landlords thinking about this move should read my El Paso rental and investment property guide and then sit down with a tax professional before changing anything.
You Used the Exclusion Recently
Section 121 is available once every two years. If you excluded gain on another home sale within the last two years, you cannot claim it again on this one, even if you otherwise qualify.
Second Homes and Inherited Property
A vacation home or a house that was never your primary residence does not qualify at all. Inherited homes play by different rules entirely, usually with a stepped-up basis to the value at the date of death, which often wipes out most of the gain on its own. Both situations are firmly in tax-professional territory.
Investment Property: The 1031 Exchange Note
If the property you are selling is an investment property rather than your home, Section 121 does not apply, but a different tool might: the 1031 exchange, named for its own section of the tax code. It lets an investor defer capital gains tax by rolling the sale proceeds into another investment property of equal or greater value.
The rules are strict. You generally must identify the replacement property within 45 days of closing, complete the purchase within 180 days, and route the money through a qualified intermediary rather than touching it yourself. Miss a deadline and the deferral is gone. And to be clear, a 1031 exchange is only for property held for investment or business use. You cannot 1031 your own residence, and turning an exchanged property into your residence later involves holding periods and limitations that absolutely require professional guidance.
For El Paso landlords weighing whether to sell, trade up, or hold, the market context in my investment property guide is the starting point, and a CPA plus a qualified intermediary are the team that executes the tax side.
Practical Steps for El Paso Sellers
Pulling it together, here is the sequence I suggest to anyone selling a home in El Paso who wants to keep their tax bill at zero or close to it:
- Check your dates. Confirm you hit two years of ownership and residence within the last five, and that you have not used the exclusion in the past two years.
- Gather improvement records. Receipts, permits, and contractor invoices for the roof, the refrigerated air conversion, the addition. Every documented improvement raises your basis.
- Estimate your gain honestly. Likely sale price, minus selling costs, minus adjusted basis. If the result is under $250,000 single or $500,000 married, the federal exclusion likely covers you, and Texas adds nothing on top.
- Flag the complications early. Rental history, a sale before two years, military orders, an inheritance, or a gain near the cap all mean one thing: talk to a tax professional before you list, not after you close.
- Time the sale for the market, not just the calendar. Once the tax side is settled, when you list still drives what you net. My guide on the best time to sell in El Paso covers the seasonal patterns.
When you are ready to talk strategy, pricing, and timing for your specific home, my seller services page explains how I work with El Paso sellers from first conversation to closing. I will handle the market side and make sure a qualified tax professional handles the tax side.
Frequently Asked Questions
Do you pay capital gains tax when you sell a house in Texas?
Often no. Texas has no state income tax, so there is never a state capital gains tax. Federally, the Section 121 exclusion shelters up to $250,000 of profit for single filers and $500,000 for married couples filing jointly on a primary residence you owned and lived in for at least two of the last five years. Most sellers' profits fit under those caps.
How long do you have to live in a house to avoid capital gains tax?
You need at least two years of ownership and two years of use as your primary residence within the five years before the sale. The two years do not have to be continuous, and qualifying military members on extended duty can suspend the five-year window for up to ten years.
What happens if I sell my house before two years?
You generally lose the full exclusion, though a partial exclusion may apply if the sale was forced by a job relocation of 50 miles or more, health reasons, or certain unforeseen events. Without an exception, the profit is taxable, and sales within one year of purchase are taxed at higher short-term rates.
Do I have to buy another house to avoid capital gains tax?
No. The old rollover rule that required buying a replacement home was repealed in 1997. Today's Section 121 exclusion applies whether you buy again, rent, or move in with family. The only reinvestment requirement that exists is inside a 1031 exchange, which applies to investment property, not your home.
Is there still a one-time capital gains exemption for people over 55?
No. The over-55 one-time exclusion was also eliminated in 1997 and replaced by the current exclusion, which has no age requirement and can be used repeatedly, as long as two years pass between uses.
Does renting out my house ruin the exclusion?
Not automatically, but it changes the math. Depreciation claimed during the rental years is taxed when you sell regardless of the exclusion, and rental periods after 2008 that came before you moved in can reduce the excludable share of your gain. If your home has any rental history, have a tax professional run your numbers before you list.