Skip to main content
Back to Blog
Taxes & Accounting14 min readSeptember 23, 2026

Capital Gains Tax on Rental Property Sales: What Landlords Owe

Selling a rental property can trigger a significant tax bill. Learn how capital gains, depreciation recapture, and state taxes interact — and how to plan ahead.

Matthew Luke
Matthew Luke
Co-Founder, VerticalRent
Capital Gains Tax on Rental Property Sales: What Landlords Owe

The average American homeowner holds a property for about eight years before selling. Landlords, on the other hand, often hold rental properties for 10, 15, or even 20 years — and when that sale finally closes, the IRS is waiting at the settlement table. According to the National Association of Realtors, the median existing-home sale price in 2024 exceeded $407,000. For a landlord who purchased that same property a decade ago for $220,000, the gross gain approaches $187,000 — and that's before accounting for depreciation recapture, which can add tens of thousands more in taxable income. Yet a 2023 survey by the National Apartment Association found that more than 60% of independent landlords admitted they did not fully understand how capital gains taxes applied to their rental sales. That's a dangerous knowledge gap. This guide breaks down exactly what you owe, how it's calculated, what exemptions exist, and what strategies can legally reduce your tax exposure before you sign on the closing line.

Why Rental Property Sales Are Taxed Differently Than Primary Homes

When a homeowner sells their primary residence, they can often exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from federal income tax under the Section 121 exclusion — provided they've lived in the property for at least two of the last five years. Rental properties don't get that benefit by default. Because your property has been generating income, claimed depreciation deductions, and functioned as a business asset, the IRS treats its sale as a capital transaction subject to multiple overlapping tax layers. Understanding each of those layers is the foundation of any smart exit strategy.

The Three Tax Layers on a Rental Property Sale

Layer 1: Capital Gains Tax (Long-Term vs. Short-Term)

Capital gains tax is levied on the profit from selling a capital asset — in this case, your rental property. The rate depends on how long you've owned the property. If you've held it for one year or less, the gain is classified as short-term and taxed at your ordinary income tax rate, which in 2024 ranges from 10% to 37%. If you've held it for more than one year, it's classified as long-term, and the rates drop considerably: 0%, 15%, or 20%, depending on your taxable income. For most independent landlords — who tend to hold properties for several years — long-term capital gains rates apply. In 2024, a married couple filing jointly with taxable income between $94,051 and $583,750 pays a 15% long-term capital gains rate. Income above that threshold triggers the 20% rate. While 15% sounds manageable, the complication is that capital gains are stacked on top of your other income, which can push you into a higher bracket than you expect.

Key Stat: The IRS reported in 2022 that real estate accounted for more than $120 billion in net capital gains reported on individual returns — a figure that has grown every year since 2019.

Layer 2: Depreciation Recapture — The Tax Most Landlords Forget

Depreciation recapture is, for many landlords, the most financially surprising element of a rental property sale — and arguably the most important one to understand. Every year you've owned a rental property, you've been allowed (in fact, required) to deduct depreciation on the building's structure. The IRS assumes residential rental property wears out over 27.5 years. If your building's depreciable basis was $180,000, you've been deducting approximately $6,545 per year. Over 10 years, that's $65,450 in cumulative depreciation deductions that reduced your taxable rental income.

When you sell, the IRS 'recaptures' those deductions. The recaptured depreciation is taxed at a special rate of up to 25% — not at long-term capital gains rates. This is codified under IRC Section 1250. So if you took $65,450 in depreciation over your holding period, that entire amount is subject to the 25% recapture rate at sale, generating a potential tax bill of $16,362 just on the depreciation portion — regardless of what your capital gains situation looks like. Landlords who aggressively claimed depreciation over many years (or who performed a cost segregation study and accelerated deductions) often face the largest recapture bills.

Layer 3: The Net Investment Income Tax (NIIT)

If your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly), an additional 3.8% net investment income tax applies to the lesser of your net investment income or the amount your MAGI exceeds those thresholds. This tax was introduced by the Affordable Care Act in 2013 and catches many landlords off guard. A landlord with a large gain from a property sale can easily breach those income thresholds in the year of sale, triggering NIIT on part or all of the gain. Combined with the 20% long-term capital gains rate and the 25% depreciation recapture rate, top-bracket landlords can face an effective federal tax rate exceeding 28% on their property gain — before any state taxes.

