← All calculators
Capital Gains Calculator

Estimate the tax on a sale.

One of the advanced-planning tools provided by the firm. Enter purchase price, sale price, holding period, and household income to see whether the gain is short-term or long-term, the applicable rate, the estimated federal tax including the 3.8% net investment income tax, and net after-tax proceeds.

Estimated total tax
$24,400
Long-term gain · blended rate 15.0%
Capital gain
$150,000
Federal cap gains tax
$22,500
NIIT (3.8%)
$1,900
Net proceeds
$225,600

Federal only. State capital gains tax applies separately. Long-term rates assume the gain stacks on top of other taxable income across the 0/15/20% brackets. Short-term uses a simplified ordinary-rate lookup and is an estimate.

Producers contracted through the firm use this tool as an input to case design rather than as a standalone answer. When the number here changes the shape of a case, bring it to the case design desk and we will work it through with you and the client's CPA or attorney. Request a conversation.

The one-year line

Federal capital gains tax splits along a single date: the one-year anniversary of the purchase, plus one day. A gain on an asset held one year or less is a short-term capital gain and is taxed as ordinary income at the taxpayer's marginal rate. A gain on an asset held longer is a long-term capital gain and is taxed at the preferential 0/15/20% federal rates. The rate differential is large enough that patience alone, holding an appreciated position a few extra weeks to cross the threshold, can be worth thousands of dollars per hundred thousand of gain.

The 0/15/20% brackets and how income stacks

The long-term rate a taxpayer actually pays depends on total taxable income. Ordinary income fills the ordinary brackets first. The long-term gain then stacks on top and is taxed at the long-term rate that corresponds to that income slot. A retired couple with $60,000 of taxable income who realizes a $30,000 long-term gain may pay zero federal capital gains tax, because the gain sits inside the 0% bracket. The same couple with $200,000 of taxable income pays 15%. This stacking behavior is the entire reason capital gain harvesting in low-income years is a repeatable planning move.

The 3.8% Net Investment Income Tax

On top of the underlying capital gains rate, high-income taxpayers owe the Net Investment Income Tax: an additional 3.8% on the lesser of net investment income or MAGI over $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately. A long-term gain that qualifies for the 20% federal rate becomes a 23.8% federal rate once NIIT stacks on top. NIIT also captures interest, dividends, rental income, and non-qualified annuity earnings, so it interacts with retirement portfolio design well beyond a single sale.

Loss harvesting

Realized capital losses offset realized capital gains dollar-for-dollar, first within the same character (short against short, long against long), then across categories. Up to $3,000 of net loss above realized gains can offset ordinary income each year, with the rest carried forward indefinitely. Disciplined loss harvesting across a diversified portfolio can produce a stock of carryforward losses that make a future large discretionary sale materially cheaper. Watch for the wash-sale rule: repurchasing a substantially identical security within 30 days on either side of a loss sale disallows the loss.

The step-up in basis at death

Assets held outside retirement accounts receive a step-up in basis to fair market value on the decedent's date of death. Unrealized appreciation held until death is not taxed as capital gain to the heirs. This single provision is the reason experienced planners often recommend spending down pre-tax retirement accounts first while allowing highly appreciated taxable positions to pass through the estate. Note that this treatment does not apply to inherited retirement accounts, which retain their pre-tax character under the SECURE Act 10-year rule.

Installment sales and deferred sales trusts

A concentrated position or business sale can be structured to spread the recognized gain across multiple tax years. An installment sale under IRC Section 453 recognizes gain as payments are received, which can keep each year's income under a cliff (an IRMAA tier, a Social Security taxation threshold, the 20% long-term bracket). More advanced vehicles, including deferred sales trusts and charitable remainder trusts, let a client convert a lump-sum taxable event into a stream of income while addressing legacy or philanthropic goals. Structure choice depends on circumstances and requires coordinated tax and legal counsel.

How to use this estimate

This calculator returns the classification, the blended federal capital gains rate, the estimated federal tax including NIIT, and the net after-tax proceeds. State income tax is not included and can be substantial. Use the result to frame the timing conversation: whether to wait for long-term treatment, whether to stage the sale, whether to pair the gain with harvested losses, and whether a Roth conversion or charitable move belongs in the same tax year.

FAQ
What is the capital gains tax rate?+
Long-term capital gains (assets held more than one year) are taxed at 0%, 15%, or 20% at the federal level, based on the taxpayer's taxable income and filing status. Short-term gains (held one year or less) are taxed as ordinary income, at the taxpayer's marginal bracket. High earners may owe an additional 3.8% Net Investment Income Tax on top of either category. State income tax applies separately.
What is the difference between short-term and long-term capital gains?+
The line is one year plus one day. A gain on an asset held one year or less is short-term and taxed as ordinary income. A gain on an asset held more than one year is long-term and taxed at the preferential 0/15/20% rates. The holding period runs from the day after purchase through the sale date. Because the rate differential is large, waiting a few extra weeks to cross the one-year threshold can produce a materially lower tax bill.
What is the net investment income tax?+
The Net Investment Income Tax (NIIT) is an additional 3.8% federal tax on the lesser of net investment income or MAGI over $200,000 (single or head of household), $250,000 (married filing jointly), or $125,000 (married filing separately). It applies on top of the underlying capital gains rate, so a high-income long-term gain can be taxed at an effective 23.8% federal rate before state tax.
How can I reduce capital gains tax?+
Common approaches include holding assets more than one year to qualify for long-term rates, harvesting losses to offset gains, spreading a large sale over multiple tax years (installment sale), gifting appreciated assets to charity to avoid the gain entirely, using a Section 1031 exchange for real estate, using Qualified Opportunity Zone investments to defer or reduce gain, and gifting appreciated assets to low-bracket family members. For estates, the step-up in basis at death eliminates unrealized gain.
Do I pay capital gains on inherited property?+
The heir receives a step-up in basis to the fair market value of the asset on the date of the decedent's death. If the heir sells shortly after inheriting, there is often little or no capital gain, regardless of how much appreciation occurred during the decedent's lifetime. This step-up does not apply to inherited retirement accounts, which retain their pre-tax character and are governed by the SECURE Act inherited IRA rules.

This is an educational tool, not financial, tax, or legal advice. Results depend on the inputs you provide and the assumptions documented above. Consult a qualified professional before acting.