Capital Gains Tax Calculator — Calculate Tax on Your Investments 2026
Calculate capital gains tax on stocks, funds, ETFs, and other investments. Understand tax rates, deductions, and strategies to minimize your tax bill.
Capital Gains Tax — What Is It and When Do You Pay?
Capital gains tax (CGT) is a tax on the profit you make when selling an asset for more than you paid. It applies to stocks, bonds, mutual funds, ETFs, real estate, and in many jurisdictions, cryptocurrency.
Understanding CGT is essential for any investor — it directly impacts your net returns and should influence your investment strategy.
What's Taxable?
Subject to capital gains tax:
- ✅ Profits from selling stocks
- ✅ Gains from mutual funds and ETFs
- ✅ Bond gains (corporate and some government)
- ✅ Cryptocurrency profits
- ✅ Real estate profits (above exemptions)
- ✅ Dividends (taxed separately in most jurisdictions)
Often exempt or tax-advantaged:
- ❌ Gains inside Roth IRA / ISA (tax-free wrappers)
- ❌ Primary residence (up to limits)
- ❌ Government bond interest (state tax exempt in US)
- ❌ Gains below annual exemptions
Tax Rates by Country (2026)
United States
Short-term gains (held < 1 year): Taxed as ordinary income (10–37%)
Long-term gains (held ≥ 1 year):
| Taxable Income (Single) | Rate |
|---|---|
| Up to $47,025 | 0% |
| $47,026 – $518,900 | 15% |
| Over $518,900 | 20% |
Plus: 3.8% Net Investment Income Tax for high earners
Qualified dividends: Same rates as long-term capital gains
United Kingdom
Annual CGT exemption (2026): £3,000
Rates (above exemption):
- Basic rate taxpayers: 10% (18% for property)
- Higher/additional rate: 20% (24% for property)
Dividends:
- £1,000 tax-free allowance
- Basic: 8.75%, Higher: 33.75%, Additional: 39.35%
Other Major Markets
| Country | Short-Term Rate | Long-Term Rate | Notes |
|---|---|---|---|
| Canada | 50% of gain taxed at marginal rate | Same | Inclusion rate changing |
| Australia | Marginal rate | 50% discount after 1 year | |
| Germany | 26.375% flat | Same | No holding period benefit |
| France | 30% flat (PFU) | Same | Or progressive option |
How to Calculate Capital Gains Tax
Basic Formula
Capital Gain = Sale Proceeds − Cost Basis
Cost Basis = Purchase Price + Commissions + Fees
Tax = Capital Gain × Tax Rate
Example 1: Stock Sale (US)
Transaction:
- Bought: 500 shares of AAPL at $150 = $75,000
- Brokerage fee: $0 (commission-free broker)
- Sold: 500 shares at $195 = $97,500
- Held for 14 months (long-term)
Calculation:
Cost basis: $75,000
Proceeds: $97,500
Gain: $22,500
Tax (15% long-term rate): $3,375
Net profit: $19,125
Example 2: ETF Sale (UK)
Transaction:
- Bought: £50,000 of Vanguard FTSE Global All Cap
- Sold for: £68,000
- Gain: £18,000
- Annual exemption: £3,000
Calculation:
Taxable gain: £18,000 − £3,000 = £15,000
Tax (20% higher rate): £3,000
Net profit: £15,000
Example 3: International Dividends
US investor receiving foreign dividends:
- Foreign dividend: $5,000 gross
- Foreign withholding tax (15%): $750
- US tax on qualified dividend (15%): $750
- Foreign tax credit: −$750
- Net US tax: $0 (credit offsets fully)
- Net dividend received: $4,250
Offsetting Gains with Losses
Tax Loss Harvesting
Principle: Sell losing investments to offset gains in the same tax year.
Example:
Gain from AAPL sale: +$22,500
Loss from META sale: −$8,000
Gain from dividends: +$3,000
Net taxable gain: $22,500 − $8,000 + $3,000 = $17,500
Tax saved: $8,000 × 15% = $1,200
Carrying Losses Forward
US: Net losses up to $3,000/year offset ordinary income; remainder carries forward indefinitely.
UK: Losses carry forward indefinitely to offset future gains.
Example:
2025: Net loss of −$15,000
2025 deduction: $3,000 against income
Remaining: $12,000 carried to 2026
2026: Gain of $20,000
After carry-forward: $20,000 − $12,000 = $8,000 taxable
Tax Optimization Strategies
1. Use Tax-Advantaged Accounts
Roth IRA (US):
- Contributions from after-tax money
- All growth and withdrawals: TAX-FREE
- 2026 limit: $7,000 ($8,000 if 50+)
ISA (UK):
- £20,000 annual allowance
- No CGT, no income tax on gains or dividends
- Priority: Maximize ISA before using taxable accounts
401(k) / Pension (US/UK):
- Tax-deferred growth
- Taxed as income on withdrawal
2. Hold Periods Matter (US/Australia)
- US: Hold over 1 year for long-term rates (0–20% vs. up to 37%)
- Australia: 50% discount for assets held over 1 year
- UK/Germany: No holding period discount — same rate regardless
3. Strategic Timing
End-of-year tax loss harvesting:
- Sell losers before December 31
- Offset realized gains from earlier in the year
- Repurchase after 30 days to avoid wash sale rules (US)
Income smoothing:
- Realize gains in low-income years
- Defer gains to years when you're in a lower bracket
4. Asset Location
Place investments optimally across accounts:
In tax-free accounts (Roth IRA / ISA):
- High-growth stocks (biggest potential gains)
- REITs (high dividends taxed as income)
- Active funds (frequent distributions)
In taxable accounts:
- Index ETFs (low turnover, tax-efficient)
- Municipal bonds (tax-exempt interest, US)
- Stocks held for long-term gains
Common Tax Calculation Mistakes
1. Forgetting about fees and commissions
- Every fee is part of your cost basis
- Including them reduces your taxable gain
2. Wrong cost basis method
- FIFO (First In, First Out) — default in most countries
- Specific identification — can choose which shares to sell
- Average cost — used for mutual funds
3. Ignoring wash sale rules
- US: Can't claim loss if you buy "substantially identical" security within 30 days
- UK: 30-day "bed and breakfast" rule
4. Missing loss carry-forwards
- Unused losses expire in some jurisdictions
- Keep records of all losses for future use
Tax-Efficient Investing Principles
1. Long-Term Buy and Hold
- Fewer transactions = fewer taxable events
- Tax deferred until you sell
- Qualifies for long-term rates
2. Tax-Efficient Fund Selection
- Index ETFs: Low turnover, minimal capital gains distributions
- Avoid actively managed funds in taxable accounts (frequent distributions)
3. Charitable Giving with Appreciated Assets
- Donate stocks instead of cash
- Avoid capital gains tax entirely
- Get a deduction for full market value
Tools for Tracking Investment Taxes
Freenance for Investors
Tax features:
- Transaction import from brokers
- Automatic cost basis tracking
- Real-time tax liability estimates
- Year-end tax reports for filing
- Tax loss harvesting alerts
- "What if" simulations for tax planning
Key Metrics to Monitor
Effective tax rate:
Tax Paid / Total Capital Gains
Goal: Minimize through optimization
Tax-advantaged utilization:
Contributions / Annual Limit
Goal: 100% utilization of all available tax-free space
Remember: Tax is a cost of investing, but not a reason to avoid investing. It's always better to earn and pay tax than to not earn at all!
Want full control over your finances?
Try Freenance for free