How to Calculate Your Taxable Gain: Step by Step

  1. 1Determine your adjusted cost basis. Start with what you originally paid for the property (purchase price), then add closing costs, capital improvements (a new roof, HVAC replacement, added square footage), and any legal or financing fees that were capitalized. This is your initial basis.
  2. 2Subtract accumulated depreciation. Take your initial depreciable basis (usually the purchase price minus the land value, plus improvement costs) and subtract all depreciation you've claimed or were allowed to claim over your holding period. This gives you your adjusted cost basis.
  3. 3Determine your amount realized. This is the sale price minus selling costs: real estate agent commissions, closing costs, transfer taxes, legal fees, and any seller-paid concessions.
  4. 4Calculate your total gain. Subtract your adjusted cost basis from your amount realized. The resulting number is your total recognized gain.
  5. 5Allocate the gain. The portion equal to your total depreciation taken is taxed at the 25% recapture rate. The remainder is taxed at long-term capital gains rates (0%, 15%, or 20%).
  6. 6Check for NIIT. Determine whether your MAGI in the year of sale exceeds the $200,000/$250,000 thresholds and apply the 3.8% surcharge accordingly.
  7. 7Factor in your state tax. Most states also tax capital gains — often at ordinary income rates. Check your state's specific treatment.

Example: You bought a rental property in 2014 for $230,000 (land value $50,000, building $180,000). You sell in 2024 for $420,000 after $25,000 in selling costs. Adjusted basis after 10 years of depreciation ($6,545/yr = $65,450): $230,000 - $65,450 = $164,550. Amount realized: $420,000 - $25,000 = $395,000. Total gain: $395,000 - $164,550 = $230,450. Of that, $65,450 is subject to 25% recapture ($16,362 in tax). The remaining $165,000 is subject to 15% long-term capital gains ($24,750). Total federal tax before NIIT: approximately $41,112.

State Capital Gains Taxes: The Often-Overlooked Layer

Federal taxes are only half the story. Most states impose their own capital gains taxes on top of the federal bill, and the treatment varies dramatically. California taxes capital gains at ordinary income rates — up to 13.3% for high earners, the highest state capital gains rate in the country. New York taxes gains at up to 10.9%. Texas, Florida, Nevada, and a handful of other states impose no state income tax, meaning no state capital gains tax either. For landlords in high-tax states, the combined federal and state effective tax rate on a rental property gain can exceed 40% in the year of sale. This reality makes 1031 exchanges and installment sales not just appealing strategies — but potentially essential ones for landlords in states like California, New York, New Jersey, or Oregon.

1031 Like-Kind Exchange: Defer, Don't Pay

The 1031 exchange — named after Section 1031 of the Internal Revenue Code — is the most powerful tax deferral tool available to real estate investors. It allows you to sell a rental property and defer all capital gains and depreciation recapture taxes, provided you reinvest the proceeds into a 'like-kind' replacement property within strict timeframes: 45 days to identify the replacement property and 180 days to close on it. The deferred taxes carry forward into the new property's basis, so this is a deferral strategy, not permanent tax elimination — unless you die holding the replacement property, at which point heirs receive a stepped-up basis and the deferred gains may be wiped out entirely. According to a 2021 analysis by Ernst & Young, 1031 exchanges support approximately 568,000 jobs and $55 billion in GDP annually, underscoring how central they are to real estate investment activity.

Installment Sales: Spread the Gain Over Time

Instead of receiving the full purchase price at closing, you can structure the sale as an installment sale — essentially acting as the bank. The buyer pays you over several years, and you recognize the gain proportionally as you receive payments. This can keep you in lower tax brackets each year rather than triggering a massive one-year gain. The depreciation recapture portion, however, must generally be recognized in the year of sale regardless of payment timing, which limits the strategy's usefulness in reducing that specific liability. Installment sales work best when the majority of your gain is pure capital appreciation rather than recaptured depreciation.

Convert the Property to a Primary Residence (Section 121 Planning)

