How Do I Avoid Capital Gains Tax on a Home Sale in Texas?

Because Texas imposes no state income tax, avoiding capital gains tax on a home sale in Texas is entirely a federal question, and the main tool is Section 121 of the Internal Revenue Code: up to $250,000 of profit tax-free for single filers, up to $500,000 for married couples filing jointly, on the sale of a primary residence.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence2State of Texas. Texas Constitution Article 8 – Taxation and Revenue For most Texas home sales the exclusion swallows the entire gain. Where it doesn’t, a few other rules can close the gap.

Qualifying for the Section 121 Exclusion

The exclusion is the whole game for most sellers. To claim the full amount, you have to pass two tests inside the five-year period ending on the sale date:

  • Ownership test. You owned the home for at least two years during that five-year window. The months don’t have to be consecutive.
  • Use test. You lived in the home as your primary residence for at least two years during the same five-year window.

For the $500,000 joint exclusion, both spouses must meet the use test, but only one has to meet the ownership test. And neither spouse can have used the exclusion on a different home in the previous two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

If your profit is under the threshold and you meet both tests, you owe no federal capital gains tax on the sale. If your profit runs higher, only the excess is taxed, at long-term capital gains rates of 0%, 15%, or 20% depending on your taxable income.3Internal Revenue Service. Topic No. 409 Capital Gains and Losses

Partial Exclusion When Life Forces an Early Sale

Selling before you hit the two-year marks doesn’t automatically kill the exclusion. If a specific life event forced the sale, you can claim a partial exclusion. The IRS recognizes qualifying reasons including a job relocation, serious health issues, divorce, death, unemployment, and the birth of multiple children from the same pregnancy.4Internal Revenue Service. Publication 523 – Selling Your Home

The math is proportional. Take the number of days you actually met the shortest applicable test, divide by 730, and multiply by $250,000 or $500,000. Twelve months of qualifying use would give you roughly half the maximum exclusion.4Internal Revenue Service. Publication 523 – Selling Your Home Hang on to documentation. An employer relocation letter, medical records, a divorce decree: these are what the IRS wants to see if it questions the claim.

Extended Window for Military and Foreign Service

Active-duty military members and Foreign Service officers on qualified extended duty can elect to suspend the five-year look-back for up to ten additional years, effectively turning it into a fifteen-year window for meeting the ownership and use tests.5eCFR. 26 CFR 1.121-5 – Suspension of 5-Year Period for Certain Members of the Uniformed Services and Foreign Service You make the election by excluding the gain on the return you file for the year of sale. The suspension can only cover one property at a time.

Raising Your Cost Basis to Shrink the Gain

Your taxable gain is the difference between what you net at closing and your adjusted cost basis. The higher the basis, the smaller the gain, and a smaller gain is easier for the exclusion to cover.

Your starting basis is generally what you paid for the home plus certain original closing costs: title insurance, legal fees, recording fees, and survey charges.6Internal Revenue Service. Publication 551 – Basis of Assets

Basis then goes up by the cost of capital improvements made while you owned the home. The IRS distinguishes improvements (projects that add value, extend the home’s life, or adapt it to a new use) from routine repairs and maintenance, which don’t count. Qualifying improvements include:4Internal Revenue Service. Publication 523 – Selling Your Home

  • Additions like bedrooms, bathrooms, decks, garages, and porches
  • System upgrades: HVAC, central air, security, wiring, water filtration
  • Exterior work: new roof, siding, storm windows
  • Interior projects: kitchen remodels, flooring, built-in appliances, fireplaces
  • Grounds work: landscaping, driveways, fences, retaining walls, swimming pools

Repainting, patching drywall, fixing a faucet: maintenance, not basis. There is one useful exception. Repair-type work done as part of an extensive remodel counts as an improvement. Replacing a broken window is a repair; replacing every window as part of a full renovation adds to basis.4Internal Revenue Service. Publication 523 – Selling Your Home

Selling expenses work the same way in reverse. Real estate commissions and transfer fees come off the sale price before the gain is calculated. Keep receipts for the improvements and the closing statements for both purchase and sale. If your gain ever gets large enough to matter, those records are what protect the number.

Depreciation Recapture If You Ever Rented the Home

If you rented out the home at some point and claimed depreciation, the exclusion does not cover the portion of gain tied to that depreciation. Section 121 carves out gain from depreciation adjustments taken after May 6, 1997.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence – Section (d)(6)

That carved-out amount, often called unrecaptured Section 1250 gain, is taxed at a maximum federal rate of 25% no matter how much of the rest of the profit qualifies for the exclusion. Depreciation also reduces basis, which enlarges the overall gain figure. If you claimed $40,000 of depreciation over a few rental years, you owe tax on that $40,000 at up to 25% even if the remaining profit falls inside the $250,000 or $500,000 exclusion. Sellers who lived in a place, moved out, rented it, and moved back in are the ones most often caught by this.

