Back to Blog
Tax & Finance20 min readFebruary 26, 2026

Capital Gains Tax on Rental Property: How to Minimize What You Owe When You Sell

Selling a rental property triggers capital gains tax, depreciation recapture, and potentially the Net Investment Income Tax — all at once. This guide explains how capital gains work on rental property, how to calculate your tax liability, and the strategies that minimize your bill.

Matthew Luke
Matthew Luke
General Manager, VerticalRent
Capital Gains Tax on Rental Property: How to Minimize What You Owe When You Sell

After twelve years of owning a small duplex in Phoenix, Sandra finally decided it was time to sell. The property had appreciated from her $185,000 purchase price to a market value of $425,000, and she was ready to use that equity to fund her retirement travels. What she wasn't prepared for was the conversation with her accountant that followed. Between federal capital gains tax on her rental property, depreciation recapture, and Arizona state taxes, Sandra was looking at a potential tax bill exceeding $65,000. "I knew there would be taxes," she told me when she called for advice, "but I had no idea it would be this much. Is there anything I can do?"

Sandra's story isn't unique. Every week, I hear from independent landlords who are blindsided by the tax implications of selling their rental properties. After 15+ years in the property management industry and helping thousands of landlords through VerticalRent, I've seen this scenario play out countless times. The good news? With proper planning and strategy, many landlords can significantly reduce—or even defer—their capital gains tax burden. Sandra ended up saving over $40,000 by implementing several strategies we'll cover in this guide.

The capital gains tax rental property owners face represents one of the largest financial considerations when exiting an investment. Unlike selling your primary residence, where you might qualify for up to $500,000 in tax-free gains, rental properties come with their own complex set of rules, including the often-overlooked depreciation recapture tax that catches many landlords off guard. Understanding these rules isn't just helpful—it's essential for protecting the wealth you've built over years of property ownership.

In this comprehensive guide, I'll walk you through everything you need to know about capital gains taxes on rental properties: how they're calculated, what rates you'll pay, and most importantly, the proven strategies that can help you keep more of your hard-earned profits. Whether you're planning to sell next month or just want to prepare for the future, this knowledge could save you tens of thousands of dollars.

Capital Gains Tax on Rental Property: How to Minimize What You Owe When You Sell — visual guide for landlords

What You'll Learn in This Guide

  • How capital gains taxes are calculated on rental property sales, including the often-overlooked depreciation recapture component that can add 25% to your tax bill
  • The difference between short-term and long-term capital gains rates and how holding periods dramatically affect your tax liability
  • Seven proven strategies to minimize, defer, or eliminate capital gains taxes, including 1031 exchanges, installment sales, and Opportunity Zone investments
  • State-by-state tax considerations that could add (or subtract) thousands from your total tax burden
  • Common mistakes landlords make when selling rental properties and how to avoid them
  • A step-by-step checklist for tax-efficient property sales that you can implement immediately

Understanding Capital Gains Tax Basics for Rental Property

Before diving into minimization strategies, you need a solid understanding of how capital gains taxes actually work for rental properties. Capital gains tax is levied on the profit you make when you sell an asset for more than you paid for it. For rental property owners, this calculation is more complex than simply subtracting your purchase price from your sale price.

The IRS considers your "adjusted basis" when calculating gains, not your original purchase price. Your adjusted basis starts with what you paid for the property (including closing costs) and is then adjusted for improvements you've made and depreciation you've claimed (or should have claimed) over the years. This adjusted basis calculation is where many landlords make costly mistakes, either by failing to track improvements properly or by not understanding how depreciation affects their eventual tax bill.

Here's a simplified example of how this works: Let's say you purchased a rental property for $200,000 ten years ago. Over that time, you've added a new roof ($15,000) and renovated the kitchen ($20,000). You've also claimed $50,000 in depreciation deductions. Your adjusted basis would be: $200,000 + $15,000 + $20,000 - $50,000 = $185,000. If you sell for $350,000, your total gain would be $165,000—not the $150,000 you might have expected.

This is where rental property taxation differs significantly from other investments. That $50,000 in depreciation you claimed over the years? The IRS wants some of it back. This is called depreciation recapture, and it's taxed at a rate of up to 25%—regardless of your income level. Understanding Depreciation for Rental Property is crucial because it affects not just your annual tax returns but also your eventual sale proceeds.

