Blog
How to Avoid Capital Gains Tax on Rental Property

How to Avoid Capital Gains Tax on Rental Property

STR Search Team
By: STR Search Team
Published on:
5/26/2026
min read

Real estate investment has surged in popularity, with rental property ownership at new heights. Many investors are caught off-guard when capital gains taxes claim up to 20% of their profits. Capital gains tax represents the federal tax owed on the profit from selling rental property for more than its adjusted basis, potentially costing investors tens of thousands of dollars.

Understanding how to minimize or defer these taxes is crucial for maximizing your investment returns. Whether you’re a seasoned investor or new to the rental property market, strategic tax planning can impact your bottom line and long-term wealth-building potential.

This guide provides strategies to legally reduce your capital gains tax on rental property sales. We will explore every avenue available to investors, from 1031 exchanges and primary residence conversions. For those looking to expand their portfolios, STR Search offers data-driven analysis to identify high-performing short-term rental investment opportunities that maximize returns and consider tax implications.

Understanding Capital Gains Tax on Rental Property

The federal tax on the profit from selling an asset, like your rental property, for more than its original purchase price is called capital gains tax. The IRS distinguishes between two types of capital gains based on property ownership duration:

  • Short-term capital gains apply to properties held for one year or less, taxed as ordinary income at rates up to 37%.
  • Long-term capital gains apply to properties held for over one year, with tax rates of 0%, 15%, or 20%.

How Capital Gains Tax Applies to Rental Properties

To calculate capital gains on rental property sales, determine your adjusted basis. The adjusted basis is the original purchase price plus capital improvements minus accumulated depreciation. Subtract this adjusted basis from your sale price to find your taxable capital gain.

If you bought a rental property for $300,000, made $50,000 in improvements, claimed $75,000 in depreciation, and sold it for $450,000:

  • Adjusted basis: $300,000 + $50,000 - $75,000 = $275,000
  • Capital gain: $175,000 = $450,000 - $275,000

Capital gains tax is separate from depreciation recapture tax. We'll address later.

Capital Gains Tax Rates for Rental Property

In 2026, long-term capital gains tax rates depend on your total taxable income:

  • 0%: Single filers with income up to $44,625; married filing jointly up to $89,250
  • 15%: Single filers with income from $44,626 to $518,900; married filing jointly from $89,251 to $583,750
  • 20%: Single filers with income above $518,900; married filing jointly above $583,750

Higher-income taxpayers may face an additional 3.8% Net Investment Income Tax, raising the top rate to 23.8%. Depending on your location, state capital gains taxes may apply, further increasing your total tax burden.

Primary Residence Exclusion (Section 121)

Section 121 of the Internal Revenue Code provides one of the most powerful tools for avoiding capital gains tax, allowing homeowners to exclude capital gains from the sale of their primary residence. For 2026, the exclusion amounts are:

  • For single filers, $250,000
  • $500,000 for married couples filing jointly

These exclusions apply per sale, meaning you can use this strategy multiple times throughout your investment career if you meet the requirements.

Converting a Rental Property into a Primary Residence

One strategy is to convert your rental property into your primary residence to qualify for the Section 121 exclusion. You must satisfy two requirements:

  • Ownership test: You must have owned the property for at least two years within the five years ending on the sale date.
  • Use test: You must have lived in the property as your primary residence for at least two years within the five-year period ending on the sale date.

The two-year periods don’t need to be consecutive, allowing flexibility in structuring the conversion. This strategy works well for investors buying properties in desirable locations where they might want to live.

Considerations and Limitations

Before pursuing this strategy, be aware of the "nonqualified use" rule. If the property was a rental for a substantial portion of your ownership, a portion of your gain may not be eligible for the exclusion. The IRS calculates this by determining the percentage of your total ownership period involving nonqualified use.

Any depreciation claimed during the rental period cannot be excluded and will be subject to depreciation recapture tax at rates up to 25%, even if you qualify for the primary residence exclusion on the remaining gain.

