Tax & Business
Estimate short- vs. long-term capital gains from buy/sell lots. An estimate, not advice.
Your money data never leaves this device
Every calculation, statement, and ledger stays in your browser. Nothing is uploaded, and exports are encrypted on-device.
Rates & netting
Lots
Buy/sell dates, proceeds, and cost basis
- Short-term gain
- -$1,000.00
- Long-term gain
- $5,000.00
- Net short (after netting)
- $0.00
- Net long (after netting)
- $4,000.00
- Estimated tax
- $600.00
- Loss vs. ordinary income
- $0.00
- Carryover to next year
- $0.00
Holding period ≥ 365 days is treated as long-term. Short/long losses net within their bucket, then across buckets; up to 3,000 of a net loss offsets ordinary income and the rest carries forward. Rules and rates vary by jurisdiction — an estimate, not advice.
There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check. See how it stays private.
How to capital gains calculator
- Enter the trade. Add cost basis and sale proceeds.
- Set holding period. Indicate short- or long-term and the applicable rate.
- See the estimate. Read the estimated gain and tax.
The tax on a sale can meaningfully change whether it's worth doing, and holding period alone can swing the rate. This estimator gives a quick figure so a sale isn't a surprise at tax time.
Use it before rebalancing a taxable account to weigh the tax cost of trades. For rates, see the Tax brackets reference; for income tax generally, use the Income-tax estimator.
Frequently asked questions
What's the difference between short- and long-term gains?
Assets held beyond a threshold (often a year) are usually taxed at lower long-term rates; shorter holdings are typically taxed as ordinary income. Rates vary by jurisdiction.
Does it include all taxes?
It estimates the capital-gains portion from the rate you set; surtaxes, state/local taxes, and offsets like losses aren't automatically included.
Is this tax advice?
No. It's a simplified estimate; confirm your actual treatment with a tax professional or your tax authority.
Related tools
- Tax bracketsBrowse indicative income-tax brackets by region and year.
- Income taxEstimate income tax from dated, per-country brackets. An estimate, not advice.
- RebalancingCompare target vs. current allocation and get buy/sell amounts to rebalance.
- CAGR & XIRRCompute CAGR and money-weighted XIRR from irregular cash flows locally.