Capital Gains Tax on Rental Property Sales Explained

  • Home
  • Blog
  • Capital Gains Tax on Rental Property Sales Explained

Capital Gains Tax on Rental Property Sales Explained

Last Updated: November 17, 2026

Quick Summary

Capital gains tax on a rental property sale is based on your taxable gain, which is your sale price minus selling costs and your adjusted basis. Depreciation claimed over the years can raise that gain, and it is taxed under its own rate schedule.

  • Your gain equals amount realized minus adjusted basis, where basis includes purchase price and capital improvements.
  • Depreciation recapture is taxed under its own schedule, capped at 25 percent, rather than the long-term rate.
  • Property held longer than one year qualifies for long-term capital gains rates, which are generally lower.
  • High-income owners may also owe the 3.8 percent Net Investment Income Tax on rental gains.
  • Options such as a Section 1031 exchange or installment sale can defer tax, but each has strict deadlines.
Selling a rental property soon?Coastal Homes by Randall and Marie helps Southern California owners plan timing, pricing, and sale logistics.

Plan Your Rental Sale

Table of Contents

Selling a rental property can leave you with a tax bill larger than you expected, and the capital gains tax on a rental property sale is usually the biggest part of it. This guide walks you through how the numbers actually fit together. The short version: your taxable gain is your sale price minus your adjusted basis and selling costs, and depreciation claimed over the years can change the picture significantly.

What Capital Gains Tax Means When You Sell a Rental Property

Capital gains tax is a federal tax on the profit you realize when you sell an asset for more than you paid for it. A rental house is a capital asset, so the Internal Revenue Service treats the profit as a capital gain. The tax applies even though the property produced rental income along the way.

Your holding period determines the rate. Property held one year or less produces a short-term gain taxed at ordinary income rates. Property held longer than one year qualifies for long-term rates, which for most owners are lower. Depreciation adds a wrinkle, covered in its own section below. The IRS Topic No. 409 on capital gains and losses explains the baseline rules, and reading it before you list is worthwhile.

How to Calculate Your Gain: Adjusted Basis and Selling Costs

Your gain starts with a simple formula: amount realized minus adjusted basis. The amount realized is your sale price less selling expenses such as commissions, transfer taxes, and certain closing costs. Your adjusted basis is what you originally paid, plus capital improvements, minus depreciation you claimed or were entitled to claim.

Many owners underestimate basis because they forget improvements. A new roof, a rebuilt kitchen, or an added bathroom can increase basis, while routine repairs generally do not. Keep receipts for every major project across the years you owned the home. Without them, you may pay tax on gains you could have offset.

Using a Capital Gains Tax on Rental Property Sale Calculator

A calculator helps you test scenarios before you commit to a list price. Enter your expected sale price, original purchase price, improvements, selling costs, and depreciation taken, then compare outcomes at different prices. Many owners find that a modest change in price shifts their tax bill more than they anticipated, because depreciation recapture is taxed differently from the rest of the gain.

Treat any calculator estimate as a planning figure, not a final answer. Your filing status, other income, and state taxes all affect what you actually owe.

Rental Property Capital Gains Tax Worksheet, Step by Step

Working through the numbers on paper keeps the logic visible, and a worked example shows why the two buckets matter. Follow these steps in order, then compare your figures to the sample below.

  1. Record the original purchase price and any closing costs you capitalized into basis.
  2. Add the cost of capital improvements made during ownership.
  3. Subtract total depreciation claimed or allowable to get adjusted basis.
  4. Take the final sale price and subtract selling expenses to get amount realized.
  5. Subtract adjusted basis from amount realized to find total gain.
  6. Separate the portion attributable to depreciation (recapture) from the remaining gain.
  7. Apply the recapture rate to bucket one and your long-term capital gains rate to bucket two, then add the 3.8 percent Net Investment Income Tax if your income crosses the threshold.

Here is how the math looks for a hypothetical single owner in the 24 percent ordinary bracket who held the property for eight years:

Change the sale price by $20,000 and the long-term bucket moves while the recapture bucket stays fixed, which is why price negotiations and recapture planning are separate conversations.

Watch out: owners who skip step 6 often apply the long-term rate to the entire gain and understate the bill by thousands of dollars, because the recapture portion is capped at 25 percent rather than the 0/15/20 percent long-term schedule.

Step-by-step infographic flowchart for calculating rental property capital gains tax at a desk
Step-by-step infographic flowchart for calculating rental property capital gains tax at a desk

If you converted a former primary residence into a rental, the worksheet gets harder. The ‘accidental landlord’ pattern, moving out and renting the old home instead of selling, creates a basis question because the property’s character changed. Most practitioners recommend documenting the fair market value on the date of conversion, because that figure anchors the depreciation schedule and the eventual recapture calculation. Skipping that step is one of the most common and most expensive mistakes in this niche.

The worksheet’s two buckets are taxed at different rates, as the article’s example shows.

Bucket Tax treatment Key point
Depreciation recapture Capped at 25 percent Often misapplied at the long-term rate
Remaining long-term gain 0, 15 or 20 percent schedule Depends on total taxable income
High-income surcharge 3.8 percent Net Investment Income Tax Applies above statutory thresholds

Depreciation Recapture and the 3.8% Net Investment Income Tax

Depreciation recapture is the part of your gain attributable to depreciation deductions you took while renting the property. The IRS taxes it under its own rate schedule, which can differ from the rate on the rest of a long-term gain. Even if you never claimed depreciation, the IRS may reduce your basis as though you had, so the recapture exposure is real.