Expert Tip: Many landlords don't realize that the IRS will tax you on depreciation recapture whether or not you actually claimed the depreciation deductions. This "allowed or allowable" rule means you should always claim your depreciation—failing to do so means paying taxes on phantom deductions you never received.

The remaining gain after accounting for depreciation recapture is taxed at long-term capital gains rates (assuming you've held the property for more than one year). These rates are significantly lower than ordinary income rates, ranging from 0% to 20% depending on your taxable income. This two-tier taxation system—depreciation recapture at 25% plus remaining gains at capital gains rates—is what makes rental property sales particularly complex from a tax perspective.

Short-Term vs. Long-Term Capital Gains: Why Timing Matters

The length of time you've owned your rental property dramatically affects how much tax you'll owe when you sell. Properties held for one year or less are subject to short-term capital gains tax, which is taxed at your ordinary income rate—potentially as high as 37% for high earners. Properties held for more than one year qualify for preferential long-term capital gains rates.

This distinction makes timing one of the most critical factors in your sale decision. If you purchased a property in March 2024 and sell it in February 2025, you'll pay short-term rates on your entire gain. Wait just one more month, and you could cut your tax rate nearly in half. For a $100,000 gain, this timing difference could mean paying $37,000 in taxes versus $20,000 or less.

Tax Filing Status Income Range (2024) Long-Term Capital Gains Rate Short-Term Rate (Ordinary Income)
Single $0 - $47,025 0% 10% - 12%
Single $47,026 - $518,900 15% 22% - 35%
Single $518,901+ 20% 37%
Married Filing Jointly $0 - $94,050 0% 10% - 12%
Married Filing Jointly $94,051 - $583,750 15% 22% - 35%
Married Filing Jointly $583,751+ 20% 37%

Beyond the basic capital gains rates, high-income landlords may also face the Net Investment Income Tax (NIIT) of 3.8%. This additional tax applies to investment income—including rental property gains—for single filers with modified adjusted gross income above $200,000 or married couples filing jointly above $250,000. When combined with the 20% long-term rate, this brings the maximum federal capital gains rate to 23.8%.

At VerticalRent, we help landlords track their property acquisition dates and holding periods automatically, ensuring you always have accurate records for tax planning purposes. Our platform maintains detailed transaction histories that can be invaluable when working with your tax professional to optimize sale timing. This kind of organized record-keeping can mean the difference between an unexpected tax bill and a well-planned exit strategy.

Consider the case of Tom, a landlord in Colorado who inherited a property from his father. He assumed his holding period started when he received the property, but inherited properties actually carry over the deceased owner's holding period. Because his father had owned the property for 20 years, Tom qualified for long-term treatment immediately—but he almost paid short-term rates because he didn't know the rule. Understanding these nuances is essential for proper tax planning.

Depreciation Recapture: The Hidden Tax That Catches Landlords Off Guard

If there's one aspect of rental property taxation that consistently surprises landlords, it's depreciation recapture. Every year you own a rental property, you're required to depreciate the building (not the land) over 27.5 years. This depreciation reduces your taxable rental income annually—a valuable benefit while you own the property. However, when you sell, the IRS "recaptures" this depreciation at a rate of up to 25%.

Let's break down how this works with a concrete example. Suppose you purchased a rental property for $300,000, with $240,000 allocated to the building and $60,000 to the land. Over 10 years of ownership, you would have claimed approximately $87,273 in depreciation ($240,000 ÷ 27.5 × 10 years). When you sell the property for $400,000, your gain calculation looks like this:

  • Original purchase price: $300,000
  • Less: Accumulated depreciation: $87,273
  • Adjusted basis: $212,727
  • Sale price: $400,000
  • Total gain: $187,273
  • Depreciation recapture (taxed at 25%): $87,273
  • Remaining capital gain (taxed at 0-20%): $100,000

In this scenario, the depreciation recapture tax alone would be $21,818 ($87,273 × 25%). Add the capital gains tax on the remaining $100,000, and you can see how tax bills quickly become substantial. This is why I always emphasize to landlords: don't forget about depreciation recapture when calculating your potential proceeds from a sale.

Important Warning: The IRS will calculate depreciation recapture based on the depreciation you were entitled to claim, even if you never actually took the deductions. If you've owned rental property for years without claiming depreciation, you've essentially given up free tax deductions while still being liable for recapture. Consult a tax professional about filing amended returns to claim missed depreciation.

The interaction between depreciation and capital gains is one reason why maintaining meticulous records is so critical. You need to track not just your purchase price but also your cost segregation studies (if any), capital improvements, and annual depreciation schedules. Many landlords I work with use VerticalRent's document storage and expense tracking features to maintain these records digitally, making tax time—and eventual sale planning—much more straightforward.

Understanding depreciation recapture also informs other decisions about your rental property business. For instance, if you've done a cost segregation study to accelerate depreciation, you'll have more recapture to deal with when you sell. This isn't necessarily bad—you received larger tax deductions earlier—but it needs to be factored into your exit planning. The various rental property tax deductions you claim during ownership all have implications for your eventual sale, making comprehensive record-keeping essential.

Strategy 1: The 1031 Exchange — Deferring Taxes Indefinitely

The 1031 exchange, named after Section 1031 of the Internal Revenue Code, is arguably the most powerful tax deferral tool available to rental property investors. This strategy allows you to sell your rental property and reinvest the proceeds into a "like-kind" replacement property while deferring all capital gains and depreciation recapture taxes. When executed properly, you can continue exchanging properties throughout your lifetime, never paying capital gains taxes until you eventually sell without replacing the property.

For a 1031 exchange to work, you must follow specific rules precisely. First, both the property you're selling (relinquished property) and the property you're buying (replacement property) must be held for investment or business purposes. Personal residences don't qualify, but virtually any type of investment real estate can be exchanged for any other type—you could exchange an apartment building for raw land or a retail strip center for a single-family rental.

The timing requirements are strict and unforgiving. From the date you close on the sale of your relinquished property, you have exactly 45 days to identify potential replacement properties in writing. You then have a total of 180 days from the original sale to close on your replacement property. Miss either deadline, and the entire exchange fails, leaving you with a taxable event.

Additionally, to defer all taxes, you must reinvest all of the net proceeds and acquire a property of equal or greater value. If you take any cash out ("boot"), that amount becomes taxable. Similarly, if you reduce your mortgage debt without replacing it with equivalent debt or additional cash, the reduction is treated as boot and taxed accordingly.

1031 Exchange Requirement Details Consequences of Non-Compliance
Like-Kind Property Must be real property held for investment or business Exchange fails; full tax liability triggered
Identification Period 45 days to identify replacement properties Cannot close on non-identified properties
Exchange Period 180 days to close on replacement property Exchange fails if deadline missed
Equal or Greater Value Replacement property must match or exceed value Difference ("boot") is taxable
Qualified Intermediary Must use third-party to hold funds Direct receipt of funds disqualifies exchange
Same Taxpayer Same entity must sell and purchase Different entity ownership invalidates exchange

I've written extensively about this topic in our comprehensive 1031 exchange landlords guide, which covers advanced strategies like reverse exchanges and improvement exchanges. For many independent landlords, the 1031 exchange represents the single most effective way to build wealth through real estate by continuously deferring taxes and reinvesting full equity into larger or more profitable properties.

One caveat: with the potential for changing tax laws, some advisors suggest locking in current tax benefits sooner rather than later. While 1031 exchanges have survived multiple tax reform efforts, there's no guarantee they'll exist in their current form forever. This makes staying informed and working with qualified professionals more important than ever.

Property management guide — capital gains tax rental property

Strategy 2: Converting Rental Property to Primary Residence

One of the most generous tax benefits in the entire tax code is the primary residence exclusion, which allows homeowners to exclude up to $250,000 in capital gains ($500,000 for married couples filing jointly) when selling their home. With proper planning, some landlords can access this exclusion for properties that started as rentals.

To qualify for the primary residence exclusion, you must have owned the property for at least two years and used it as your primary residence for at least two of the five years preceding the sale. These don't have to be consecutive years, and the ownership and use tests can be met at different times. This flexibility creates an opportunity for landlords willing to move into their rental properties.

Here's how the strategy works in practice: Let's say you own a rental property with $400,000 in built-up equity. Instead of selling it as a rental, you stop renting it out and move in yourself. After living there as your primary residence for at least two years, you can sell and potentially exclude a significant portion of your gains from taxation.

However, there's an important limitation for former rental properties. Due to the Housing Assistance Tax Act of 2008, you cannot exclude gains attributable to "nonqualified use" periods after 2008. Nonqualified use includes any period when the property wasn't used as your primary residence. The excludable gain is prorated based on the ratio of qualifying use to total ownership period.

Consider this example: You owned a rental property for 10 years, then moved in and lived there for 2 years before selling. Your qualified use period is 2 years out of 12 total years of ownership. If your total gain is $300,000, only $50,000 (2/12 × $300,000) would be eligible for the primary residence exclusion. A married couple could exclude all $50,000, but the remaining $250,000 would still be subject to capital gains tax.

Planning Tip: The nonqualified use rules only apply to periods after December 31, 2008. If you've owned your rental property since before 2009 and lived in it as your primary residence at some point before converting it to a rental, those pre-2009 periods don't count as nonqualified use. This can significantly increase your excludable gain.

Also note that depreciation recapture cannot be excluded under the primary residence rules. Even if you qualify to exclude some or all of your capital gains, you'll still owe the 25% recapture tax on any depreciation claimed during the rental period. This makes the conversion strategy most valuable for properties with large appreciation but relatively modest depreciation claims.

This strategy requires significant lifestyle changes and long-term planning, making it impractical for many landlords. However, if you're approaching retirement or considering downsizing, converting a well-appreciated rental into your primary residence before selling could save you substantial taxes. Just be sure to document your move thoroughly—the IRS may scrutinize these conversions closely.

Strategy 3: Installment Sales for Spreading Tax Liability

When you sell a property and receive payments over multiple years rather than a lump sum, you may qualify for installment sale treatment under IRS rules. This strategy allows you to spread your capital gains tax liability over the payment period, potentially keeping you in lower tax brackets and reducing your overall tax burden.

An installment sale occurs when you receive at least one payment after the tax year of the sale. You report the gain proportionally as you receive payments, rather than all at once in the year of sale. This can be particularly advantageous if receiving all proceeds in one year would push you into a higher tax bracket or trigger the Net Investment Income Tax.

Here's a practical example: You sell a rental property for $500,000 with a gain of $200,000. The buyer pays $100,000 down and signs a note for the remaining $400,000, payable over 10 years with interest. In this scenario, 40% of each payment you receive is considered gain ($200,000 ÷ $500,000). In year one, you'd report $40,000 in gain (40% of the $100,000 down payment). Each subsequent year, you'd report 40% of that year's principal payments as gain.

The benefits of installment sales extend beyond bracket management. By spreading income over multiple years, you may be able to stay below the thresholds for the 3.8% Net Investment Income Tax or the 20% capital gains rate. You also earn interest on the installment note, providing ongoing income. For landlords selling to family members or trusted buyers, this can be an elegant way to structure a mutually beneficial transaction.

However, installment sales come with risks and limitations. You're essentially acting as the bank, which means you face the risk that the buyer might default on payments. You'll also have a continued financial interest in the property's success, since your payments depend on the buyer's ability to pay. Additionally, depreciation recapture is taxed in full in the year of sale—you cannot spread this portion of your gain over time.

At VerticalRent, we've seen landlords successfully use installment sales when selling to long-term tenants who want to become homeowners but need flexible financing terms. Our AI-powered tenant screening and payment history tracking can help you assess whether a buyer/tenant is likely to honor an installment agreement. While we always recommend consulting with tax and legal professionals before structuring these deals, having reliable data on your tenants' payment history provides valuable context for the decision.

Strategy 4: Opportunity Zone Investments

Created by the Tax Cuts and Jobs Act of 2017, Qualified Opportunity Zones offer another powerful way to defer and potentially reduce capital gains taxes. When you sell a rental property (or any other asset with capital gains), you can invest the gain amount into a Qualified Opportunity Fund (QOF) within 180 days to defer the tax until the earlier of when you sell the QOF investment or December 31, 2026.

The opportunity zone program provides two distinct benefits. First is deferral: you delay paying capital gains tax on your reinvested gains. Second is potential reduction: if you hold your Opportunity Zone investment for at least 10 years, any appreciation on that investment is completely tax-free. This second benefit is the real prize—it's essentially a government incentive to invest in economically distressed areas.

Unlike 1031 exchanges, Opportunity Zone investments don't require you to purchase like-kind property. You can sell a rental property and invest the gains into an Opportunity Fund that might focus on commercial real estate, businesses, or a diversified portfolio of qualifying investments. You also have more flexibility in timing—the 180-day window is more forgiving than the 45/180-day requirements of 1031 exchanges.

However, there are important considerations. Opportunity Zones are designated census tracts, meaning your investment options are geographically limited. The quality of investments varies significantly—not every Opportunity Fund is well-managed or offers good returns. You also need to weigh the certainty of your current gain against the uncertainty of a new investment in a designated distressed area.

For independent landlords, Opportunity Zone investments might make sense in several scenarios: when 1031 exchange-suitable properties aren't available in your preferred market, when you want to diversify out of direct property management, or when you're excited about development opportunities in emerging neighborhoods. Some landlords have used Opportunity Funds as a semi-passive way to maintain real estate exposure while stepping back from day-to-day management responsibilities.

One important note: the tax deferral aspect of Opportunity Zones is set to end on December 31, 2026. After that date, deferred gains become taxable regardless of whether you've sold your Opportunity Zone investment. This deadline makes timely planning essential if you're considering this strategy.

Strategy 5: Harvesting Losses and Strategic Timing

Tax-loss harvesting—selling investments at a loss to offset gains—is a well-known strategy in stock investing, but it applies equally to real estate. If you have rental properties or other investments with built-in losses, strategically selling them in the same year as your profitable property sale can reduce or eliminate your capital gains tax liability.

The math is straightforward: capital losses directly offset capital gains. If you sell one property for a $150,000 gain and another for a $50,000 loss, your net capital gain is only $100,000. If you have more losses than gains, you can use up to $3,000 of excess losses to offset ordinary income, with remaining losses carrying forward to future years.

This strategy requires having properties (or other investments) with unrealized losses—something not all landlords will have, especially in markets that have appreciated consistently. However, even in strong markets, you might have properties that underperformed, needed expensive repairs that weren't capitalized, or were purchased at market peaks. These "dogs" in your portfolio might actually be valuable for tax planning purposes.

Beyond loss harvesting, strategic timing of your sale can significantly impact your tax liability. Consider these timing factors:

  • Tax year income: If you expect unusually high income this year (business bonus, IRA distribution, spouse returning to work), deferring your sale to next year might keep you in a lower bracket
  • Retirement timing: Selling after you retire often means lower overall income and potentially lower capital gains rates
  • Life events: Marriage can increase your income thresholds; divorce might lower them. Major medical expenses or charitable giving in the same year can offset income
  • Tax law changes: Political shifts may signal coming changes to capital gains rates, making earlier or later sales more advantageous

VerticalRent's financial dashboard gives landlords a clear picture of their annual rental income and expenses across all properties, making it easier to plan sale timing around your overall tax situation. By understanding your rental portfolio's performance throughout the year, you can make more informed decisions about when to sell and which properties might offer loss-harvesting opportunities.

It's worth noting that the IRS "wash sale" rules, which prevent investors from immediately repurchasing substantially identical securities after selling at a loss, don't apply to real estate. This means you could theoretically sell a property at a loss, use that loss to offset gains from another sale, and immediately purchase a similar rental property. This flexibility makes real estate loss harvesting more practical than its stock market equivalent.

Strategy 6: Charitable Giving and Donor-Advised Funds

For landlords with charitable inclinations, donating appreciated rental property or using the proceeds strategically can provide significant tax benefits. Several approaches exist depending on your goals and the amount of appreciation involved.

The most straightforward approach is donating the property directly to a qualified charity. When you donate appreciated property held for more than one year, you generally receive a charitable deduction for the full fair market value without recognizing any capital gains. This effectively eliminates both the capital gains tax and the depreciation recapture tax. However, your deduction is limited to 30% of your adjusted gross income for gifts of appreciated property, with a five-year carryforward for any excess.

A Charitable Remainder Trust (CRT) offers another option. With a CRT, you transfer the property to an irrevocable trust that sells it tax-free and invests the proceeds. You receive income from the trust for a specified period or for life, and the remainder eventually passes to your designated charity. This strategy provides an immediate partial tax deduction, eliminates capital gains on the sale, and creates an income stream—all while supporting causes you care about.

Donor-advised funds (DAFs) have become increasingly popular for real estate gifting. You can donate property to a DAF, receive an immediate tax deduction, and then recommend grants to various charities over time. The DAF handles the property sale, avoiding capital gains for you. This approach works well if you want to support multiple charities or prefer to make giving decisions gradually rather than all at once.

Here's a comparison of charitable strategies:

  • Direct gift to charity: Simplest approach, full deduction up to 30% of AGI, charity must be willing to accept and manage real estate
  • Charitable Remainder Trust: Income stream for life plus charitable deduction, complex setup, requires legal assistance
  • Donor-Advised Fund: Flexibility in grant timing, professional management of property sale, lower administrative burden
  • Bargain sale: Sell property to charity below market value, part sale (potentially taxable) and part gift (deductible)

These charitable strategies work best for landlords who were already planning to support charitable causes and have highly appreciated properties. If philanthropy isn't in your plans, forcing charitable giving to save taxes rarely makes financial sense—you're still giving away money that exceeds the tax savings. But for those already inclined toward giving, integrating charitable planning with property sales can be remarkably tax-efficient.

State Tax Considerations: The Often-Overlooked Factor

While this guide has focused primarily on federal taxes, state taxes can add significantly to your total bill—or provide welcome relief, depending on where you live. State capital gains tax treatment varies dramatically, from 0% in states like Texas, Florida, and Nevada to over 13% in California for high earners.

Most states tax capital gains as ordinary income, meaning your gains are added to your other state taxable income and taxed at your marginal rate. A few states offer preferential rates for capital gains or exclude certain amounts. And several states have no income tax at all, making them particularly attractive for landlords planning significant property sales.

State Capital Gains Treatment Maximum Rate (2024) Special Notes
California Taxed as ordinary income 13.3% Highest state rate; no special treatment
Texas No state income tax 0% Property sold in Texas by TX residents tax-free at state level
Florida No state income tax 0% Popular destination for tax-conscious landlords
New York Taxed as ordinary income 10.9% NYC adds additional local tax
Arizona Taxed as ordinary income 2.5% Flat tax rate implemented in 2023
Colorado Taxed as ordinary income 4.4% Flat tax rate
Nevada No state income tax 0% No personal income tax of any kind
Washington Capital gains tax on sales over $250K 7% New tax effective 2023; real estate generally exempt

Importantly, when you sell rental property, the state where the property is located generally has the right to tax the gain—not (only) the state where you reside. If you're a Texas resident selling property in California, you'll owe California capital gains tax even though Texas has no state income tax. Some states offer credits to prevent double taxation when both the property state and residence state assert taxing rights.

State Tax Warning: Some landlords consider moving to a no-income-tax state before selling property. While this can work for properties in states that tax based on the owner's residence, it won't help for properties located in high-tax states. California, for example, taxes gains on California real estate regardless of where the seller lives. Know the rules before making major residency decisions.

State tax considerations also affect 1031 exchanges. While the federal tax deferral applies nationwide, some states don't conform to Section 1031 or have additional requirements. California, for instance, requires landlords to file annual information returns tracking deferred gains from 1031 exchanges. If you later sell the replacement property without another exchange, California will assert its right to tax the original deferred gain.

At VerticalRent, we support landlords in all 50 states and understand that tax planning must account for state-specific rules. Our platform helps you categorize income and expenses by property and by state, generating reports that make working with state tax requirements more manageable. This multi-state capability is especially valuable for landlords with properties in different jurisdictions.

Common Mistakes Landlords Make When Selling Rental

Legal Disclaimer

VerticalRent and its authors are not attorneys, CPAs, or licensed legal or financial advisors, and nothing on this site constitutes legal, tax, or professional advice. The information in this article is provided for general educational purposes only. Landlord-tenant laws, eviction procedures, security deposit rules, and tax regulations vary significantly by state, county, and municipality — and change frequently. Nothing on this site creates an attorney-client relationship. Always consult a licensed attorney or qualified professional in your jurisdiction before taking any action based on information you read here.

Matthew Luke
Matthew Luke
General Manager, VerticalRent · Independent Landlord

Matthew Luke co-founded VerticalRent in 2011. He's an active landlord and has managed hundreds of tenant relationships across his career.