1031 Exchange (Like-Kind Exchange)

A 1031 exchange, or like-kind exchange, is a powerful strategy for deferring capital gains tax on rental property. This tax-deferred exchange allows investors to sell a rental property and reinvest the proceeds into a similar "like-kind" property without immediately paying capital gains tax.

A 1031 exchange provides tax deferral, not elimination. Taxes are postponed until you sell the replacement property without another exchange. However, investors can exchange properties indefinitely, potentially passing assets to heirs who receive a "stepped-up basis" at death.

The Rules and Timelines of a 1031 Exchange

Completing a tax-deferred exchange requires strict adherence to IRS rules and timelines:

  • 45-day identification period: Within 45 days of selling your relinquished property, identify potential replacement properties.
  • 180-day exchange period: You must buy your replacement property within 180 days of selling your relinquished property.

The "like-kind" requirement is broadly interpreted for real estate. Any investment-held real property can be exchanged for any other investment real property. You could exchange a single-family rental for an apartment building, commercial property, or vacant land intended for investment.

A qualified intermediary (QI) must facilitate the exchange to ensure you never take constructive receipt of the sale proceeds. The QI holds the funds between the sale and purchase, maintaining the tax-deferred status.

Advantages and Disadvantages of a 1031 Exchange

Advantages:

  • Complete deferral of capital gains taxes
  • Opportunity to upgrade to larger or more profitable properties
  • Potential for improved cash flow and appreciation
  • Ability to diversify into different property types or locations

Disadvantages:

  • Strict rules and timelines
  • Complexity needing professional assistance
  • Limited inventory of suitable replacement properties
  • Future sales remain due on depreciation recapture tax.
  • Potential complications if exchange requirements aren’t met.

Common Mistakes in a 1031 Exchange

Investors often face pitfalls that can disqualify their exchanges:

  • Missing the 45-day or 180-day deadlines
  • Commingling exchange funds with personal accounts
  • Not using a qualified intermediary
  • Buying property that doesn't qualify as "like-kind"
  • Not identifying replacement properties within the 45-day window

It is essential to work with experienced professionals familiar with 1031 exchanges to avoid costly mistakes.

Depreciation Recapture and Its Impact

Depreciation allows rental property owners to deduct a portion of their property's cost each year for wear, tear, and obsolescence. For residential properties, this deduction is calculated using a 27.5-year recovery period.

Depreciation recapture represents the "recapture" of depreciation deductions when you sell the property. The IRS requires you to "pay back" the tax benefit from depreciation deductions, typically taxed at ordinary income rates capped at 25% for 2026.

How Depreciation Recapture Affects Capital Gains Tax

Depreciation recapture impacts your capital gains calculation by reducing your adjusted basis. Here’s how it works:

  • Original purchase price: $400,000
  • Capital improvements: $25,000
  • Accumulated depreciation: $100,000
  • Adjusted basis: $325,000

If you sell for $500,000:

  • Total gain: $175,000
  • Depreciation recapture (25% tax): $100,000
  • Capital gain (taxed at capital gains rates): $75,000

You’ll pay depreciation recapture tax on the accumulated depreciation plus capital gains tax on any appreciation above your adjusted basis.

Planning for Depreciation Recapture

Several strategies can minimize the impact of depreciation recapture:

  • Execute a 1031 exchange to defer capital gains and depreciation recapture taxes.
  • Offset capital losses from other investments
  • Before deciding to sell, consider the total tax impact.
  • Evaluate if ownership and rental income outweigh the tax consequences of selling.

Understanding depreciation recapture is important for accurate tax planning and determining the true after-tax return on your rental property investment.

Holding Property in a Trust or Entity

Some investors consider holding rental properties within trusts or LLCs for business and estate planning purposes. Living trusts, irrevocable trusts, and LLCs each offer different benefits depending on your circumstances and goals.

Potential Tax Benefits and Considerations