High-income owners may also owe the 3.8 percent Net Investment Income Tax. Rental income and gains typically count as net investment income, and the tax applies when modified adjusted gross income exceeds the statutory thresholds. The IRS guidance on the Net Investment Income Tax sets out who is affected and how the calculation works.

Long-Term Capital Gains Tax on Rental Property: Rates and Holding Periods

The holding period is the dividing line between short-term and long-term treatment. Sell within a year of purchase and the gain is taxed as ordinary income. Hold longer and it qualifies for long-term rates, which depend on your total taxable income for the year of sale.

Long-term capital gains rates depend on your total taxable income, with depreciation recapture treated separately under its own rules. A large sale can push you into a higher bracket for that year, so the timing of closing matters. Some owners spread income across two tax years by closing late in one year and early in the next.

Because your rate depends on your full financial picture, a one-size estimate can mislead you. Run the numbers with your actual income and filing status.

How to Avoid Capital Gains Tax on Rental Property Sale Legally

No strategy eliminates the tax outright for most sellers, but several defer or reduce it, and each has eligibility rules and deadlines that decide whether the benefit survives. Here is how the main options actually work.

Section 1031 exchange. You may be able to defer the gain by reinvesting proceeds into like-kind real property. The mechanics are strict and carry specific deadlines that should be confirmed with a qualified professional. The gain is deferred, not forgiven, your basis carries over to the replacement property, so the tax waits for a future sale.

Installment sale under Section 453. If you finance the buyer’s purchase, you can spread the gain across the years you receive payments. Each payment carries a proportional share of gain, so a 10-year note spreads the tax over a decade.

Primary residence exclusion under Section 121. A partial or full exclusion of gain may be available when the property served as your main home for a qualifying period. The exclusion applies to the residence portion only, and depreciation taken during rental use is generally not excludable.

Offsetting losses. Capital losses from other investments can offset gains in the same year, and a limited amount of net capital loss may offset ordinary income. Passive activity loss rules limit how rental losses interact with other income, so this strategy works best when you have realized stock or fund losses to pair with the sale.

Charitable remainder trusts and installment-to-charity structures. Some owners with large gains use a charitable remainder trust to sell the property inside the trust and receive an income stream, with the remainder going to charity.

Each strategy has conditions and deadlines, and the right choice depends on whether you want to stay in real estate, exit entirely, or convert the equity into income. Confirm eligibility with a qualified tax professional before you act, because the cost of a missed deadline usually exceeds the cost of the planning itself.

Planning Your Rental Sale Before You List It

The best time to plan is before you sign a listing agreement. Gather basis records, estimate depreciation, and model at least two sale prices. Ask your tax preparer whether a deferral strategy fits your timeline, since some options require decisions before closing.

Many sellers also overlook state taxes. California taxes capital gains as ordinary income, which can add a meaningful amount to the federal bill. A Southern California owner should factor in state liability from the start, not as an afterthought. A planning conversation with the California Franchise Tax Board’s guidance for taxpayers can clarify state-level obligations.

If you are selling a rental and want help timing the transaction around your tax situation, the team at Coastal Homes by Randall and Marie can walk through the sale process with you. Our advisers bring over 45 years of combined negotiation experience to keep the sale on track. Learn how a planned rental sale can work for you and get the support you need before listing.


Frequently Asked Questions

How is capital gains tax calculated when you sell a rental property?

Capital gains tax is based on the difference between your net sale price and your adjusted basis. Net sale price is the sale price minus selling costs such as commissions, closing fees, and transfer taxes. Adjusted basis is your original purchase price plus capital improvements, minus the depreciation you claimed or were allowed to claim over the years you owned the property. If you held the property more than one year, the gain is generally taxed at long-term capital gains rates that depend on your taxable income. Depreciation recapture may be taxed separately under its own rules.

How do you calculate the adjusted basis of a rental property?

Start with the original purchase price and add the closing costs that were capitalized at purchase, such as title insurance and recording fees. Add the cost of capital improvements like a new roof, HVAC system, or room addition, but not routine repairs. Then subtract all depreciation deducted or allowable during ownership, even if you never claimed it. The resulting figure is your adjusted basis. Keep receipts and your depreciation schedules, since the IRS expects you to support every figure. Your accountant can confirm the exact amounts from your Form 4562 records.

How can you reduce capital gains tax when selling a rental property?

The most common options are timing the sale to hold the property more than one year, offsetting gains with capital losses from other investments, and deducting all eligible selling costs. A 1031 exchange may let you defer the tax by reinvesting proceeds into another investment property, subject to strict deadlines to confirm with a qualified professional. Installment sales may spread gain across several tax years. Harvesting losses or timing sales around a lower-income year can also reduce your rate.

Can you deduct a loss when you sell a rental property?

Yes, but only if the sale price is lower than your adjusted basis, which produces a capital loss. Capital losses offset capital gains first, and a limited amount of excess loss can offset ordinary income in a given year, with the remainder carried forward. Losses on rental property used as a personal residence at any point may be treated differently, so confirm the classification with a tax professional before filing.

GoogleAdd coastalhomesbyrandallandmarie.com as a preferred source on Google →

Be in the Know

Stay up-to-date with exclusive news and market updates from Randall & Marie Holtz
Randall & Marie Holtz | CA DRE# 02079908
© 2026 Randall & Marie Holtz. All rights reserved.
Berkshire Hathaway Home Services® used with permission.
Randall & Marie Holtz fully supports the principles of the Fair Housing Act and the Equal Opportunity Act.
Powered by
Copyright © 2026 |
Randall & Marie Holtz