Capital Gains Tax Calculator: Estimate Your Tax on Investment Gains for 2026
Calculate federal and state capital gains taxes on stocks, real estate, and other investments. Compare short-term vs. long-term rates.
How Capital Gains Tax Is Calculated
Capital gains tax is applied to the profit from selling an asset. Rates differ based on holding period and income level.
Long-term capital gains (held > 1 year) are taxed at 0%, 15%, or 20% based on income. Short-term gains are taxed as ordinary income. The 3.8% NIIT applies to high earners above $200K (single) or $250K (married).
How to Use the Capital Gains Tax Calculator
Enter purchase and sale prices
Use the total cost basis (including commissions) and total sale proceeds.
Select holding period
Long-term means held for more than one year; short-term is one year or less.
Choose your tax bracket
Select the long-term capital gains rate that applies to your income level.
Review tax breakdown
See federal tax, state tax, NIIT, and your net proceeds after all taxes.
Real-World Scenario Example
"An investor bought stock for $10,000 and sold it for $15,000 after 18 months, with a 15% federal rate and 5% state tax."
Inputs
Result
$5,000 capital gain. $750 federal tax + $250 state tax = $1,000 total. Net proceeds: $14,000.
Important Disclaimer
This calculator provides estimates for educational purposes. Tax laws are complex and vary by situation. Consult a qualified tax professional for personalized advice.
Related Calculators
Marginal vs Effective Tax Rate Calculator
Calculate your 2025 marginal and effective federal income tax rates by income and filing status. See your bracket-by-bracket breakdown, total tax owed, and after-tax income.
Inflation-Adjusted Return Calculator
Calculate your real investment return after inflation. Compare nominal vs inflation-adjusted portfolio growth over any time period.
Compound Interest Calculator
Calculate how your savings or investments grow over time with compound interest, including the effect of regular monthly contributions and different compounding frequencies.