Inherited house / property

Capital Gains Tax on Selling an Inherited House or Property

Short answer: when you inherit property, your cost basis is generally reset to its fair market value on the date the owner died. That is the step-up in basis. You owe capital gains tax only on the gain after that date, and the sale is automatically long-term no matter how soon you sell. If you sell quickly for about the date-of-death value, the tax can be small or zero.

Enter the date-of-death value as your basis. The calculator then adds what a taxable gain does to your Social Security and your Medicare premiums.

By Hans Goldstein, EA, Enrolled Agent, enrolled to practice before the IRS. Updated December 2026.

2027 federal brackets (IRS Rev. Proc. 2026-35), SSA Section 86 thresholds, CMS 2027 Medicare premiums and IRMAA tiers, state rates as of December 2026. Estimates, not tax advice.

Worked example

A single heir, age 64, sells an inherited house for $760,000. It was worth $410,000 on the date of death, selling costs are $45,600 and the heir has $80,000 of other income.

Worked exampleAmount
Taxable gain$304,400
Federal tax on the gain$45,660
Net investment income tax (3.8%)$7,007
California tax on the gain$28,295
Tax most calculators show$80,962
Extra tax on Social Security the sale makes taxable ($0 more taxable)$0
Medicare Part B + D surcharge two years later$6,587
Real cost$87,549

The step-up in basis, explained

Under IRC Section 1014, property you inherit takes a basis equal to its fair market value at the date of death (or six months later if the estate elects an alternate valuation date). The decedent's decades of appreciation are never taxed. If a house cost $100,000 and was worth $410,000 when the owner died, your basis is $410,000. Sell for $760,000 and your gain is $350,000 less selling costs, not $660,000.

The step-up applies to inherited houses, land, stock and most other assets. It does not apply to retirement accounts, annuities or other income in respect of a decedent. In a community property state like California, both halves of community property get a new basis when the first spouse dies.

Inherited vs gifted: a different basis

If someone gave you the property during their life, you take their basis and holding period (a carryover basis), which can mean a much larger gain. If they put it in a revocable trust that became irrevocable at death, you generally still get the step-up. A transfer on death deed also gets the step-up. Know which one you have before you sell.

California and other state notes

Inherited California property can be reassessed for property tax if the child does not use it as a main home, and Prop 19 limits the old parent-child exclusion. That affects what it costs to hold the property, not the capital gain on a sale, but it is a common reason heirs sell. See capital gains on inherited property in California and selling inherited farmland with siblings.

Frequently asked questions

Do I pay capital gains tax on an inherited house?

Only on gain after the date of death. Your basis is generally the house's fair market value on that date. If you sell for close to that value, there is little or no gain.

Is inherited property sold long-term or short-term?

Long-term. Inherited property is treated as held for more than a year no matter how soon you sell, so the lower 0/15/20% rates apply.

What is the stepped-up basis?

A reset of your cost basis to the property's fair market value at the date the owner died. It wipes out the gain that built up during the owner's life.

Can I avoid capital gains on an inherited house?

You can reduce them: sell soon after inheriting, document the date-of-death value, add improvements, or live in the home for two years so the main-home exclusion applies. Gain after the date of death is still taxable.

Does selling an inherited house affect Medicare and Social Security?

A taxable gain raises your adjusted gross income, which can raise the taxable part of your Social Security and your Medicare Part B and D premiums two years later. The calculator shows the amounts.

What if the house is sold by an estate or trust?

An estate or trust files its own return and has its own, steeper brackets, with 20% capital gains starting at $16,750 of income in 2027. Distributing the proceeds to beneficiaries can move the gain to their returns.

Run it on your real return

A free 15-minute call with Hans Goldstein: which levers fit your sale, what the Social Security and Medicare effects look like on your actual numbers, and what to ask your CPA.

Book 15 minutes 213-414-2808

Educational estimate, not tax, legal or financial advice. Figures use 2027 federal brackets and thresholds (IRS Rev. Proc. 2026-35), the Social Security benefit-taxation rules in IRC Section 86, CMS 2027 Medicare premiums and IRMAA tiers, and state rates as of December 2026 (California uses the FTB 2026 schedule until the 2027 schedule is published). Later Medicare years hold the 2027 tiers flat. Your CPA should confirm any figure before you act. By Hans Goldstein, EA, Enrolled Agent (enrolled to practice before the IRS), reviewed December 2026.

Run my numbers Book 15 min Call

Hans Goldstein is an Enrolled Agent, enrolled to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.