While trusts and LLCs benefit estate planning and liability protection, transferring property to these entities doesn’t automatically eliminate capital gains tax obligations.

For most rental property investors, single-member LLCs are treated as "disregarded entities" for tax purposes. This means capital gains tax treatment remains unchanged. The owner still pays capital gains tax at individual rates when the property is sold.

Certain trusts may offer tax planning opportunities, but these involve complex strategies with restrictions and requirements. The tax implications depend on the specific type of trust or entity structure and how it is established and managed.

Consulting Legal and Financial Professionals

Before implementing these strategies, it is essential to consult qualified legal and financial professionals due to the complexity of entity structures and their varying tax implications. An experienced attorney and tax advisor can help determine whether trust or LLC ownership aligns with your investment and estate planning objectives.

The primary benefits of LLCs involve liability protection and operational flexibility rather than capital gains tax avoidance.

Selling at a Loss or Breaking Even

When market conditions force you to sell your rental property for less than its adjusted basis, you’ll realize a capital loss instead of a gain. In these situations, there’s no capital gains tax liability since no taxable gain occurred.

How Losses Offset Gains

Capital losses from rental property sales can provide tax benefits by offsetting capital gains from other investments in the same tax year. This strategy, "tax-loss harvesting," can reduce your overall tax liability.

In 2026, if your capital losses exceed your capital gains, you can deduct up to $3,000 of the excess loss against ordinary income. Remaining losses carry forward to future tax years for ongoing tax benefits.

Wash Sale Rule

While the wash sale rule primarily affects securities transactions, real estate investors should be aware of its principles. This rule prevents claiming a loss if you repurchase a "substantially similar" asset within 30 days before or after the sale. Though less commonly applied to real estate, avoiding transactions that might create artificial losses is prudent.

Timing the Sale

Timing your rental property sale can impact your capital gains tax liability. Consider:

  • Current and projected capital gains tax rates
  • Your income level in different tax years
  • Market conditions and property appreciation trends
  • Your overall tax situation and other potential gains or losses

Tax Planning and Professional Advice

If you expect lower income or capital gains tax rates in the future, deferring the sale might reduce your tax burden. Conversely, if rates are expected to increase, accelerating the sale could provide tax savings.

Tax considerations should align with market factors and your investment objectives. Tax planning should complement, not override, sound investment decision-making.

Using Installment Sales to Spread Gains

An installment sale involves selling your rental property and receiving payments over multiple years instead of a lump sum at closing. This strategy allows you to spread the capital gains recognition and tax liability across several years.

How Installment Sales Defer Capital Gains Tax

In an installment sale, you recognize capital gains proportionally as you receive payments. If your gain is 40% of the total sale price, then 40% of each payment will be taxable as capital gain.

This approach can be beneficial if:

Deferred recognition keeps you in lower capital gains tax brackets.

  • You want to avoid a large tax bill in a single year.
  • You’re comfortable with the buyer’s payment risk.

Risks and Considerations of Installment Sales

Several risks must be evaluated in installment sales:

  • Buyer default risk (you may not receive all promised payments)
  • Potential changes in tax laws affecting future tax liability.
  • Complexity in structuring and documenting the transaction
  • Limited liquidity since you don’t receive full proceeds immediately.

Requirements for Installment Sales

To qualify for installment sale treatment, you must receive at least one payment in a tax year after the sale year. Proper documentation and IRS reporting on Form 6252 are required for compliance.

Deducting Expenses and Improvements

Proper documentation of expenses and improvements maximizes your property's adjusted basis, which directly reduces your capital gains tax liability. Every dollar added to your basis reduces taxable gain by one dollar.

Calculating the Adjusted Basis

Your adjusted basis consists of:

  • Original purchase price
  • Plus capital improvements (renovations, additions, major repairs)
  • Minus accumulated depreciation

A higher adjusted basis means a lower taxable capital gain, making meticulous record-keeping during ownership beneficial.

