Capital Gains Tax on Investment Property: Rates, Recapture, and Deferral

Capital gains tax on investment property is calculated by subtracting your adjusted basis from the net sale price, then splitting the resulting gain into two pieces taxed at different federal rates: the portion equal to your cumulative depreciation is taxed at up to 25%, and the rest is taxed at the long-term capital gains rates of 0%, 15%, or 20% based on your taxable income. Sellers with higher incomes may owe an additional 3.8% surtax on top of both. The rules are straightforward once you see each layer, but the number of moving parts catches many investors off guard.

What Property and Holding Period Qualify

For tax purposes, investment property is real estate you hold to generate rental income or long-term appreciation. If the IRS treats you as a dealer or flipper who buys and quickly resells, your profit is ordinary income taxed at your full marginal rate, which reaches 37% in 2026.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Your primary residence has its own rules, including a gain exclusion covered later.

The short-term versus long-term line matters enormously. Sell after holding the property for one year or less, and the entire gain is taxed at ordinary income rates. Hold for more than one year, and the gain qualifies for the lower preferential rates. That one-year threshold is often the single most valuable timing decision in the transaction.

Calculating Your Adjusted Basis

Your adjusted basis is the number you subtract from the sale price, so getting it right is the foundation of everything else. It starts with the original purchase price and adds acquisition costs paid at closing, such as title fees, legal fees, recording fees, and transfer taxes. From there, two forces move the basis in opposite directions over the years you own the property: capital improvements push it up, and depreciation pulls it down.

Capital Improvements vs. Repairs

A capital improvement adds value, extends useful life, or adapts the property to a new use. A new roof, an added bathroom, or a replaced HVAC system all qualify. The cost gets added to your basis rather than deducted currently, and you depreciate it over its own recovery period.

Ordinary repairs and maintenance, like fixing a leaky faucet or repainting, are deducted as operating expenses in the year you pay them. They do not change your basis. The distinction matters because every dollar that goes into your basis is a dollar that reduces your taxable gain when you sell.

How Depreciation Reduces Your Basis

The IRS requires you to depreciate the structure (not the land) of a rental property over its useful life. For residential rental buildings, the recovery period is 27.5 years using the straight-line method.2Internal Revenue Service. Publication 527 (2025), Residential Rental Property For commercial or other nonresidential real property, the period is 39 years.3Internal Revenue Service. Publication 946 (2025), How To Depreciate Property

Each year’s depreciation deduction reduces your adjusted basis by the same amount. Over a decade or more of ownership, that reduction can be substantial, which inflates the taxable gain when you sell. Most investors underestimate this factor when projecting after-tax proceeds.

One critical detail: depreciation recapture is based on the deductions “allowed or allowable” during ownership.3Internal Revenue Service. Publication 946 (2025), How To Depreciate Property If you never claimed depreciation on your returns, the IRS still calculates recapture as though you had. Skipping the deduction doesn’t save you from the recapture bill; it just means you gave up the annual tax benefit without avoiding the cost at sale.

If You Inherited the Property

Inherited property gets a starting basis equal to its fair market value on the date the prior owner died, not what they paid.4Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent This stepped-up basis can dramatically reduce or eliminate the taxable gain if you sell soon after inheriting. Depreciation you claim after inheriting still reduces the stepped-up basis in the normal way.

From Sale Price to Taxable Gain

The calculation runs in three steps. First, subtract selling expenses from the gross sale price to get the net sale price. Selling expenses include the real estate commission, advertising, legal fees, and any closing costs you paid as the seller.5Internal Revenue Service. Publication 523 (2025), Selling Your Home

Second, subtract your adjusted basis from the net sale price. The result is your total realized gain.

Third, split that gain into two buckets: the depreciation recapture portion, taxed at up to 25%, and the remaining capital gain, taxed at the long-term rates. Higher earners may owe the 3.8% net investment income tax on top of both.

2026 Long-Term Capital Gains Rates

The portion of your gain above cumulative depreciation is taxed at the preferential long-term rates, provided you held the property for more than a year. Which rate applies depends on your total taxable income for the year, not just the gain from the sale.

For the 2026 tax year, the brackets are:6Internal Revenue Service. Revenue Procedure 2025-32

  • 0% rate: taxable income up to $49,450 for single filers or $98,900 for married filing jointly.
  • 15% rate: taxable income above those thresholds up to $545,500 single or $613,700 joint.
  • 20% rate: taxable income above $545,500 single or $613,700 joint.

Most sellers land in the 15% bracket. The 0% rate rarely helps in a sale year because the gain itself pushes taxable income up. The 20% rate hits high earners, who almost always owe the 3.8% surtax too, bringing the effective federal rate on the non-depreciation portion to 23.8%.

Short-term gains get no preferential treatment. Sell within one year of buying, and the full gain lands in your ordinary income at rates up to 37%.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026

Depreciation Recapture at Up to 25%

Before the long-term rates touch your profit, the IRS carves out the cumulative depreciation you claimed or should have claimed and taxes it separately. This is unrecaptured Section 1250 gain, and it faces a maximum federal rate of 25%.7Internal Revenue Service. Treasury Decision 8836 – Unrecaptured Section 1250 Gain Recapture applies to the lesser of your total depreciation deductions or your total realized gain.

Consider a rental bought for $300,000 that produced $60,000 in cumulative depreciation and sold for a total gain of $120,000. The first $60,000 is taxed at up to 25% as recapture, potentially $15,000. The remaining $60,000 goes to your applicable long-term rate.

