Tax Education

How Does Selling a Rental Property Affect Capital Gains Tax?

Rental-property sales deserve extra attention because the property's tax basis may have changed during the rental period, especially when depreciation was claimed or could have been claimed. Unlike selling a primary residence, selling a rental property often involves additional tax considerations.

This article explains how selling a rental property affects capital gains tax, what factors can influence the calculation, and why the tax treatment can be different from selling a personal residence.

⚑ Quick Answer

Selling a rental property can create taxable gain. A simplified starting calculation is:

Amount Realized βˆ’ Adjusted Basis = Estimated Gain

But rental property can involve additional tax considerations because depreciation and other adjustments may affect the property's tax basis and the character of the gain.

Important: Capital gain β‰  automatically the final tax owed. Different portions of the gain may receive different tax treatment, and the actual result depends on the taxpayer's circumstances.

Is Selling a Rental Property Taxable?

Yes, selling a rental property can create a taxable gain. Unlike a primary residence, the federal home-sale exclusion generally does not apply to rental properties in the same way. Rental property sales can involve:

Understanding these components is essential before estimating potential tax consequences.

How Is Gain on a Rental Property Calculated?

The basic calculation for gain on a rental property sale uses a similar framework to other property sales:

Amount Realized βˆ’ Adjusted Basis = Estimated Gain
Amount Realized = Sale Price βˆ’ Applicable Selling Expenses
Adjusted Basis = Original Basis + Improvements βˆ’ Depreciation + Other Adjustments

This is an educational simplified framework and not a substitute for a complete tax return calculation.

What Is Adjusted Basis?

Your adjusted basis is what you've invested in the rental property, adjusted for various factors:

Adjusted Basis = Purchase Price + Improvements + Other Adjustments βˆ’ Depreciation

Key components include:

Why Depreciation Matters

Depreciation is one of the most important factors when selling a rental property. Depreciation claimed during the rental period can reduce the property's adjusted basis, which increases the gain recognized on sale.

Key concept: Depreciation reduces your tax basis, which increases your taxable gain when you sell. This is why rental property sales often have different tax considerations than primary residence sales.

Even if you didn't claim depreciation, the IRS may require recapture of allowable depreciation, which can affect your tax liability. Consult current IRS guidance or a qualified professional for specific details.

What Happens to Depreciation When You Sell?

When you sell a rental property, the depreciation you claimed (or could have claimed) is generally "recaptured" and may be taxed differently from ordinary capital gains.

Important: Depreciation-related gain may receive different federal tax treatment from other portions of the gain. The exact treatment depends on the taxpayer's circumstances and applicable tax rules.

Do Improvements Increase Basis?

Yes. Qualifying capital improvements can increase your adjusted basis, which reduces your gain. Examples of improvements that may qualify include:

Ordinary repairs and maintenance do not generally increase basis. For more details, see our article on How Do Home Improvements Affect Capital Gains Tax?

Do Selling Expenses Reduce the Gain?

Yes. Applicable selling expenses can reduce the amount realized from the sale, which reduces your gain. Common selling expenses include:

Not every closing cost automatically reduces gain. The tax treatment depends on the nature of the expense. For more details, see our article on What Selling Expenses Reduce Capital Gains on a House?

Capital Gain vs Depreciation-Related Gain

It's important to understand that different portions of a rental property gain may receive different tax treatment:

Gain Components
Capital Gain Portion May be taxed at preferential rates
Depreciation-Related Portion May be subject to different rules
Ordinary Income Portion May be taxed at ordinary rates

The actual tax treatment depends on the taxpayer's specific circumstances, the nature of the property, and applicable federal and state rules.

Holding Period

The holding period can affect the tax treatment of gain from a rental property sale:

Depreciation recapture may be taxed at ordinary income rates regardless of the holding period. The taxpayer's overall situation can affect the final tax result.

Worked Example

Let's walk through an example to see how rental property gain is calculated.

πŸ“Š Example: Selling a Rental Property

Scenario: You purchased a rental property for $300,000, made $50,000 in qualifying improvements, claimed $60,000 in depreciation, and sell for $500,000 with $25,000 in selling expenses.