Examples of Deductible Expenses and Improvements

Capital improvements that can be added to your property's basis include:

  • Roof replacement or major repairs
  • Installation or upgrades
  • Flooring installation (hardwood, tile, carpet)
  • Renovations of kitchens and bathrooms
  • Landscaping and outdoor improvements
  • Legal fees for the purchase
  • Property survey costs
  • Title insurance and recording fees

Typically, regular maintenance and minor repairs can't be added to the basis, but major improvements that extend the property's useful life or increase its value generally qualify.

Importance of Record-Keeping

Maintain accurate records of all qualifying expenses and improvements to support your basis adjustments. Keep receipts, contracts, invoices, and documentation for all work on the property. Without proper documentation, the IRS may disallow your basis adjustments, resulting in higher capital gains tax.

State-Specific Capital Gains Tax Rules

Federal capital gains tax rules apply nationwide, but many states impose additional state capital gains taxes that can impact your total tax liability. States like California, New York, and New Jersey have high state capital gains tax rates, while Florida, Texas, and Nevada impose no state income tax on capital gains.

Researching State Tax Laws

State tax laws on capital gains from rental property sales vary. Some states offer preferential rates for long-term capital gains, while others tax them as ordinary income. Research your state's requirements by consulting:

  • The website of your state's revenue department
  • State-specific tax publications
  • Local tax professionals familiar with state regulations

Consulting a Tax Professional

Coordinating federal and state tax obligations is complex, so it is beneficial to work with a tax professional who understands both. They can help you develop strategies to minimize your total tax burden across jurisdictions.

Conclusion

Minimizing capital gains tax on rental property requires strategic planning and understanding of options. Strategies like 1031 exchanges, primary residence exclusions, installment sales, and proper basis documentation can reduce tax liability when implemented correctly.

Success lies in planning ahead rather than scrambling for solutions after deciding to sell. When evaluating strategies, consider your long-term investment goals, current tax situation, and market conditions. Tax laws are complex and changeable, making professional guidance essential for optimal results.

STR Search provides the data-driven analysis and support needed to identify profitable short-term rental investments that align with your tax strategies, whether you want to defer taxes through exchanges, convert properties to primary residences, or explore new investment opportunities. Our proven 4-step process helps investors maximize returns while considering the full spectrum of tax implications.

FAQ: Additional Topics and Clarifications

Q: Can I gift rental property to avoid capital gains tax?

A: Gifting rental property doesn’t eliminate capital gains tax liability; it transfers it to the recipient. They inherit your original cost basis, meaning they’ll pay capital gains tax on the difference between your purchase price (plus improvements, minus depreciation) and their sale price. While gifting can be useful for estate planning, it doesn’t avoid capital gains tax for the family unit.

Q: Can I donate rental property to charity to avoid capital gains tax?

A: Donating appreciated rental property to a qualified charity can eliminate capital gains tax and provide a charitable deduction for the property's fair market value. This strategy works best when you have appreciation and want to support charities. However, there are limitations on the deduction amount (typically 30% of adjusted gross income for real property), with excess deductions carrying forward for up to five years.

Q: How do recent tax law changes impact capital gains tax on rental property?

Recent tax legislation has maintained the current capital gains tax rates through 2026, but proposed changes could affect future rates. The Tax Cuts and Jobs Act of 2017 preserved favorable long-term capital gains rates while modifying related provisions. Stay informed about potential changes, as proposed increases in capital gains rates for high-income taxpayers could impact investment strategies. Consult a tax professional regarding current tax law developments and implications for your situation.

John Bianchi
John Bianchi
Airbnb Owners or Wannabe Owners
Get Matched With a high Performing property - 100% guaranteed
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Trusted By People Headshots

Trusted by hundreds of successful investors

Put your money to work & 
lower your tax bill

We’ve spent years analyzing what works so you don’t have to. Our job is to cut through bad data and help you make smart, profitable decisions backed by real numbers.

Schedule Your Free Call