Capital Gains Tax Calculator
Calculate taxes on investment profits. Compare short-term vs. long-term capital gains rates using 2024 thresholds.
Investment Details
Your other taxable income for the year
Enter your investment details and click Calculate to estimate your capital gains tax.
Related Calculators
Pro Tip
Hold investments for at least one year and one day to qualify for preferential long-term capital gains rates, which can save you thousands in taxes.
View Tax Brackets →Understanding Capital Gains Tax
Capital gains tax is levied on the profit from selling an asset such as stocks, bonds, real estate, or other investments. The tax rate depends on how long you held the asset and your overall taxable income.
Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which can be as high as 37%. Long-term capital gains (assets held over one year) enjoy preferential rates of 0%, 15%, or 20% depending on your taxable income.
Capital losses can offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income and carry forward any remaining losses to future years.
The Net Investment Income Tax (NIIT) of 3.8% may also apply if your modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). This calculator does not include the NIIT.
Capital Gains Tax Formula
Where:
Capital Gain = Sale price minus purchase price (cost basis)
Short-Term Rate = Your ordinary income tax rate (10%-37%)
Long-Term Rate = 0%, 15%, or 20% based on income level
Example
Single filer, $85,000 income, sells stock held 2 years for $25,000 gain:
- • Total income with gain = $110,000
- • Income above 0% threshold ($47,025) = gain taxed at 15%
- • Capital gains tax = $25,000 x 15% = $3,750
- • Net proceeds = $75,000 - $3,750 = $71,250