Step 1: Calculate Amount Realized
Sale Price$500,000
βˆ’ Selling Expenses-$25,000
Amount Realized$475,000
Step 2: Calculate Adjusted Basis
Purchase Price$300,000
+ Improvements+$50,000
βˆ’ Depreciation-$60,000
Adjusted Basis$290,000
Step 3: Calculate Estimated Total Gain
Amount Realized$475,000
βˆ’ Adjusted Basis-$290,000
Estimated Total Gain$185,000
πŸ’‘ What this means: This $185,000 is the simplified total gain in the example. It does NOT mean the taxpayer owes $185,000 in tax. Different portions of the gain may receive different federal tax treatment, and the actual result depends on the taxpayer's circumstances.

What Records Do You Need?

Keep these records to support your rental property sale calculation:

Federal vs State Tax

Federal treatment and state treatment can differ significantly. State tax treatment varies widely:

Do not assume every state follows federal rules. Check your state's current rules or consult a qualified professional.

Common Mistakes

Here are some common mistakes to avoid when estimating tax on a rental property sale:

How to Estimate Your Rental Property Sale

Before selling a rental property, use this checklist:

For a quick estimate, try our Selling Rental Property Tax Calculator.

Selling Rental Property Tax Calculator
Estimate gain, depreciation recapture, and tax when selling a rental property.
Try Calculator β†’

You may also find these related calculators helpful:

Frequently Asked Questions

Yes, selling a rental property can create a taxable gain. The gain is calculated based on the sale price minus selling expenses and adjusted basis. Depreciation claimed during the rental period can also affect the calculation.

Calculate as: Amount Realized βˆ’ Adjusted Basis = Gain. Amount Realized = Sale Price βˆ’ Selling Expenses. Adjusted Basis = Purchase Price + Improvements βˆ’ Depreciation + Other Adjustments.

Yes. Depreciation reduces your adjusted basis, which increases your gain. Depreciation recapture may also apply, potentially affecting the tax treatment of the gain.

Depreciation claimed during the rental period is generally recaptured when the property is sold. The depreciation-related portion of the gain may be taxed differently from ordinary capital gains.

Yes. Qualifying capital improvements that add value, extend the property's life, or adapt it for new uses increase your adjusted basis, which reduces your gain.

Yes. Selling expenses such as commissions and closing costs reduce your amount realized, which reduces your gain.

No. Depreciation recapture is generally taxed as ordinary income. The remaining gain may be taxed at capital gains rates. The exact treatment depends on the taxpayer's circumstances.

Unrecaptured Section 1250 gain is a federal tax concept that applies to certain depreciable real property. The portion of gain attributable to depreciation may be taxed at different rates. Consult current IRS guidance for specific details.

Yes. If you held the property for more than one year, the capital gain portion may be taxed at long-term capital gains rates. The holding period does not affect depreciation recapture in the same way.

Generally no. The home-sale exclusion is for primary residences. Rental properties are treated differently for tax purposes. If the property was previously a primary residence, additional rules may apply.

If the property was previously your primary residence and later became a rental, additional rules may apply. The home-sale exclusion may apply to the portion of time it was your primary residence, subject to meeting requirements.

Keep: purchase documents, closing statements, improvement receipts, depreciation schedules, rental income records, selling expenses, commission records, and previous tax returns.

Yes. Our Selling Rental Property Tax Calculator can help you estimate gain, depreciation recapture, and tax based on the information you provide. However, calculators provide estimatesβ€”not official tax determinations.

Yes, in many states. State tax treatment varies widely. Some states have no capital gains tax, while others tax it as ordinary income. Check your state's rules.

SB
Written by Shabnam Bano
Last Updated: August 15, 2026
Tax Year: 2026
Disclaimer: This article is for educational and informational purposes only and is not tax, legal or financial advice. Tax treatment depends on individual circumstances, applicable federal and state rules, and current tax law. Consider consulting a qualified tax professional for advice about your specific situation.

Read full disclaimer β†’