Skip to content

Capital Gains Tax on Rental Property Sale

Know the whole bill before you sign a listing agreement

If you sell a rental property, the tax usually comes in layers: federal long-term capital gains tax at 0%, 15% or 20%, up to 25% on the part of the gain tied to depreciation, a possible 3.8% net investment income tax, and your state's tax. The total depends on your gain, your income and your state, so any figure before your CPA runs it is an estimate.

Open the checklist

The pre-listing tax worksheet: 10 items. The first is free on this page.

Updated November 15, 2026 by Private Exchange Group. 2 minute read. Not tax or legal advice.

The short version

  • Tax is figured on your gain, which is the sale price less selling costs less an adjusted basis that depreciation has reduced.
  • Federal long-term gains are taxed at 0%, 15% or 20% based on taxable income, with the depreciation portion taxed at up to 25%.
  • The 3.8% net investment income tax applies only above fixed income thresholds, and your state may add its own tax on the gain.
  • If you plan to buy another investment property, a 1031 exchange set up before closing defers these layers instead of paying them now.

Start with the gain and not the sale price

Owners usually ask this question once they have decided the property is no longer worth the work. The number that matters is what you keep, and that starts with your gain, not your price. Gain is the amount realized, meaning the price less your selling costs, minus your adjusted basis in the property.

Adjusted basis is what you paid plus capital improvements, minus the depreciation allowed or allowable over the years. IRS Publication 544 lists depreciation among the decreases to basis. That is why a rental bought long ago can show a large gain even at a modest price, and why the depreciation becomes its own layer of tax.

Holding period sets the rate family. IRS Topic 409 says an asset held more than 1 year generally produces a long-term gain. A short-term gain, from property held 1 year or less, is taxed as ordinary income at your graduated rates, which is usually a much larger bite.

The four layers on a typical rental sale

Each layer has its own rule. Your CPA may find that some do not apply to you, but it is worth knowing all of them before you price the property, because together they decide how much of the sale actually reaches your bank account.

Long-term capital gains
Federal tax at 0%, 15% or 20% on the gain above depreciation, with the rate set by your overall taxable income, according to IRS Topic 409.
Depreciation layer
Unrecaptured Section 1250 gain, generally the part of the gain equal to depreciation on the building, taxed at a maximum federal rate of 25%.
Net investment income tax
3.8% on the lesser of net investment income or modified adjusted gross income above $200,000 single, $250,000 joint or $125,000 separate. The thresholds are not indexed.
State income tax
Your state may tax the gain under its own rules and rates. Check your state's revenue department or the state pages before you list.

Before closing or not at all

Three ways the tax comes back

  1. You take cash out

    Cash you keep from the sale is taxed up to the amount of your gain.

  2. You buy for less

    Buying for less than the net price you sold for leaves value behind, and that part is taxed.

  3. The loan gets smaller

    A loan you pay off and do not replace with new debt or your own cash counts the same as cash received.

See your 2 dates

General rules, not tax or legal advice.

A worked example with round numbers

Say an owner bought a rental years ago for $300,000, took $90,000 of depreciation, and now sells for $600,000 with $36,000 in selling costs. The figures are hypothetical. They leave out state tax, other income, losses and every personal detail that would change a real return.

At the highest federal rates, the tax in this example comes to about $88,752 before any state tax, nearly 15% of the sale price. At lower rates it would be less. An owner who wants to stay invested should see a number like this before signing a listing agreement.

LineHypothetical amountHow it is treated
Sale price$600,000Starting point
Selling costs$36,000Subtracted to reach an amount realized of $564,000
Adjusted basis$210,000$300,000 cost less $90,000 depreciation
Total gain$354,000Long-term if held more than 1 year
Depreciation portion$90,000Up to 25%, or up to $22,500
Remaining gain$264,000$39,600 at 15% or $52,800 at 20%
Net investment income taxUp to $354,000 of gain3.8% if income is over the threshold, up to $13,452

Swipe the table sideways to see every column

Hypothetical example for illustration only. Federal rates from IRS Topics 409 and 559. Not a prediction of any owner's tax.

When an exchange changes the answer

If you plan to leave real estate, the tax is the cost of getting out, and planning is about timing and records. If you plan to buy another investment property, a 1031 exchange in place before the sale closes defers the federal layers above when all the proceeds are reinvested, because no gain is recognized on the exchange itself. State treatment varies, so check yours.

The replacement has to be like-kind real property held for investment or business use, identified within 45 days and acquired within 180 days or by your return due date, if earlier. Plug your own figures into the capital gains estimator, then open an exchange or talk it through with PEG before you sign anything.

The numbersWhat a sale costs in every stateFederal tax, state tax and transfer tax on a $1 million to $10 million investment property sale, worked out for every state and checked against each state's sources.

Questions people ask

How much tax will I pay if I sell my rental property?

Nobody can give you a real number without your basis, depreciation, income and state. The bill is built from federal capital gains tax at 0%, 15% or 20%, up to 25% on the depreciation part, possibly the 3.8% net investment income tax, and state tax. Use an estimator for a range, then have your CPA confirm it.

Is there a way to sell my rental and not pay capital gains tax right away?

Yes, if you are buying another investment property. A 1031 exchange, sometimes called a like kind swap or tax free exchange, defers the tax when it is set up before closing and the replacement is bought within the deadlines. It is deferral, not forgiveness. If you keep the cash, the gain is taxed in the year of sale.

Do I pay the 3.8% investment tax on every rental sale?

No. The net investment income tax applies only when your modified adjusted gross income is above $200,000 for single filers, $250,000 for joint filers or $125,000 for married filing separately. It is 3.8% of the smaller of your net investment income or the excess over that threshold. A large gain can push an owner over the line in the sale year.

Does it matter how long I owned the rental before selling?

Yes. IRS Topic 409 says an asset held more than 1 year generally produces a long-term gain, taxed at 0%, 15% or 20% with depreciation at up to 25%. Property held 1 year or less produces a short-term gain taxed as ordinary income. Property held mainly for resale is a different matter and cannot be exchanged at all.

Know where you stand before you close

Tell us when the sale closes and what you own. You will hear where you stand and what has to happen first.

  • Whether the property qualifies
  • Your 2 deadlines on a calendar
  • What your closing agent needs

By sending this you agree that PEG may call or text you about your request. Your details stay with PEG and are never sold.

Asking commits you to nothing. It keeps the option open.

Call