Estimate the federal tax on your investment gains, short-term vs long-term. Free, no signup.
Capital Gains Tax Calculator
See what the IRS takes when you sell stocks, crypto, or property — short-term vs long-term rates, income stacking, and the 3.8% net investment income tax, in seconds.
Estimate only — not tax advice. This calculator estimates federal capital gains tax only, using simplified 2025 federal brackets and thresholds. It does not include state tax, the primary-home exclusion, depreciation recapture, collectibles rates, wash-sale rules, or deductions. Your actual tax depends on your full return. Talk to a qualified tax professional before making a sale.
Every number is calculated in your browser. Nothing is sent to a server or stored.
No account, no email, no download — just enter your numbers and get the answer.
Use it as often as you like, for as many sales as you are planning.
How to use this calculator
- 1Enter the sale and your cost
Type the sale price and what you originally paid (your cost basis). The difference is your capital gain.
- 2Pick the holding period and filing status
Choose short-term (held one year or less) or long-term (held over one year), then your tax filing status.
- 3Add your other income
Enter your other taxable income. It fills the lower tax brackets first, which decides how much of your gain is taxed at 0%, 15%, or 20%.
- 4Read your estimate
See the gain breakdown by rate, the 3.8% NIIT if it applies, and your total estimated federal tax.
Why use this calculator
Flip the holding period to see exactly how much waiting past one year saves you — often thousands of dollars on the same sale.
Most simple calculators ignore your other income. This one stacks your gain on top of it, the way the IRS actually taxes it.
High earners owe an extra 3.8% on investment income above $200,000 single or $250,000 joint. Many calculators leave it out entirely.
Single, married filing jointly, head of household, and married filing separately, each with its own correct thresholds.
Test selling this year vs next, or splitting a sale across two tax years, before you commit.
State capital gains taxes are not included, so the estimate stays honest about what it covers.
Frequently asked questions
What is the difference between short-term and long-term capital gains?
What are the 2025 long-term capital gains rates?
What is the 3.8% net investment income tax (NIIT)?
Does selling my primary home count?
What if I sell at a loss?
Does this include state capital gains tax?
How is crypto taxed?
Can I lower my capital gains tax?
Related tools
Estimate your total federal income tax, including brackets, deductions, and credits.
State Income Tax CalculatorAdd your state tax on top of the federal estimate for the full picture.
Compound Interest CalculatorSee how reinvested gains grow your money over time.
Mortgage CalculatorWork out monthly payments before you buy or refinance a home.
Sales Tax CalculatorFigure out the tax added at checkout in any US state.
Rent vs Buy CalculatorCompare the true cost of renting against buying a home.
Syed Waleed