Your search results

How to Avoid Capital Gains Tax on Real Estate

Posted by Alexis Thompson on March 9, 2026
0 Comments

Selling real estate can generate enormous profits, but it can also generate an equally painful tax bill. In the United States, the federal government taxes profits from property sales through the capital gains tax system. Depending on your income, your tax rate can reach 15%, 20%, or even higher when additional surtaxes apply.

For investors and homeowners alike, that can mean losing tens or even hundreds of thousands of dollars after a property sale.

The good news is that the U.S. tax code offers several legal strategies to reduce, defer, or eliminate capital gains tax. Investors across the country, especially in fast-growing markets like Texas, routinely use these methods to preserve profits and continue building wealth through property ownership.

If you plan to sell property in 2026, understanding these strategies is essential. The most common ways to reduce or avoid capital gains tax include the primary residence exclusion, 1031 exchanges for investment properties, offsetting gains with capital losses, and long-term estate planning strategies such as the step-up in basis.

Understanding Capital Gains Tax on Real Estate

Before looking at ways to avoid capital gains tax, it helps to understand how the tax is calculated.

Capital gains tax applies when a property is sold for more than its original purchase price and improvements.

When you sell a property, the IRS looks at the difference between the sale price and your cost basis.

Your cost basis includes:

• The purchase price of the property
• Closing costs
• Capital improvements made over time

For example, if you purchased a property for $300,000 and later sold it for $700,000, your capital gain would be $400,000.

More information about federal capital gains tax rules can be found through the IRS capital gains tax guidance.

Short-Term vs Long-Term Capital Gains

The tax rate applied depends on how long you owned the property.

Short-term capital gains apply when a property is held for less than one year. These gains are taxed as ordinary income, which means the tax rate could be as high as the highest income bracket.

Long-term capital gains apply when the property has been owned for more than one year. These are typically taxed at 0%, 15%, or 20% depending on income levels.

High-income taxpayers may also pay an additional 3.8% Net Investment Income Tax, increasing the effective tax burden even further.

For real estate investors, the combination of these taxes can significantly reduce profits unless proper tax planning is used.

The Primary Residence Capital Gains Exclusion

One of the most powerful tax benefits available to homeowners is the primary residence exclusion, also known as the Section 121 exclusion.

Under this rule, homeowners may exclude:

• Up to $250,000 in capital gains if filing single
• Up to $500,000 if married filing jointly

To qualify, you must have lived in the property for at least two of the previous five years before the sale.

This exclusion applies only to primary residences, not investment properties.

Example

Imagine a married couple purchases a home for $400,000. Ten years later, the home sells for $900,000.

Their profit equals $500,000.

Because of the primary residence exclusion, the entire gain may be excluded from federal capital gains tax.

Using a 1031 Exchange to Defer Capital Gains Tax

For real estate investors, the most well-known tax strategy is the 1031 exchange, named after Section 1031 of the Internal Revenue Code.

A 1031 exchange allows investors to sell an investment property and reinvest the proceeds into another qualifying property without immediately paying capital gains tax.

Official IRS guidance on 1031 exchanges: IRS Section 1031 Exchange Rules.

Instead of recognizing the gain, the tax liability is deferred into the new property.

Basic 1031 Exchange Rules

To qualify, investors must follow strict timing requirements.

After selling a property, they must:

• Identify a replacement property within 45 days
• Complete the purchase within 180 days

The replacement property must be of equal or greater value to fully defer taxes.

Converting a Rental Property into a Primary Residence

Another strategy involves converting an investment property into a primary residence before selling it.

To qualify, the owner must live in the property for at least two years within a five-year period before selling.

While the IRS limits the portion of gains that can be excluded when a property was previously used as a rental, this strategy can still significantly reduce taxable gains.

Offset Real Estate Gains with Capital Losses

Another method to reduce capital gains tax involves offsetting gains with losses from other investments.

For example, if you sold a property with a gain of $200,000 but realized $50,000 in stock market losses, the taxable gain becomes $150,000.

Losses that exceed gains may also offset up to $3,000 of ordinary income per year.

Opportunity Zone Investments

Opportunity Zones were created to encourage investment in economically distressed areas.

Investors who reinvest capital gains into Qualified Opportunity Funds may receive significant tax advantages.

These benefits include:

• Deferral of capital gains taxes
• Reduction of taxable gain
• Tax-free growth on new investments held long enough

Opportunity Zones exist throughout the United States, including ocations in Texas.

The Step-Up in Basis Strategy

A long-term wealth strategy used by many real estate investors involves holding property until death.

When heirs inherit real estate, they typically receive a step-up in basis, meaning the property’s tax basis is adjusted to current market value at the time of inheritance.

This eliminates capital gains accumulated during the original owner’s lifetime.

Why Texas Real Estate Investors Have a Tax Advantage

Texas does not impose a state income tax.

That means there is no state capital gains tax on property sales.

This makes Texas one of the most attractive states for:

real estate investors
• property developers
• rental property owners
• land investors

For additional insights on market trends, see the Bar T Realty market update.

Capital Gains Tax and Selling Land

Owners of ranches, acreage, and rural investment property often see significant appreciation over time.

When selling land in Texas, Oklahoma, or Wyoming, capital gains taxes can significantly affect the final profit from a sale.

Understanding tax strategies before listing a property can help landowners preserve more of their investment returns.

When Capital Gains Tax Cannot Be Avoided

Despite these strategies, there are situations where capital gains tax may still apply.

For example, investors who sell a property without performing a 1031 exchange or who exceed the limits of the primary residence exclusion will still owe taxes on their profits.

Additionally, depreciation recapture may apply to rental properties that were depreciated over time. This portion of the gain is taxed separately and can increase the total tax owed after a sale.

Because real estate transactions can involve complex tax consequences, professional tax advice is often necessary when planning a sale. Working with experienced real estate professionals and tax advisors can help property owners plan ahead and reduce unexpected tax burdens when selling property.

Frequently Asked Questions

Do you always pay capital gains tax when selling real estate?

No. Homeowners may avoid paying capital gains tax if they qualify for the primary residence exclusion, which allows up to $250,000 or $500,000 in tax-free gains depending on filing status.

What is the 2-year rule for capital gains?

The rule refers to the requirement that homeowners must live in a property for at least two out of the previous five years to qualify for the primary residence capital gains exclusion.

Can you avoid capital gains tax by reinvesting in real estate?

Yes. A 1031 exchange allows investors to defer capital gains taxes when reinvesting profits into another qualifying investment property.

Do Texas residents pay capital gains tax?

Texas does not charge state income tax, meaning residents only pay federal capital gains tax on real estate profits.

How long do you have to reinvest money in a 1031 exchange?

Investors must identify replacement property within 45 days and complete the purchase within 180 days.

Capital gains tax can significantly affect profits from a real estate sale, but several legal strategies exist to reduce or defer these taxes.

Homeowners can benefit from the primary residence exclusion, while investors often rely on tools such as 1031 exchanges, tax-loss harvesting, and long-term estate planning.

For property owners and investors in Texas, Oklahoma, and Wyoming, understanding these strategies before selling property is an important step in protecting long-term investment returns.

Leave a Reply

Your email address will not be published.

  • Advanced Search

Compare Listings