Capital Gains Tax Calculator
Estimate federal and state tax on your investment profit, with 2025 long-term and short-term rates by filing status.
This is an estimate for general information only and is not financial, tax or investment advice. Figures may differ from a lender or advisor.
For your investing
Some of these are affiliate links — we may earn a commission at no extra cost to you.
This capital gains tax calculator estimates the federal (and optional state) tax on profit from selling an investment such as stocks, a fund, crypto or property. Enter what you paid (your cost basis) and what you sold it for, choose whether you held the asset for more or less than a year, and the calculator applies the right 2025 tax rate for your filing status and income.
The holding period matters enormously. A long-term gain — on an asset held more than one year — is taxed at the preferential 0%, 15% or 20% capital-gains rates. A short-term gain — held a year or less — is taxed as ordinary income at your marginal rate, which for most people is much higher. The calculator shows your gain, the tax, your after-tax profit and your effective rate so the difference is easy to see.
How to use it
- 1Enter your purchase price (cost basis) and the sale price.
- 2Choose the holding period: long-term (over a year) or short-term.
- 3Pick your filing status and enter your annual taxable income.
- 4Optionally add your state tax rate, then read the federal tax, total tax and after-tax profit.
Frequently asked questions
What's the difference between short-term and long-term capital gains?+
Long-term gains apply to assets you held for more than one year and are taxed at 0%, 15% or 20% depending on your income. Short-term gains apply to assets held for a year or less and are taxed at your ordinary income tax rate, which is usually higher — so holding just past the one-year mark can sharply cut the tax.
How is my long-term capital-gains rate determined?+
It depends on your filing status and taxable income. For 2025, a single filer pays 0% on long-term gains while taxable income is under about $48,350, 15% up to about $533,400, and 20% above that. The brackets are higher for married-filing-jointly and head-of-household filers.
Does this include state taxes?+
Only if you enter a state rate. Most states tax capital gains as ordinary income (some, like Florida and Texas, have no state income tax). Enter your state's rate to fold it into the total. The federal figure uses 2025 brackets and is an estimate, not tax advice.
What if I sold at a loss?+
If your sale price is below your cost basis you have a capital loss and owe no capital-gains tax. Losses offset other capital gains, and up to $3,000 of net loss can offset ordinary income each year, with any remainder carried forward to future years.
Related calculators
Work out the monthly payment, total interest and total cost of any loan, with a full amortization schedule.
Estimate your full monthly mortgage payment — principal, interest, property tax, home insurance, PMI and HOA — with total interest and an amortization schedule.
Find how much you can borrow against your home — your equity, available credit at a given CLTV, and the monthly payment on a home equity loan or HELOC.
See how much interest and time you save by paying your mortgage every two weeks instead of monthly — the biweekly payment, years shaved off and interest saved.