Home / Capital Gains Calculator

Capital Gains Tax Calculator

Enter your sale price, cost basis, and rate. Get an estimated tax and net after-tax proceeds.

Details

Results

Capital gain--
Estimated tax--
Net after tax--

Estimates only.

How it works

Long-term capital gains on assets held more than one year are taxed federally at 0%, 15%, or 20% depending on your taxable income. Short-term gains on assets held one year or less are taxed as ordinary income. For short-term gains, enter your marginal income tax rate rather than a capital gains rate.

The math: gain equals sale price minus cost basis. Tax equals gain times your rate. Net proceeds equal sale price minus basis minus estimated tax.

This is a general estimate, not tax or financial advice. Your actual tax bill may differ based on state taxes, depreciation recapture, the 3.8% NIIT, or other factors. Consult a tax professional for your specific situation.

Related calculators

Good to know

FAQs

What is a capital gain?

A capital gain is the profit on a capital asset sold for more than its adjusted basis. Basis includes your original purchase price plus qualifying improvements and acquisition costs. Selling below basis produces a capital loss.

What are the 2025 long-term capital gains rates?

For 2025 (single filers), the 0% rate applies to gains up to roughly $47,025, 15% up to $518,900, and 20% above that. Married filing jointly thresholds are roughly double. These amounts are published estimates; verify with a tax professional for your specific year and filing status.

How is short-term capital gains tax different?

Short-term gains on assets held one year or less are taxed as ordinary income, up to 37% federally. Enter your marginal income tax rate in the calculator for short-term gains.

Does this include state capital gains tax?

No. This calculator shows federal tax only. Many states tax capital gains as ordinary income, at rates from 0% (no state income tax) to 13.30% in California. Add your state rate to the federal figure for a combined estimate. State rates are listed in the capital gains tax by state guide.

Can a 1031 exchange defer this tax?

Yes. A properly structured Section 1031 exchange defers capital gains tax on investment real estate by reinvesting the proceeds into a like-kind replacement property. See the 1031 exchange calculator to model the full deferral.