Capital Gains Tax Calculator
Calculate tax on stocks, cryptocurrency, real estate, and other investments. See the difference between short-term and long-term rates.
Capital Gains Tax Calculator
Calculate tax on stocks, crypto, and other investments
Original purchase price including fees
Amount received from sale (after fees)
Months held (more than 12 months = long-term)
Salary, wages, and other income (affects tax bracket)
Capital Gains Tax
$1,100
Gain
$5,000
Effective Rate
22.0%
8 months (Short-term)
Short-term gains taxed as ordinary income (up to 37%).
Wait to Save on Taxes
If you hold for 121+ more days, your tax would be $750 instead of $1,100.
Potential savings: $350
Tax Breakdown
Sale Proceeds
$15,000
After Tax
$13,900
2025 Long-Term Capital Gains Rates
Short-term gains are taxed at ordinary income rates (10-37%). NIIT adds 3.8% for high earners.
How to Use This Calculator
- Enter your purchase price – Original cost basis including any fees paid.
- Enter your sale price – Amount received from the sale after fees.
- Specify holding period – Number of months you held the asset (more than 12 = long-term).
- Add your other income – This determines your tax bracket and NIIT eligibility.
Understanding Your Results
Your capital gain is the difference between sale price and purchase price. Gains are taxed differently based on how long you held the asset.
Short-term gains (≤12 months) are taxed at your ordinary income rate, which can be as high as 37%. Long-term gains (>12 months) qualify for lower rates of 0%, 15%, or 20%.
If you have a capital loss, you can use it to offset other gains or deduct up to $3,000 from ordinary income per year.
Frequently Asked Questions
What's the difference between short-term and long-term capital gains?
Short-term gains are from assets held 12 months or less and are taxed as ordinary income (10-37%). Long-term gains are from assets held more than 12 months and qualify for preferential rates (0%, 15%, or 20%). The holding period starts the day after purchase and includes the day of sale.
What are the 2025 long-term capital gains tax rates?
For 2025, long-term capital gains rates are: 0% for single filers up to $48,350 taxable income, 15% from $48,351-$533,400, and 20% above $533,400. For married filing jointly: 0% up to $96,700, 15% up to $600,050, and 20% above. These rates are significantly lower than ordinary income rates.
What is the Net Investment Income Tax (NIIT)?
NIIT is an additional 3.8% tax on investment income (including capital gains) for high earners. It applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). The tax is on the lesser of your net investment income or the amount over the threshold.
How is cryptocurrency taxed?
Cryptocurrency is taxed the same as stocks and other capital assets. Selling, trading, or spending crypto triggers a taxable event. Short-term gains (held ≤12 months) are taxed at ordinary income rates. Long-term gains (held >12 months) qualify for preferential rates. Receiving crypto as income is taxed as ordinary income.
Can I offset gains with losses (tax-loss harvesting)?
Yes, capital losses can offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 ($1,500 if married filing separately) from ordinary income. Remaining losses carry forward indefinitely. Note: the wash sale rule prevents claiming a loss if you buy the same or substantially identical security within 30 days.
How do I calculate cost basis for stocks?
Cost basis is typically the purchase price plus any fees or commissions. For stocks bought at different times, you can use specific identification (choose which shares to sell), FIFO (first in, first out), or average cost (for mutual funds). Your broker usually tracks this and reports it on Form 1099-B.
Are there any ways to avoid capital gains tax?
Legal strategies include: holding assets over 12 months for lower long-term rates, tax-loss harvesting, investing through tax-advantaged accounts (401k, IRA, HSA), using the $250k/$500k home sale exclusion, donating appreciated assets to charity, and timing sales in lower income years. Each strategy has specific rules and limitations.
How are real estate gains taxed?
Real estate gains are taxed as capital gains, with special rules for primary residences. You can exclude up to $250,000 in gains ($500,000 for married couples) if you owned and lived in the home for at least 2 of the last 5 years. Investment property gains are fully taxable, though 1031 exchanges can defer taxes.
Related Calculators
Found this calculator helpful?
Check out our other free calculators for everyday math problems.
View All Calculators