If you move into your rental property and live in it as your primary residence for at least two of the five years before selling, you may qualify for the Section 121 exclusion — up to $250,000 ($500,000 married) of gain excluded from tax. However, depreciation taken after May 6, 1997 cannot be excluded and is still subject to recapture. This strategy requires genuine change of residence and careful timing, but for landlords with moderate gains and significant accumulated appreciation, it can dramatically reduce the federal tax bill. Always work with a tax advisor before attempting this conversion.

Opportunity Zone Investment

Established under the Tax Cuts and Jobs Act of 2017, Qualified Opportunity Zones (QOZs) allow investors to defer capital gains by reinvesting them into designated economically distressed communities through a Qualified Opportunity Fund. If held for at least 10 years, any appreciation within the Opportunity Fund itself may be excluded from tax entirely. The original deferred gain from the rental sale becomes taxable when you exit the fund or by December 31, 2026 — whichever comes first. This strategy is more complex than a 1031 exchange but can benefit landlords who don't want to stay in real estate for the replacement property.

Tax-Loss Harvesting to Offset Gains

If you have investment losses — in stock portfolios, other real estate, business interests — you can harvest those losses to offset capital gains from your rental property sale. Capital losses offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 of excess net capital losses against ordinary income per year, with the remainder carried forward. Coordinating a rental property sale year with other portfolio loss-harvesting opportunities requires planning but can meaningfully reduce your net tax exposure.

Keeping Accurate Records: The Foundation of Tax Defense

Every dollar of capital improvements you can document adds to your cost basis and reduces your taxable gain. A $15,000 kitchen renovation, a $12,000 roof replacement, a $6,500 HVAC system — all of these are capital improvements that increase your basis when properly documented. But landlords who don't keep meticulous records lose those deductions entirely. The IRS requires you to substantiate your basis with records, and in the event of an audit, undocumented improvements are disallowed.

  • Keep receipts and invoices for every capital improvement, categorized separately from maintenance expenses.
  • Maintain a running depreciation schedule showing each year's deduction — your tax return's Form 4562 is your annual record.
  • Store closing documents from the original purchase (HUD-1 or Closing Disclosure) permanently — these establish your original basis.
  • Document the land value separately from the building value, since land is not depreciable and affects basis calculations.
  • Keep records of any partial property sales, casualty losses, or insurance reimbursements that affected your basis over the years.
  • Archive records for at least 7 years after the property is sold — longer if the gain was large or a 1031 exchange is involved.

This is where property management technology pays dividends. VerticalRent's AI expense categorizer automatically separates capital improvements from routine maintenance expenses as you record them throughout the year — creating an ongoing, audit-ready record of basis-affecting expenditures without the manual spreadsheet work that most landlords dread. When you're sitting across from your CPA preparing for a sale, having years of organized, categorized expense records can be the difference between a large tax bill and a defensible, minimized one.

Passive Activity Losses: Using Suspended Losses at Sale

Rental activities are classified as 'passive' under IRS rules, which means losses from your rental properties can generally only offset passive income — not ordinary income — unless you qualify as a real estate professional or meet the $25,000 passive activity loss allowance (available to landlords with MAGI under $100,000 who actively participate in management). Many landlords accumulate passive activity losses over the years that they couldn't deduct currently because they lacked sufficient passive income to absorb them. These 'suspended' passive losses become fully deductible in the year you sell the property — and they can offset the taxable gain from that sale. This is a significant and often underappreciated tax benefit for landlords who've been operating properties at a paper loss due to depreciation and legitimate expenses. Work with your CPA to identify the full amount of your suspended passive losses before you close on a sale.

What Happens When You Inherit a Rental Property and Then Sell It?

Inherited rental properties receive a stepped-up cost basis equal to the fair market value at the date of the original owner's death. This means that decades of appreciation and accumulated depreciation essentially reset at death — the heir's capital gains calculation starts from the new, higher stepped-up basis. For example, if a parent purchased a rental property for $80,000 in 1985, held it for 35 years, and its fair market value at death was $450,000, the inheriting child's basis is $450,000. If the child sells shortly after for $455,000, only the $5,000 appreciation above the stepped-up basis is taxable. Note, however, that depreciation recapture on any depreciation taken after the inheritance date still applies for the heir's holding period. This is one of the most powerful wealth transfer mechanisms in the tax code and is frequently cited as a central feature of estate planning for real estate families.

