Capital Gains Tax on Real Estate: Rates, Rules, and How to Pay Less
Capital gains tax on real estate explained for investors. Covers the short-term vs. long-term rate difference, depreciation recapture, how to calculate your bill, five legal strategies to reduce what you owe, and how state taxes vary by market.
Every time you sell an investment property for a profit, the IRS takes a cut. Capital gains tax on real estate varies based on three factors: how long you held the property, what income bracket you fall into, and whether you claimed depreciation during ownership. For most investors, the combined bill is higher than expected because depreciation recapture catches people off guard. This guide covers the rates, the rules that determine what you owe, and the legal strategies active investors use to reduce or defer the tax.
What Triggers Capital Gains Tax on Real Estate
Capital gains tax is owed any time you sell a property for more than its adjusted cost basis. The adjusted cost basis is your original purchase price, plus capital improvements, plus acquisition closing costs, minus any depreciation deducted during ownership. Properties in every asset class trigger this tax: rental homes, vacation investment properties, raw land, and commercial real estate.
What does not trigger the tax in the same way is a primary residence sold under the exclusion rules. Single filers can exclude up to $250,000 of gain on a home they owned and used as their main residence for at least 2 of the last 5 years. Married couples can exclude $500,000. This exclusion is not available on pure investment properties, regardless of how long you held them.
Partial exclusions on converted rentals. An investor who moves into a former rental property and lives there for 2 of the 5 years before selling may qualify for a partial exclusion on the appreciation portion of the gain. The depreciation taken during the rental period is still subject to recapture tax. The two calculations run in parallel and require a CPA to compute accurately.
Short-Term vs. Long-Term Capital Gains Tax Rates
Capital gains tax on real estate is a federal tax on the profit from selling an investment property. Long-term gains on property held over 12 months are taxed at 0%, 15%, or 20% based on taxable income. An additional depreciation recapture tax of up to 25% applies separately on any depreciation claimed during ownership.
Short-term capital gains (held 12 months or less) are taxed at ordinary income rates: 10% to 37% depending on your bracket. An investor in the 32% bracket selling a property after 10 months of ownership owes the same rate on that gain as on their salary.
Long-term capital gains (held more than 12 months) receive preferential federal rates. For the 2025 tax year:
| Taxable Income (Single) | Taxable Income (Married Filing Jointly) | Long-Term Rate |
|---|---|---|
| Under $48,350 | Under $96,700 | 0% |
| $48,350 to $533,400 | $96,700 to $600,050 | 15% |
| Over $533,400 | Over $600,050 | 20% |
The 12-month threshold is a hard line. Selling at month 11 versus month 13 can mean the difference between a 32% rate and a 15% rate on the same profit. Investors with any flexibility on timing should run both scenarios before committing to a close date.
Net Investment Income Tax (NIIT). High earners owe an additional 3.8% on investment income, including real estate capital gains, if modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married filers. Combined with the 15% long-term rate, most active investors at this income level pay 18.8% federally on long-term gains before state taxes.
The Hidden Tax: Depreciation Recapture
Depreciation recapture is the tax most investors underestimate. Every year you own a rental property, you deduct depreciation from your taxable income. At sale, the IRS takes those deductions back by taxing the corresponding amount at a maximum rate of 25%, regardless of your income bracket.
How the recapture is calculated. The recaptured amount equals total depreciation taken during ownership. A property with a depreciable basis of $160,000 (purchase price minus land value) generates $5,818 per year in depreciation ($160,000 / 27.5 years). Over 10 years, that is $58,180 in accumulated deductions. The recapture tax on that amount: $58,180 x 25% = $14,545.
Recapture applies even if you never claimed it. The IRS taxes depreciation you were entitled to claim, not just what appeared on your returns. Investors who skipped depreciation deductions during ownership still owe the recapture tax at sale, based on what they should have claimed each year.
Recapture and capital gains are separate calculations. If your gross gain is $120,000 and $58,000 of that is depreciation recapture, you owe 25% on the $58,000 and your applicable long-term rate on the remaining $62,000. Many investors only budget for the capital gains portion and are surprised by the additional recapture liability at closing.
How to Calculate Your Capital Gains Tax Bill
The full tax calculation has four inputs: adjusted cost basis, net proceeds, gross gain, and the depreciation recapture split.
Step 1: Adjusted cost basis = purchase price + capital improvements + purchase closing costs - total depreciation taken
Step 2: Net proceeds = selling price - agent commissions - selling closing costs
Step 3: Gross capital gain = net proceeds - adjusted cost basis
Step 4: Split the gain into two components: the portion equal to total depreciation taken (taxed at up to 25%) and the remaining appreciation (taxed at your long-term rate).
Before planning your exit strategy, use our real estate capital gains tax calculator to estimate exactly how much you owe before and after a 1031 exchange. It walks through a full worked example with a $200,000 purchase sold at $350,000 after five years, including depreciation recapture and long-term gain calculated separately.
5 Legal Strategies Investors Use to Reduce Capital Gains Tax
1. Hold past 12 months
This is the lowest-cost strategy available. If you are within weeks of the 12-month mark and have any flexibility on close, wait. The rate difference between short-term ordinary income rates (up to 37%) and long-term rates (15% for most investors) easily exceeds $10,000 to $30,000 on a mid-sized gain. Before you agree to a fast close to satisfy a buyer, run the math on the timing cost.
2. 1031 Exchange
A 1031 exchange defers 100% of capital gains and depreciation recapture taxes by reinvesting the sale proceeds into a like-kind replacement property. The rules are strict: identify a replacement property within 45 days of closing, and close on it within 180 days. A qualified intermediary must hold the funds during the exchange period.
The tax is deferred, not eliminated, and carries forward into the replacement property's basis. See how to defer capital gains with a 1031 exchange for the identification requirements, qualified intermediary rules, and common mistakes that disqualify an exchange. Investors reinvesting into rental property often use a DSCR loan to finance the replacement property without W-2 income documentation.
3. Primary Residence Conversion
Converting a rental property to your primary residence and living in it for 2 of the 5 years before selling may qualify the appreciation portion of the gain for the $250,000 / $500,000 exclusion. This works for investors willing to move into a former rental. Depreciation taken during the rental period is still subject to recapture tax, and recent depreciation taken after the conversion date is not counted. This strategy requires multi-year advance planning.
4. Opportunity Zone Fund
Investing your capital gain into a Qualified Opportunity Zone (QOZ) fund within 180 days of the sale defers federal tax on that gain until December 31, 2026, or when you exit the fund, whichever is earlier. Appreciation earned inside the fund held for 10 or more years may be excluded from federal tax entirely. Opportunity Zone regulations are specific and fund quality varies substantially. Consult a tax attorney before committing capital to a QOZ fund.
5. Installment Sale
An installment sale lets you collect proceeds over multiple years rather than all at closing. This spreads the taxable gain across tax years, which can keep you below thresholds that trigger higher rates or the NIIT. One important limitation: depreciation recapture cannot be deferred via installment sale. That portion is fully taxable in the year of sale, regardless of the payment schedule.
State Capital Gains Tax on Real Estate
Federal rates are only part of what you owe. Most states impose their own tax on investment property gains, and the spread across investor-popular markets is significant.
| State | Tax Treatment | Rate on Investment Gains |
|---|---|---|
| Texas | No state income tax | 0% |
| Florida | No state income tax | 0% |
| Arizona | Flat income tax | 2.5% |
| Georgia | Flat income tax | 5.49% |
| California | Ordinary income rates | Up to 13.3% |
California is the most expensive state for investment property sales. Capital gains receive no preferential treatment and are taxed as ordinary income at rates up to 13.3%. An investor in the top bracket selling a California property owes 20% federal long-term rate, plus 3.8% NIIT, plus 13.3% state: a combined effective rate near 37% before depreciation recapture.
State taxes follow property location, not where you live. If you are based in Texas but own a rental in Georgia, you owe Georgia state tax on the gain. The inverse is also true: a California resident selling a Texas rental pays no California state tax on that specific sale.
ProPilot and Exit Planning
Smart investors plan the exit before they buy. The tax position at sale is not a surprise if you have tracked your acquisition cost, capital improvements, and depreciation from the beginning. Most investors do not. They piece together five years of records from bank statements, contractor invoices, and old closing disclosures in the weeks before listing.
ProPilot's deal management tools maintain a running financial record for each property: purchase price, improvements logged by year, depreciation tracking, and holding period. When you are deciding whether to sell, exchange, or hold, those numbers are already organized. Your CPA reviews a clean deal history instead of a box of documents, and you make the sell-or-exchange decision with accurate data rather than estimates.
Try it free for 7 days.
Frequently Asked Questions
What is the capital gains tax rate on real estate in 2025?
Long-term capital gains on investment property held over 12 months are taxed at 0%, 15%, or 20% federally depending on taxable income. For the 2025 tax year, the 15% rate applies to single filers earning $48,350 to $533,400 (MFJ $96,700 to $600,050). Most real estate investors fall in the 15% bracket. Short-term gains on property held 12 months or less are taxed as ordinary income at up to 37%. High earners also owe 3.8% NIIT on top of either rate.
Do I pay capital gains tax when I sell a rental property?
Yes. Selling a rental property for a profit triggers two federal taxes: capital gains tax on the appreciation above your adjusted cost basis, and depreciation recapture tax (up to 25%) on the depreciation deducted during ownership. Both apply regardless of income bracket. The primary residence exclusion does not apply to properties held as rentals.
How can I avoid capital gains tax on real estate?
There is no way to fully eliminate capital gains tax on an investment property sale, but several legal strategies defer it. A 1031 exchange defers 100% of the gain by reinvesting in like-kind property within 180 days. A Qualified Opportunity Zone fund defers and may eliminate the tax on appreciation for long-term holders. Holding the property until death passes it to heirs with a stepped-up cost basis, which can eliminate the accumulated gain entirely. Consult a CPA before implementing any of these strategies.
What is the difference between capital gains tax and depreciation recapture?
Capital gains tax is owed on the property's appreciation above your adjusted cost basis. Depreciation recapture is a separate tax on the portion of your gain equal to the depreciation you deducted during ownership, taxed at up to 25% regardless of income bracket. On a property held for many years with substantial depreciation, the recapture tax can exceed the capital gains tax owed on the appreciation itself.
Does the primary residence exclusion apply if I once lived in a rental property?
Partially, if you meet the ownership and use test: you must have owned the property and used it as your primary residence for at least 2 of the last 5 years before selling. If you qualify, the $250,000 (single) or $500,000 (MFJ) exclusion applies to the appreciation portion of the gain. However, any depreciation taken during the rental period is still subject to recapture tax at up to 25%. The exclusion does not cover recapture.
The Bottom Line
Capital gains tax on real estate is predictable when you know the rules going in. Hold past 12 months to qualify for long-term rates. Track depreciation so the recapture number is not a surprise at closing. Build your exit strategy before you list, not after you accept an offer.
The investors who manage their tax bill most effectively are not finding loopholes. They are planning early, tracking the right inputs, and knowing whether an exchange or a sale makes more financial sense before the property goes on the market. A 1031 exchange, for example, requires a qualified intermediary in place before the sale closes, not after. You cannot execute it retroactively.
Try ProPilot free for 7 days.