Real estate capital gains tax calculator

A real estate capital gains tax calculator for land, a second home or an investment property. Enter the gain on the sale, your other income, how long you owned it and the state. For the home you live in, use the home sale calculator instead. For example: $85,000 kept from a $100,000 gain; 15.0% goes to tax.

Use it as a capital gains tax calculator on sale of property of any kind: land, a rental, a second home or a building you inherited. It is the same sum whichever you call it, so it also serves as a capital gains tax on real estate calculator.

Single filer, 2026 rates. Depreciation recapture and city taxes are not included here.

Working out the gain on a property

The gain is not the sale price minus the purchase price. Start with what you paid, add the buying costs (title, legal and recording fees) and the cost of improvements such as a new roof or an extension. That total is your cost basis.

From the sale price take off the selling costs, mainly the agent's commission and transfer taxes. The gain is the net sale price minus the basis.

Repairs and upkeep do not count as improvements. If the property was rented out, the depreciation you claimed lowers the basis and is taxed separately; see the depreciation recapture calculator.

What a property gain costs in tax

A long-term gain on top of $80,000 of other income, in a state with no income tax.

Gain on the saleFederal taxState taxTotal taxYou keepShare taxed
$50,000$7,500None$7,500$42,50015%
$100,000$15,000None$15,000$85,00015%
$250,000$42,440None$42,440$207,56016.98%
$500,000$90,360None$90,360$409,64018.07%
$1,000,000$209,360None$209,360$790,64020.94%

State tax on property sales

The state where the property stands taxes the gain, even if you live elsewhere. Most states tax it as ordinary income. Washington's capital gains tax does not apply to real estate, though this calculator applies it to every long-term gain, so choose a no-tax state such as Texas to see a Washington property sale.

Deferring the tax with an exchange

If you sell investment real estate and buy other investment real estate, a like-kind (section 1031) exchange lets you carry the gain into the new property and pay no tax now. You must name the replacement property within 45 days and close within 180 days, and the money has to be held by an intermediary in between.

How to use this calculator

  • Gain on the sale. The sale price less selling costs, less what the property cost you with improvements. The next section shows the sum.
  • Your other income. Wages, business profit, pensions and interest for the year of the sale, before tax. It decides which rate the gain falls in.
  • How long you held it. More than a year gives the long-term rates. A year or less is taxed like wages.
  • State. The state where the property stands, since that state taxes the gain.

A worked example

You bought a rental house for $300,000, paid $6,000 in closing costs and later spent $40,000 on a new roof and kitchen. Years later you sell it in Texas for $520,000 and pay $31,000 in commission and closing costs. Your salary that year is $80,000. Depreciation is left out here to keep the sum clear.

StepAmount
Cost basis: price, buying costs and improvements$346,000
Net sale price: price less selling costs$489,000
Gain$143,000
Taxable income before the gain: salary less the $16,100 standard deduction$63,900
Federal tax on the gain at 15%$21,450
Net investment income tax: 3.8% of the $23,000 above $200,000$874
Texas taxNone
Total tax$22,324
Left from the gain$120,676

Your salary alone already fills the 0% band, which ends at $49,450 of taxable income, so every dollar of the gain is taxed at 15%. The gain also lifts your income past $200,000, and the part above that line carries the extra 3.8%. Overall 15.6% of the gain goes to tax.

Gain sizes where the 3.8% tax and the 20% rate begin

A property gain is often large enough to cross two lines. The 3.8% net investment income tax starts once your income with the gain passes $200,000. The 20% rate starts once your taxable income passes $545,500. The gain it takes to get there depends on your other income.

Other income3.8% tax starts at a gain of20% rate starts at a gain ofShare of the gain taxed at that point
$50,000$150,000$511,60017.2%
$80,000$120,000$481,60017.9%
$120,000$80,000$441,60018.1%
$160,000$40,000$401,60018.4%

On $80,000 of other income, a gain of up to $120,000 pays 15% and nothing more. From there to $481,600, each extra dollar of gain pays 18.8%. Beyond that it pays 23.8%. Worked out for a single filer who takes the standard deduction, at 2026 rates, before state tax.

Inherited and gifted property

Property you inherit gets a new basis: its market value on the day the owner died. If your mother bought a house for $90,000 and it was worth $400,000 when she died, your basis is $400,000. Selling it soon after for about that price leaves little or no gain.

An inherited property also counts as long-term however briefly you hold it.

A gift works the other way. The giver's basis passes to you, so the whole rise in value since they bought it is taxed when you sell.

Spreading the gain over several years

If the buyer pays you in instalments over more than one tax year, you can report the gain as the payments arrive instead of all at once. Each payment is split into return of basis, gain and interest. The interest part is ordinary income.

This can keep more of the gain in the 0% and 15% bands and under the $200,000 line for the 3.8% tax.

What this calculator leaves out

The sums are for a single filer who takes the standard deduction, at 2026 rates. Losses carried over from earlier years, the alternative minimum tax and city or county income taxes are not included.

State tax is worked out as if the state taxed the gain like any other income, which most do. A few give long-term gains a discount that is not modelled here.

This page is for land, a second home or an investment property. Depreciation recapture on a rental is a separate sum: use the depreciation recapture calculator. The home sale exclusion applies only to a main home, which has the home sale calculator.

Common questions

How do I calculate capital gains tax on real estate?

Take the sale price less selling costs, then subtract what you paid plus buying costs and improvements. That is the gain. Held over a year, it is taxed at 0%, 15% or 20% depending on your income, plus 3.8% on income above $200,000, plus state tax.

Does the tax apply to land?

Yes. Land is a capital asset like any other property. It cannot be depreciated, so there is no recapture, and the gain is taxed at the long-term rates if you held it for more than a year.

How much is capital gains tax on real estate?

Federal tax is 0%, 15% or 20% of a long-term gain, plus 3.8% above $200,000 of income, plus state income tax. On a $100,000 gain with $80,000 of other income that is about $15,000 before state tax.

Do I pay capital gains tax on inherited property?

Only on the rise in value after the date of death. The basis of inherited property is reset to its value on that date.

Is land taxed differently from a house?

No. Land held as an investment follows the same long-term and short-term rules. Land cannot be depreciated, so there is no recapture.