Working with Professionals: When and Who to Engage

The complexity of rental property taxation means that the year you sell is not the year to rely solely on DIY tax software. Most independent landlords benefit from engaging at minimum a CPA with real estate experience — and often a combination of a CPA and a tax attorney if the gain is substantial, the property is held in an entity, or a 1031 exchange is being considered. The IRS Enrolled Agent (EA) designation also qualifies for this type of work. Expect to pay $500 to $2,500 for professional tax planning around a rental property sale, depending on complexity — money that can easily save 10 to 20 times its cost in properly structured transactions. Begin the conversation with your tax advisor 12 to 24 months before you plan to sell, not 60 days before closing.

Pro Tip: A cost segregation study performed before a sale can accelerate depreciation deductions on components (flooring, fixtures, landscaping) and create additional suspended passive losses that further offset your gain at sale — often worth $5,000–$20,000 in tax savings on mid-size properties.

Quarterly Estimated Taxes: Don't Get Hit with Penalties

If you sell a rental property mid-year and realize a large taxable gain, you'll owe federal and state income tax on that gain in the same tax year. If you don't adjust your estimated quarterly tax payments to account for this new income, you'll face underpayment penalties on top of your actual tax bill. For 2024, the IRS charges a penalty rate of 8% on underpayments. Landlords who receive a large one-time gain from a property sale should make an estimated tax payment in the quarter the sale closes — or consult a CPA to determine whether the 'safe harbor' rules (paying at least 100% or 110% of the prior year's tax liability) protect them from the penalty.

How VerticalRent Helps You Stay Financially Ready Year-Round

The best time to prepare for a rental property sale is every year you own the property — not the day you call a real estate agent. VerticalRent is built around that philosophy. Our AI expense categorizer keeps your capital improvements, repairs, and operating expenses properly segregated throughout the year, so your cost basis is always current and defensible. Frank, VerticalRent's AI assistant, can answer your property management and financial organization questions on demand — helping you stay informed between CPA conversations. And because VerticalRent manages your rent collection, lease documentation, and maintenance records in one platform, the financial history your tax advisor needs is organized and accessible when it matters most.

When you're not thinking about selling, VerticalRent helps you maximize your property's value and income through tools like AI-powered lease generation, tenant screening through our TransUnion partnership, and automated ACH rent collection — all of which contribute to the operational history that supports a strong property valuation when you're ready to exit. The landlords who get the best outcomes at sale are the ones who treated their property like a business from day one. VerticalRent makes that easier.

Summary: Key Takeaways on Capital Gains Tax for Rental Sales

  • Rental property sales are taxed across three federal layers: long-term capital gains tax (0%–20%), depreciation recapture tax (up to 25%), and the 3.8% Net Investment Income Tax for higher earners.
  • Your adjusted cost basis — original purchase price, plus improvements, minus accumulated depreciation — directly determines your taxable gain. Every improvement dollar documented is a dollar of gain reduced.
  • Depreciation recapture is unavoidable even if you didn't actually claim depreciation — the IRS taxes the depreciation you were allowed to claim, whether or not you did.
  • The 1031 exchange is the most widely used tax deferral strategy, allowing landlords to defer all capital gains into a replacement property with strict 45/180-day timelines.
  • Suspended passive activity losses from prior years become fully deductible in the year of sale and can meaningfully offset your taxable gain.
  • State capital gains taxes vary widely — California charges up to 13.3%, while Texas and Florida charge nothing.
  • Plan your sale 12–24 months in advance with a CPA who specializes in real estate to maximize legal tax reduction strategies.
  • Make estimated tax payments in the quarter of sale to avoid underpayment penalties.

Ready to manage your rental properties like a business from day one — so your financial records are always sale-ready? Join thousands of independent landlords on VerticalRent. Sign up free at verticalrent.com and let our AI-powered platform handle the organization, so your CPA can focus on the strategy.

Put this into practice

VerticalRent tools related to this guide

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
Co-Founder, VerticalRent

Co-founded VerticalRent in 2011, growing it from nothing to 100k landlords and renters. Sold it in 2019, then re-acquired it in 2026 to make it better than ever.