Email FacebookTwitterMenu burgerClose thin

How to Avoid Capital Gains Tax on Investment Property Sales

SmartAsset maintains strict editorial integrity. It doesn’t provide legal, tax, accounting or financial advice and isn’t a financial planner, broker, lawyer or tax adviser. Consult with your own advisers for guidance. Opinions, analyses, reviews or recommendations expressed in this post are only the author’s and for informational purposes. This post may contain links from advertisers, and we may receive compensation for marketing their products or services or if users purchase products or services. | Marketing Disclosure
Share

Selling an investment property can unlock a large profit, but taxes can take a meaningful share of the proceeds if you do not plan ahead. Capital gains rates, depreciation recapture, the net investment income tax and state taxes can all affect what you ultimately owe. Understanding how these rules work, and which strategies may reduce or defer the tax, can help investors make more informed decisions before putting a property on the market.

If you want to avoid capital gains, a financial advisor can help you create a financial plan to lower your tax liability.

Understanding Capital Gains Tax

Capital gains tax can apply when you sell an investment property for more than its adjusted tax basis. Your gain is generally the amount realized from the sale minus the property’s adjusted basis, which typically starts with the purchase price and is then increased by certain capital improvements and reduced by depreciation and other adjustments.

How long you own the property affects how the gain is taxed. A gain on property held for one year or less is generally short-term and taxed at ordinary federal income tax rates. Property held for more than one year can qualify for long-term capital gain treatment, with most long-term gains potentially taxed at 0%, 15% or 20%, depending on the taxpayer’s taxable income.

Investment property can also create an additional tax issue because of depreciation. Depreciation deductions reduce the property’s adjusted basis, which can increase the taxable gain when the property is sold. For depreciable real estate, the portion of a long-term gain attributable to depreciation may be treated as un-recaptured Section 1250 gain and taxed at a maximum federal rate of 25%.

For example, suppose an investor buys a rental property for $300,000 and later has an adjusted basis of $250,000 after accounting for depreciation. If the property is sold for $450,000 before selling expenses, the investor would generally have a $200,000 gain. Part of that gain could be subject to the special rules for depreciation, while the remaining long-term gain may qualify for the standard long-term capital gains rates.

Other taxes can also increase the total cost of a sale. Depending on income, some investment property gains may be subject to the 3.8% net investment income tax, and state capital gains or income taxes may also apply. Because basis, depreciation and holding period all influence the final tax bill, understanding these figures before selling can make it easier to evaluate strategies for reducing or deferring capital gains taxes.

The tax rate on capital gains can vary, depending on how long you held the property.

How to Avoid Capital Gains Tax on Investment Property

Selling an investment property at a profit can create a sizable tax bill, especially when years of appreciation and depreciation are involved. However, investors may be able to reduce, defer or in some cases avoid capital gains taxes by using strategies such as a 1031 exchange, offsetting gains with capital losses or planning the timing and structure of the sale. The best approach depends on the property, the investor’s broader tax situation and what they plan to do with the proceeds. Let’s explore some options.

1031 Exchange

A 1031 exchange is named after Section 1031 of the Internal Revenue Code. It allows you to defer paying capital gains taxes by reinvesting the sale proceeds from your investment property into a similar property. This strategy is beneficial for real estate investors who want  to upgrade their portfolio without an immediate tax burden. 

In order to avoid capital gains by buying another piece of real estate, the new property must be of equal or greater value, and the transaction must be completed within specific time frames, which is typically 180 days.

Primary Home Exclusion

If your investment property has been your primary residence for at least two of the last five years, you may qualify for the primary home exclusion, also known as the Section 121 Exclusion. This tax benefit allows you to exclude up to $250,000 of capital gains if you are single and up to $500,000 if you are married and filing jointly. 

This strategy can be particularly advantageous if you plan to convert an investment property into your primary residence before selling.

Use Tax-Loss Harvesting

Tax-loss harvesting involves selling underperforming investments to offset the gains from your property sale. This strategy can help reduce your overall taxable income. By carefully managing your investment portfolio, you can realize losses that can be deducted against the gains from the sale of your property, potentially lowering your tax liability. 

This approach requires a good understanding of your overall investment performance and careful planning.

Installment Sale

An installment sale allows you to spread the capital gains tax over several years by receiving the sale proceeds in installments. This method can be particularly useful if you anticipate being in a lower tax bracket in future years. By deferring the bulk of your capital gains tax, you can better manage your tax obligations and potentially pay less overall. 

However, this strategy requires the buyer’s agreement and a well-structured contract to ensure compliance with IRS regulations.

Invest in Opportunity Zones

Opportunity Zones are designated areas in need of economic development that also offer tax incentives for investors. By reinvesting capital gains into an opportunity zone fund, you may be able to defer or reduce your tax liability while supporting community development.

The timing of your investment matters significantly under current law. Investments made before December 31, 2026, fall under the original rules, which require deferred gains to be recognized by that same date. For most investors considering this strategy today, waiting until 2027 may produce a meaningfully better tax outcome.

The One Big Beautiful Bill Act, signed into law on July 4, 2025, made the opportunity zone program permanent and introduced stronger benefits for investments made after December 31, 2026. Those include a five-year deferral on initial gains, a 10% basis step-up at the five-year mark, and a continued exclusion from tax on new gains for investments held at least 10 years. A new Qualified Rural Opportunity Fund category offers an even larger 30% basis step-up for qualifying rural investments held at least five years.

Because the transition between old and new rules is complex, this strategy calls for guidance from a tax professional before committing any capital.

Timing Strategies to Minimize Capital Gains

