Capital Gains Tax Calculator
Long-term
Before capital gains
Capital Gain
$5,000.00
Long-term
Tax Rate
15%
Long-term rate
Tax Amount
$750.00
Federal tax on gain
Net Proceeds
$14,250.00
After tax
Gain Calculation
Sale Price: $15,000.00
- Cost Basis: $10,000.00
= Capital Gain: $5,000.00
Long-Term (12+ months)
Preferential tax rates: 0%, 15%, or 20% based on income
Currently qualifies
Short-Term (<12 months)
Taxed as ordinary income at your marginal rate
Long-Term Capital Gains Brackets (2026) - Single
| Tax Rate | Income Range |
|---|---|
| 0% | $0.00 - $49,450.00 |
| 15% | $49,450.00 - $545,500.00 |
| 20% | $545,500.00 - and above |
Tax-Saving Strategies
- Hold investments for at least 12 months to qualify for long-term rates
- Consider tax-loss harvesting to offset gains with losses
- Use tax-advantaged accounts (401k, IRA) for frequent trading
- Time sales to years with lower income when possible
- High earners may owe an additional 3.8% Net Investment Income Tax
Calculator Assumptions
- Tax year: 2026 federal capital gains brackets
- Holding period: 12+ months qualifies for long-term rates; short-term taxed as ordinary income
- NIIT: 3.8% Net Investment Income Tax not included (applies above $200k/$250k AGI)
- State taxes: Not included; many states tax capital gains as ordinary income
- Collectibles: Art, coins, and collectibles taxed at 28% max (not modeled)
- Real estate: Depreciation recapture taxed at 25% (not modeled)
About the Capital Gains Tax Calculator
The Capital Gains Tax Calculator estimates the federal tax owed when you sell an investment such as stock, a mutual fund, crypto, or property for more than you paid. It distinguishes between short-term gains, on assets held one year or less and taxed as ordinary income, and long-term gains, on assets held more than a year and taxed at the preferential 0%, 15%, or 20% rates. This holding-period distinction is the single biggest lever in capital gains planning.
To compute the gain, the tool subtracts your cost basis (purchase price plus commissions and any reinvested dividends) from the sale proceeds. Long-term rates are tied to your taxable income and filing status, so the calculator places your gain on top of your ordinary income to determine whether it falls in the 0%, 15%, or 20% band. High earners may also owe the additional 3.8% Net Investment Income Tax, which the tool can factor in.
Investors use this calculator before selling to estimate the after-tax proceeds, to time sales so a holding crosses the one-year mark into long-term treatment, and to plan tax-loss harvesting where realized losses offset realized gains. It complements the Income Tax Calculator for your overall picture and the Tax Bracket Calculator for understanding how a large gain might push part of your income into a higher band.
A useful tip: gains and losses of the same type net against each other first, and up to $3,000 of net capital loss can offset ordinary income each year, with the remainder carried forward. Keep accurate records of your cost basis, including dividend reinvestments, because overstating proceeds or understating basis leads to overpaying. State capital gains taxes are not included in this federal estimate.
Frequently asked questions
- What is the difference between short-term and long-term capital gains?
- Short-term gains apply to assets held one year or less and are taxed at your ordinary income rate. Long-term gains apply to assets held more than a year and enjoy lower rates of 0%, 15%, or 20%.
- What is cost basis and why does it matter?
- Cost basis is what you paid for an asset, including commissions and reinvested dividends. Your taxable gain is sale proceeds minus basis, so accurate basis records directly reduce the tax you owe.
- Can capital losses reduce my taxes?
- Yes. Losses first offset gains of the same type, then offset other gains, and up to $3,000 of remaining net loss can offset ordinary income per year, with any excess carried forward.
- What is the Net Investment Income Tax?
- It is an additional 3.8% tax on net investment income for taxpayers above certain modified adjusted gross income thresholds ($200,000 single, $250,000 married filing jointly), applied on top of regular capital gains rates.
Find your tax bracket
Calculate Return on Investment
Calculate federal income tax
Estimate your tax refund or amount owed
Calculate self-employment taxes
Calculate paycheck tax withholding