Inherited, Gifted, and Divorce-Related Homes

Inherited Homes Get a Stepped-Up Basis

Inheriting a home comes with a major tax break. The basis resets to the property’s fair market value on the date the previous owner died, not what they paid for it.8Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent A house your parent bought for $80,000 in 1985 that is worth $350,000 at their death gives you a starting basis of $350,000. Sell for $360,000, and the taxable gain is $10,000.

A surviving spouse gets an added benefit. If the home sells within two years of the spouse’s death, the surviving spouse hasn’t remarried, and the couple met the ownership and use tests before the death, the full $500,000 joint exclusion still applies.9Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence – Section (b)(4) Combined with the step-up, this two-year window often wipes out the tax entirely.

Gifted Homes Carry Over the Original Basis

Gifts do not get the step-up. If your parents give you the same house during their lifetime, your basis is their original basis (with a small adjustment for any gift tax paid), and all the appreciation they accumulated becomes your taxable gain when you sell. For families considering when to transfer property, the tax gap between inheriting and receiving a gift can run into the tens of thousands.

Divorce Transfers

When a home moves between spouses as part of a divorce, no gain or loss is recognized on the transfer. The receiving spouse takes over the other spouse’s basis and holding period as if nothing changed.10Office of the Law Revision Counsel. 26 US Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The transfer has to happen within a year of the divorce or be directly related to the end of the marriage, and this rule does not apply if the receiving spouse is a nonresident alien. Once the home is yours, you can still qualify for the Section 121 exclusion, and the time your former spouse owned the home counts toward your ownership period.

1031 Exchange for Investment Property

Section 121 only covers a primary residence. If what you’re selling is a rental or other investment property, the federal deferral tool is a like-kind exchange under Section 1031. Instead of paying tax on the gain, you roll it into a replacement investment property of equal or greater value, and the tax carries forward into the new property’s basis.11Office of the Law Revision Counsel. 26 US Code 1031 – Exchange of Real Property Held for Productive Use or Investment

The rules are rigid:

Miss either deadline and the whole transaction becomes a taxable sale. No grace period, no appeal. If you receive cash in the deal or take on less debt than you had on the old property, the difference (called “boot”) is taxable immediately even if the rest of the exchange defers successfully.

Other Levers for a Taxable Gain

Offsetting the Gain With Capital Losses

Capital losses from stocks or other investments offset a taxable home-sale gain dollar for dollar. Selling an underperforming investment in the same tax year as the home sale can shrink or eliminate the net gain. If total losses for the year exceed total gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately) and carry the rest forward.3Internal Revenue Service. Topic No. 409 Capital Gains and Losses

Installment Sale

If you finance the buyer yourself and collect payments over multiple years, the gain is recognized only as payments come in, spreading the tax across years and potentially keeping you in lower brackets.13Office of the Law Revision Counsel. 26 USC 453 – Installment Method One catch: any depreciation recapture is taxed in full in the year of the sale, regardless of when payments arrive.

Holding Period

Selling a property held one year or less produces a short-term capital gain, taxed at ordinary income rates up to 37%. Holding longer than a year drops the gain into the long-term rates of 0%, 15%, or 20%.3Internal Revenue Service. Topic No. 409 Capital Gains and Losses Since a primary residence needs two years of ownership and use to hit the full exclusion anyway, this matters more for investment properties and for partial-exclusion sales.

The 3.8% Net Investment Income Tax

Even after the exclusion, a large gain can trigger an additional 3.8% surtax on net investment income. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers, or $125,000 for married filing separately. Those thresholds are not indexed for inflation.14Internal Revenue Service. Topic No. 559 Net Investment Income Tax

Gain that Section 121 excludes is not counted as net investment income. Only the portion above the exclusion is. A single filer who excludes $250,000 but has an extra $100,000 of gain could see that $100,000 hit by both the regular capital gains rate and the 3.8% surtax if income is high enough.

Estimated Tax and Reporting the Sale

Federal tax is pay-as-you-go. A big taxable gain generally means making an estimated tax payment for the quarter the sale closes in, rather than waiting until you file. Falling short during the year triggers an underpayment penalty based on the shortfall and how long it went unpaid.15Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty Quarterly deadlines fall April 15, June 15, September 15, and January 15 of the following year. Increasing withholding on wages or retirement distributions works too.

On reporting: if the entire gain is excluded and you did not receive a Form 1099-S at closing, you don’t have to report the sale at all.4Internal Revenue Service. Publication 523 – Selling Your Home If a 1099-S was issued, you must report the sale on Form 8949 even if every dollar is excluded. The same applies whenever any part of the gain is taxable, using Form 8949 with Schedule D to show the calculation and claim the exclusion.16Internal Revenue Service. Instructions for Schedule D (Form 1040)

No state return, no state capital gains calculation. Texas has no state income tax, so the federal side is the entire picture.2State of Texas. Texas Constitution Article 8 – Taxation and Revenue