How to Calculate Capital Gains Tax on Rental Property

To calculate the capital gains tax on a rental property, subtract your adjusted basis from the net sale proceeds, then apply three different rates to different slices of the gain: up to 25% on the portion equal to depreciation you took (or should have taken), 0%, 15%, or 20% on the remaining appreciation, and an additional 3.8% surtax if your income crosses certain thresholds. The arithmetic itself is simple. The work is in building an accurate basis and knowing which slice gets which rate.

Step One: Build Your Adjusted Basis

Adjusted basis is the IRS’s running tally of what you have invested in the property. Everything about the final tax calculation depends on getting this number right.

Start With What You Paid

Your starting basis is the purchase price plus certain acquisition costs that were not deducted in the year you bought the property. Title insurance, survey fees, legal fees, recording fees, and transfer taxes all go in. Costs tied to your mortgage, such as loan origination points or the lender’s appraisal, are generally amortized over the life of the loan rather than added to basis.

If you inherited the property, your starting basis is typically the fair market value on the date the prior owner died, not what they paid. An estate that filed a federal estate tax return and elected an alternate valuation date uses that date’s value instead.1Internal Revenue Service. Gifts and Inheritances This step-up can dramatically shrink the taxable gain later.

Add Capital Improvements

Money spent on capital improvements raises your basis. A capital improvement materially adds value or extends the property’s useful life: a new roof, an added bathroom, a full HVAC replacement. Routine repairs like patching drywall or fixing a leaky faucet don’t count. Those were deducted as operating expenses in the year you paid them.

The line trips up a lot of owners. A de minimis safe harbor election lets you expense items costing $2,500 or less per invoice if you don’t have audited financial statements.2Internal Revenue Service. Tangible Property Regulations – Frequently Asked Questions Anything above that threshold that adds value or extends useful life should be capitalized and added to basis.

Split Land From Building

Only the building is depreciable. Land doesn’t wear out, so before you take your first depreciation deduction you have to allocate the purchase price between the two.3Internal Revenue Service. Publication 527, Residential Rental Property

The common approach uses the ratio of assessed values from your county property tax bill. If the assessor values the land at $40,000 and the building at $160,000 on a $200,000 total assessment, that’s an 80/20 split applied to your actual purchase price. An independent appraisal is an acceptable alternative when the assessed values look off.3Internal Revenue Service. Publication 527, Residential Rental Property

Subtract Depreciation

Depreciation is the largest downward adjustment to your basis over the years you own the property. Residential rental property is depreciated over 27.5 years using the straight-line method with a mid-month convention.3Internal Revenue Service. Publication 527, Residential Rental Property On a $275,000 depreciable basis, that’s roughly $10,000 per year coming off ordinary income during ownership and off your basis going forward.

Here is the part that stings: basis must be reduced by the depreciation “allowed or allowable,” even if you never claimed it. Own a rental for ten years and forget to take depreciation, and the IRS still treats your basis as if you had. You end up owing recapture tax on phantom deductions that never benefited you. Filing amended returns or a Form 3115 to catch up on missed depreciation before you sell is almost always worth doing.

Step Two: Figure the Amount Realized and the Gain

The amount realized is your gross selling price minus selling expenses. Real estate commissions, attorney fees, seller-paid title costs, and transfer taxes all come off the top. Sell for $400,000 and pay $28,000 in commissions and closing costs, and your amount realized is $372,000.

Gain equals amount realized minus adjusted basis. If your original basis was $250,000, you added $30,000 in capital improvements over ten years, and you took $72,727 in depreciation during that stretch, your adjusted basis is $207,273. Your taxable gain on a $372,000 amount realized is $164,727.

That single number then splits into pieces, and each piece has its own rate.

Step Three: Apply the Right Rate to Each Slice

Holding Period First

Hold the rental for one year or less and the entire gain is short-term, taxed at ordinary income rates that can run as high as 37%.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses No preferential rate, no separate recapture layer, just ordinary income. Most rental sales involve longer holds and qualify for long-term treatment, which is where the layered rate structure comes in.

Depreciation Recapture at Up to 25%

The first slice carved out of a long-term gain is unrecaptured Section 1250 gain. It equals the total depreciation taken (or allowable) during ownership, and it is taxed at a maximum rate of 25%.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses The logic: you got the deduction at ordinary rates while depreciating, so the IRS claws some of that back at sale.

The 25% is a ceiling. If your marginal ordinary rate is lower, you pay the lower rate on that slice instead.5Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed In the running example, the $72,727 of depreciation at 25% is up to $18,182 of tax on that portion alone.

Long-Term Capital Gains on the Appreciation

Whatever gain remains above the depreciation amount is the property’s actual appreciation. This slice is taxed at the preferential long-term rates of 0%, 15%, or 20%, depending on total taxable income. For 2026, the brackets are:6Internal Revenue Service. Rev. Proc. 2025-32

  • 0% rate: taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
  • 15% rate: taxable income from $49,451 to $545,500 (single), $98,901 to $613,700 (married filing jointly), or $66,201 to $579,600 (head of household).
  • 20% rate: taxable income above those upper thresholds.

In the example, the appreciation slice is $164,727 minus $72,727, or $92,000. Most sellers land in the 15% bracket, which produces $13,800 on that portion. Combined with the recapture, federal tax on the sale approaches $32,000 before the surtax below.

The 3.8% Net Investment Income Tax