If your gain is smaller than your total depreciation, the entire gain is treated as recapture and taxed at 25%. None of it reaches the lower brackets. This happens more often than sellers expect, especially when a property appreciated slowly but accumulated years of deductions.

The 3.8% Net Investment Income Tax

Higher-income investors face an additional 3.8% surtax on net investment income, capital gains from property sales included. The tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a fixed threshold.8Internal Revenue Service. Net Investment Income Tax

The thresholds are $200,000 for single filers and $250,000 for married couples filing jointly. These figures are not adjusted for inflation, so they apply the same way every year.9Internal Revenue Service. Questions and Answers on the Net Investment Income Tax

Take a married couple with $400,000 in MAGI who realizes a $200,000 gain. The NIIT applies to the lesser of $200,000 (net investment income) or $150,000 (MAGI excess over $250,000). The surtax is 3.8% of $150,000, or $5,700, on top of the capital gains tax and any recapture.

When the Sale Produces a Loss

If your net sale price falls below your adjusted basis, you have a capital loss, and its treatment depends on how the property was used. Rental property held more than a year and used in a trade or business is Section 1231 property.10Office of the Law Revision Counsel. 26 U.S. Code 1231 – Property Used in the Trade or Business That classification produces a favorable asymmetry: net Section 1231 gains are taxed at long-term capital gains rates, but net Section 1231 losses are ordinary losses, which can offset wages and business income without hitting the $3,000 annual cap.

If the property doesn’t qualify for Section 1231 treatment, the loss is a regular capital loss. It first offsets other capital gains in the same year, and any excess offsets up to $3,000 of ordinary income per year ($1,500 if married filing separately).11Internal Revenue Service. Topic No. 409, Capital Gains and Losses Unused losses carry forward indefinitely.

Ways to Defer or Reduce the Tax

Section 1031 Like-Kind Exchange

A Section 1031 exchange lets you swap one investment property for another and defer both the capital gains tax and the depreciation recapture tax. The deferred amount rolls into the replacement property’s basis, so no tax is due until you sell that property in a taxable transaction.12Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

Two rigid deadlines run from the day you close on the property you give up. You have 45 calendar days to identify replacement properties in writing, and 180 calendar days to close on one (or by the due date of your tax return for the sale year, whichever is earlier). Missing either deadline kills the entire exchange, and the full gain becomes taxable. No extensions, no hardship exceptions.

For a full deferral, the replacement must equal or exceed the old property in value, equity, and debt. Any shortfall is “boot,” which is taxable. And you cannot touch the sale proceeds between transactions: a qualified intermediary must hold the funds. You cannot serve as your own intermediary, and neither can your real estate agent, attorney, accountant, or any professional who worked for you in the prior two years.12Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

Converting to a Primary Residence

Homeowners who sell a primary residence can exclude up to $250,000 of gain, or $500,000 for married couples filing jointly, if they owned and lived in the home for at least two of the five years before the sale.5Internal Revenue Service. Publication 523 (2025), Selling Your Home Some investors try to capture this exclusion by moving into a rental before selling.

The strategy works only partially. A non-qualified use rule requires you to allocate the gain between the rental period and the personal-use period; only the portion tied to time you actually lived there qualifies. Depreciation recapture is never excluded, regardless of how long you lived in the home. Conversion can produce meaningful savings, but it won’t erase the whole bill.

Installment Sales

If you receive the sale price over multiple years rather than in one lump sum, the installment method spreads gain recognition across the years you receive payments.13Internal Revenue Service. Publication 537 (2025), Installment Sales Each payment is split into return of basis (tax-free), gain (taxable at capital gains rates), and interest (ordinary income).

The method helps most when a lump-sum recognition would push you into a higher bracket. Spread over several years, more of the gain may stay in a lower capital gains rate. The trade-off is that you’re also spreading the receipt of your proceeds. Installment sales get reported on Form 6252, which flows into Schedule D and Form 4797.

Estimated Tax and Reporting

A large gain can create an estimated tax obligation that surprises sellers used to paycheck withholding. If you’ll owe at least $1,000 after withholding and credits, and your withholding won’t cover at least 90% of the current year’s tax or 100% of the prior year’s tax (110% if your prior-year AGI exceeded $150,000), you generally need to make estimated tax payments to avoid a penalty.14Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc.

When a sale closes mid-year, you can annualize income and make a larger estimated payment for that specific quarter rather than spreading it evenly. The Annualized Estimated Tax Worksheet in Publication 505 does the math, and you file Form 2210 with Schedule AI to show your uneven payments matched your income pattern.14Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc.

Reporting the sale itself uses several forms that feed into each other:

  • Form 4797 reports the sale of depreciable real property. Part III calculates depreciation recapture, and the net Section 1231 gain flows to Schedule D as long-term capital gain.15Internal Revenue Service. Instructions for Form 4797
  • Form 8949 lists individual transactions and totals into Schedule D, which includes the worksheet for the 25% unrecaptured Section 1250 gain.16Internal Revenue Service. 2025 Schedule D (Form 1040) – Capital Gains and Losses
  • Form 8824 is required for a 1031 like-kind exchange.17Internal Revenue Service. About Form 8824, Like-Kind Exchanges
  • Form 6252 is required for installment sales that stretch beyond one tax year.

State income tax is a separate layer. Most states tax capital gains, with rates varying widely. A handful impose no income tax at all, while others tax gains above 10%. Check your state’s rules before you rely on a federal-only estimate of what the sale will cost you.