Capital Gains Tax Calculator

Calculate taxes on investment profits from stocks, real estate, crypto, and other assets. Compare short-term vs long-term capital gains rates.

📅 Tax Year:

🧮 Calculate Capital Gains Tax

$
$
$
Your ordinary income before this gain

How It Works

Short-Term vs Long-Term

  • Short-Term (≤1 year): Taxed as ordinary income at your marginal rate (10-37%)
  • Long-Term (>1 year): Preferential rates of 0%, 15%, or 20%

Long-Term Capital Gains Rates (2026)

Rate Single MFJ
0% Up to $49,025 Up to $98,050
15% $49,025 - $539,900 $98,050 - $606,350
20% Over $539,900 Over $606,350

Note: High earners may also owe 3.8% Net Investment Income Tax (NIIT).

Examples

Example 1: LTCG, $20k Gain, $50k Income

Total taxable: $70,000 (Single)
LTCG rate: 15% on gain
Tax: $20,000 × 15% = $3,000

Example 2: STCG, $10k Gain, 22% Bracket

Tax: $10,000 × 22% = $2,200

Frequently Asked Questions

What is cost basis?
Cost basis is what you paid for the asset, including purchase price plus commissions and fees. For inherited assets, it's typically the fair market value at the date of death (stepped-up basis).
How is the holding period calculated?
The holding period starts the day after you acquire the asset and ends on the day you sell. It must exceed one year for long-term treatment.
What about crypto and NFTs?
Cryptocurrency is treated as property. Gains from crypto sales are taxed as capital gains, short-term or long-term depending on holding period.
Can capital losses offset gains?
Yes! Capital losses offset capital gains. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year, carrying forward excess losses.
What is the 0% LTCG rate?
If your taxable income (including the gain) stays within the 0% LTCG threshold, you pay no federal tax on those long-term gains. Great for lower-income years or strategic selling.
Do I owe state tax too?
Most states tax capital gains as ordinary income. Some states have no income tax. Check your state's rules.