Clients meeting with a financial advisor to discuss strategies that can help them avoid capital gains.

The timing of your investment property sale can also affect how much tax you owe. Timing the sale to match your income levels or to align with market conditions can help lower your capital gains exposure.

  • Sell in a low-income year. If you expect a drop in income, such as a sabbatical, retirement or career change, you may want to plan your property sale for that year. Lower income could place you in a lower capital gains tax bracket, reducing your overall tax bill.
  • Hold for over one year. To qualify for long-term capital gains tax rates, you must hold the property for more than one year. Rates are lower than short-term rates, but selling too early could result in a higher tax rate based on your ordinary income.
  • Stagger sales if you own multiple properties. Instead of selling multiple investment properties in a single year, consider spreading the sales across several tax years. This can keep each year’s capital gains lower, potentially avoiding a higher bracket or triggering additional taxes like the Net Investment Income Tax.

Smart timing does not eliminate taxes, but it may reduce them. Planning around your income level and holding period can help preserve more of your investment gains.

Other Tax Considerations When Selling an Investment Property

When selling rental properties, there are many tax implications to consider beyond capital gains taxes. Some of these things include:

  • Depreciation recapture: Depreciation allows property owners to deduct a portion of the property’s value over time, reducing taxable income. However, upon selling the property, the IRS requires recapturing this depreciation, taxing it at your marginal income tax rate up to a maximum of 25%.
  • Passive loss limitations: If you have accumulated passive losses from rental properties, selling a property could trigger the ability to deduct these losses. In some cases, rental losses that were previously limited can be used to offset other taxable income in the year of the sale.
  • Net Investment Income Tax (NIIT): This 3.8% NIIT tax applies to individuals with a high net investment income, including rental income. If your adjusted gross income exceeds certain thresholds ($200,000 for single filers and $250,000 for married couples filing jointly), the NIIT could impact your rental property sale proceeds.
  • State and local taxes: Each state has its own tax regulations, which may include transfer taxes, recording fees and local income taxes on the sale. These taxes vary widely and can significantly affect the net proceeds from the sale.
  • Alternative minimum tax (AMT): For some property owners, the AMT may apply. Using accelerated depreciation methods instead of straight-line methods, you can classify the revenue from a sale as regular income instead of capital gains. This may push you beyond the threshold for AMT tax exemptions. For tax year 2025, single filers earning $626,350 in income and married taxpayers filing jointly with $1,252,700 in income are not eligible for AMT exemptions and are subject to greater tax liability.

How a Financial Advisor Can Help You Minimize Taxes on Investments

If you are preparing to sell an investment property, a concentrated stock position or multiple rental assets in the same year, the tax impact can be larger than expected. You may be facing capital gains tax, depreciation recapture, the 3.8% Net Investment Income Tax and possible state taxes at the same time. An advisor can step in before the transaction closes, when there is still flexibility to structure the sale rather than react to the tax bill after the fact.

In that situation, you are making decisions that involve timing, structure and reinvestment. You may need to decide whether to pursue a 1031 exchange, convert a rental into a primary residence to qualify for a Section 121 exclusion, spread payments through an installment sale or realize losses elsewhere in your portfolio. Each choice affects your taxable income, holding period, cash flow and long-term portfolio allocation. Once a sale is executed without planning, some of these options are no longer available.

An advisor helps you model the numbers before you act. That includes calculating your adjusted cost basis, estimating depreciation recapture at up to 25%, projecting your long-term capital gains rate and determining whether you will cross the Net Investment Income Tax thresholds. They can also review how the sale interacts with other income in the same year, such as business income, bonuses or retirement distributions. If you are considering a 1031 exchange, an advisor can coordinate with a qualified intermediary and confirm that identification and 180-day deadlines are met.

You could ask targeted questions such as:

  • If I sell this year, which capital gains bracket will apply based on my projected income?
  • How much of my gain will be subject to depreciation recapture?
  • Would staggering sales across two tax years reduce my exposure to higher rates or NIIT?
  • Can harvested losses from my brokerage account offset this real estate gain?
  • Does converting this property into my primary residence for two years meaningfully reduce the tax bill?

Advisor involvement becomes more valuable as the transaction grows in size and complexity. Large gains can push you into higher brackets, trigger NIIT, affect Medicare premium surcharges or reduce eligibility for certain deductions and credits. Timing rules for 1031 exchanges and installment sales are rigid, and errors can disqualify tax treatment. By analyzing the tradeoffs before you commit, you reduce the risk of unintended tax consequences and align the sale with your broader investment and income plan.

Bottom Line

Real estate investors reviewing the plan for an investment property.

Capital gains taxes on investment property can be significant, but several strategies may help reduce or defer the bill. Options can include using a 1031 exchange, offsetting gains with investment losses, increasing the property’s adjusted basis through qualifying improvements or carefully timing the sale. Because depreciation, holding period, income level and state taxes can all affect the final amount owed, reviewing the tax impact before selling can help investors keep more of their proceeds.

Tax Planning Tips for Investors

  • If you’re building a real estate investment portfolio, a financial advisor can help you plan for taxes. Finding a financial advisor doesn’t have to be hard. SmartAsset’s free tool matches you with vetted financial advisors who serve your area, and you can have a free introductory call with your advisor matches to decide which one you feel is right for you. If you’re ready to find an advisor who can help you achieve your financial goals, get started now.
  • If you’re looking for tax-efficient investments, here are seven you can add to your portfolio.

Photo credit: ©iStock.com/andresr, ©iStock.com/FG Trade, ©iStock.com/vm