Skip to main content
Visual Finances

Step-Up in Basis Calculator

Should you gift appreciated stock or a home now, or leave it in your estate? Compare the capital gains tax your heirs pay with a step-up in basis, a lifetime gift, or selling now — 2026 federal rules.

Capital gains tax the step-up saves

$136,293

Leave it at death and the heir can sell for $958,623 with no tax. Give it away during life and the heir owes $136,293 on the same sale.

Heir keeps (inherited)

$958,623

Heir keeps (gifted)

$822,330

Heir keeps (sold now)

$832,804

Gain erased at death

$908,623

View
Leave it at death$958,623Basis steps up to market value · $0 capital gains taxSell now, reinvest$832,804$52,500 tax today on the gain so farGift it during life$822,330Heir keeps your $50,000 basis · $136,293 tax when they sell

Each bar is a year of the asset's value: dark is the original cost basis, amber is the gain a sale would tax. At death, the heir's bar appears at the end of each lane — the gifted heir still carries the whole gain, while the inherited one turns teal: its basis stepped up to market value. Drag to orbit.

Why the timing of a transfer matters so much

The same asset can reach an heir three ways, and the capital gains tax depends entirely on which one. In the default example, a $400,000 asset bought for $50,000 grows to about $959,000 over 15 years. Left in the estate, the heir can sell it for that amount and owe nothing: about $909,000 of gain is erased. Given away today, the heir keeps the $50,000 basis and owes about $136,000 at a 15% rate when they sell. Selling now costs $52,500 in tax today and leaves less money compounding.

This is the rule at the center of the "buy, borrow, die" strategy the very wealthy use — but it applies to every estate, including a family home or a single brokerage account.

Worked example: $600,000 of stock, five years before an estate

A parent in their 80s owns shares worth $600,000 that cost $100,000. Assume they grow 6% a year and the parent dies in five years, when the shares are worth about $802,935. Here is what each route costs the family at a 15% capital gains rate and at the top 23.8% rate (20% plus the 3.8% net investment income tax):

RouteTax at 15%Heir keepsTax at 23.8%Heir keeps
Inherit at death$0$802,935$0$802,935
Gift now$105,440$697,495$167,299$635,637
Sell now, reinvest$75,000$702,568$119,000$643,687

The step-up erases $702,935 of gain. Giving the shares away early is the most expensive choice: the heir inherits the $100,000 basis and pays tax on the whole lifetime gain, plus the growth that happened after the gift. At the top rate, holding instead of gifting is worth $167,299 to the family, more than a fifth of the asset.

The gap is this large because the asset is mostly gain. The less of its value is gain, the less the timing matters.

Rules of thumb

  • Keep your biggest winners: late in life, spend from cash, low-gain assets or retirement accounts first, and hold the assets with the largest gains.
  • Give cash, not low-basis stock, to family: a gift of appreciated shares hands the recipient your tax bill.
  • Give low-basis stock to charity instead: a charity pays no capital gains tax, and you can deduct the full market value.

Read the full explainer on the step-up in basis .

FAQ

Frequently asked questions

What is a step-up in basis?
When someone dies, the cost basis of the assets they leave behind resets to market value on the date of death (IRC §1014). If a parent bought stock for $50,000 and it is worth $950,000 when they die, the heir’s basis is $950,000. Selling it the next day triggers no capital gains tax.
Is it better to gift appreciated stock or leave it in my will?
For capital gains tax, leaving it is usually better. Gifts made during life carry over the giver’s original basis (IRC §1015), so the recipient owes tax on the whole lifetime gain when they sell. Inherited assets get the step-up instead. Gifting can still make sense to move future growth out of a taxable estate, or to give low-gain assets or cash.
Do retirement accounts get a step-up in basis?
No. 401(k)s, traditional IRAs and other pre-tax accounts have no basis to step up — heirs pay ordinary income tax on withdrawals. Roth accounts are already tax-free. The step-up applies to taxable assets: brokerage accounts, real estate, a business, collectibles.
Does a house get a step-up in basis?
Yes. An inherited home’s basis resets to its value at death. For a married couple in a community-property state, both halves of jointly owned property can step up at the first spouse’s death; in other states, typically only the deceased spouse’s half does.

Sources

Where these numbers come from

  1. 26 U.S.C. §1014 — Basis of property acquired from a decedent
  2. 26 U.S.C. §1015 — Basis of property acquired by gifts
  3. IRS Publication 551 — Basis of assets
  4. IRS Topic No. 409 — Capital gains and losses
  5. IRS Rev. Proc. 2025-32 — 2026 inflation adjustments (brackets, capital gains, estate and gift)

How this calculator is built, tested and kept current: our methodology.