Capital Gains Tax Calculator

Estimate federal capital gains tax on investment sales

What is this? This calculator estimates how much tax you'll owe when you sell an investment — stocks, real estate, or crypto. It handles short-term gains (held <1 year, taxed as income) vs. long-term gains (held >1 year, lower tax rates), and shows the effect of tax-loss harvesting.

Who it's for: Investors selling stocks or property, people considering tax-loss harvesting to offset gains, or anyone trying to estimate taxes before making an investment exit.
Sale Details
Your Income (for bracket determination)
Tax-Loss Harvesting (offset gains with losses)
NIIT note: If MAGI + net investment income exceeds $200K (single) or $250K (married), you owe 3.8% NIIT on the lesser of net investment income or the excess over threshold.
Results
Capital Gain
Federal Tax
State Tax
Total Tax
Effective Rate
Net Proceeds

Recommended Tools

Tools we trust for investment taxes:

NerdWallet → Credit Karma →

We may earn a commission from partner links at no extra cost to you.

Estimates only. Not tax advice. Consult a CPA or use TurboTax or TaxAct for accurate filing.