Higher-income taxpayers owe an additional 3.8% surtax on the lesser of their net investment income or the amount by which their modified adjusted gross income exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately).7Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax These thresholds are fixed in the statute and don’t adjust for inflation, so more sellers cross them each year.

The surtax applies to both the recapture slice and the appreciation slice.8Internal Revenue Service. Net Investment Income Tax When it hits, the effective top rate on the appreciation portion climbs to 23.8%, and the effective rate on recapture can reach 28.8%. The calculation lives on Form 8960.

If the Sale Produces a Loss

Not every sale produces a gain. If adjusted basis exceeds amount realized, you have a loss. Rental property is a Section 1231 asset, and if your total Section 1231 losses for the year exceed your Section 1231 gains, the net loss is treated as ordinary rather than capital.9Office of the Law Revision Counsel. 26 USC 1231 – Property Used in the Trade or Business That’s favorable: ordinary losses offset wages, rental income, or business profits in full, without the $3,000 annual cap that limits capital losses. A $50,000 loss on a rental can wipe out $50,000 of other income in a single year.

One catch worth flagging: if you deduct a Section 1231 ordinary loss, any Section 1231 gain in the next five years is recharacterized as ordinary income up to the amount of the earlier loss.

Suspended Passive Losses Finally Release

Many rental owners have accumulated passive activity losses they couldn’t deduct in prior years because their income was too high. Those losses carry forward and wait.

Selling the rental in a fully taxable transaction is the trigger. When you dispose of your entire interest in the activity, all previously suspended losses from it are released and deductible against any type of income. Forty thousand dollars of stockpiled suspended losses would offset $40,000 of the capital gain in the year of sale. Two conditions: the sale must cover your entire interest, and the buyer cannot be a related party.10Internal Revenue Service. Publication 925, Passive Activity and At-Risk Rules

Ways to Reduce or Defer the Bill

1031 Like-Kind Exchange

A Section 1031 exchange lets you swap one investment property for another and defer the entire capital gains tax, including depreciation recapture, into the replacement property.11Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The gain doesn’t disappear. It carries over through a reduced basis in the new property. The like-kind definition is broad for real estate: a rental house for an apartment building, a warehouse, or vacant land all qualify, as long as both properties are held for investment or business use.

Two firm deadlines govern a delayed exchange. You must identify replacement properties in writing within 45 calendar days of closing the sale, and you must close on the replacement within 180 days or by the due date of your return for the year of sale (with extensions), whichever comes first.12Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 Miss either deadline and the entire gain is taxable immediately. You also cannot touch the sale proceeds in between. A Qualified Intermediary holds the funds and directs them to the replacement seller at closing.

For full deferral, the replacement property must equal or exceed the value of the one sold and carry equal or greater debt. Any shortfall is “boot,” taxable in the year of exchange at the same layered rates as a straight sale. The whole transaction is reported on Form 8824.

Installment Sale

If an exchange isn’t practical, an installment sale spreads the capital gains tax over the years you collect payments. Each payment carries a proportional share of gain, basis recovery, and interest.13Internal Revenue Service. About Form 6252, Installment Sale Income

One critical catch: depreciation recapture cannot be spread. The full recapture amount is taxed in the year of sale, regardless of how much cash you’ve actually received.14Internal Revenue Service. Topic No. 705, Installment Sales On $80,000 of accumulated depreciation, you owe tax on the full $80,000 up front at rates up to 25%, even if the buyer’s first-year payment is only $20,000. Suspended passive losses release proportionally rather than all at once.10Internal Revenue Service. Publication 925, Passive Activity and At-Risk Rules Annual installment income is reported on Form 6252.

Converting a Rental to Your Primary Residence

Section 121 lets you exclude up to $250,000 of gain ($500,000 for joint filers) on the sale of a primary residence if you owned and lived in it for at least two of the five years before the sale.15Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Moving into a former rental to use this exclusion can work, but two restrictions sharply limit it.

Any period after 2008 during which the property was used as a rental is “non-qualified use.” The portion of gain allocated to those years cannot be excluded. Own a property ten years, rent it for six and live in it for four, and roughly 60% of the gain stays taxable. One nuance helps: non-qualified use occurring after the last date the home was your primary residence doesn’t count against you.16Internal Revenue Service. Publication 523, Selling Your Home

And depreciation taken after May 6, 1997, is never excludable. It must be recaptured and taxed at up to 25%, the same as any rental sale.17eCFR. 26 CFR 1.121-1 – Exclusion of Gain From Sale or Exchange of a Principal Residence Skipping the recapture is the most common mistake people make when they assume a conversion wipes the slate clean.

How It Gets Reported

The gain doesn’t live on a single form. It flows through several:

  • Form 4797, Sales of Business Property, is the starting point. Part III calculates the depreciation recapture, which feeds into Part II as ordinary income. The remaining gain flows to Schedule D as long-term capital gain.
  • Schedule D combines that gain with other capital gains and losses. Its tax worksheet applies the different rates to the appreciation portion and the unrecaptured Section 1250 portion.
  • Form 8960 calculates the 3.8% NIIT if your income exceeds the thresholds.8Internal Revenue Service. Net Investment Income Tax
  • Form 8824 reports a 1031 exchange.
  • Form 6252 reports an installment sale.13Internal Revenue Service. About Form 6252, Installment Sale Income

State income tax adds another layer. Most states that have an income tax also tax capital gains, and rates vary widely. A handful impose no income tax at all. Factor your state’s treatment into any estimate of net proceeds. Ignoring it is an easy way to underestimate the bill by thousands.