Finance Calculators

Capital Gains Tax Calculator

Calculate federal capital gains tax on investments based on purchase price, sale price, holding period, filing status (single, married filing jointly, or head of household), and income tax bracket. Features short-term vs long-term rate comparison, an optional 3.8% Net Investment Income Tax (NIIT) surcharge, a bracket-by-bracket tax breakdown, net proceeds after taxes, and tax-reduction strategies.

How to Use the Capital Gains Tax Calculator

Use the Capital Gains Tax Calculator to federal capital gains tax on investments based on purchase price, sale price, holding period, filing status (single, married filing jointly, or head of household), and income tax bracket. Features short-term vs long-term rate comparison, an optional 3.8% Net Investment Income Tax (NIIT) surcharge, a bracket-by-bracket tax breakdown, net proceeds after taxes, and tax-reduction strategies.. Enter your values to get accurate, instant results tailored to your situation.

Free financial calculators for mortgages, loans, investments, retirement planning, and more. Make smart money decisions with accurate calculations.

Common Uses

Related Calculators

More Finance Calculators

Browse all 319+ free online calculators

Capital Gains Tax Mastery

Minimize investment taxes

Expert Tips

Essential Fundamentals — Tax basics & rates

Capital Gains Basics

Tax Calculation Methods

Advanced Strategies — Minimize tax burden

Tax Optimization Strategies

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term capital gains apply to assets held for 12 months or less and are taxed at your ordinary income tax rate (10-37%). Long-term capital gains apply to assets held longer than 12 months and are taxed at preferential rates (0%, 15%, or 20%), which are significantly lower for most taxpayers.
What are the 2026 long-term capital gains tax rates?
0% up to $49,450 single / $66,200 head of household / $98,900 married filing jointly; 15% from there up to $545,500 single / $579,600 HoH / $613,700 MFJ; 20% above those thresholds. Select your filing status above and the calculator picks the right bracket table automatically. High earners also owe a separate 3.8% Net Investment Income Tax (MAGI over $200,000 single/HoH, $250,000 MFJ) - check the "Subject to NIIT" box above to include it in your Tax Owed figure; it's off by default since the calculator doesn't collect your full income to check the threshold for you.
Can I use capital losses to offset capital gains?
Yes! Capital losses can offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income annually. Remaining losses carry forward to future years indefinitely.
How can I minimize capital gains tax?
Hold assets for >1 year for lower long-term rates. Harvest tax losses to offset gains. Donate appreciated assets to charity for deduction without paying tax. Use tax-advantaged accounts (401k, IRA, HSA) where gains grow tax-free. Time sales in lower-income years.
Do I pay state capital gains tax too?
Most states tax capital gains as ordinary income at state income tax rates (0-13.3%). Nine states have no income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming. California has the highest at 13.3%.
What assets are subject to capital gains tax?
Stocks, bonds, mutual funds, ETFs, real estate (excluding primary residence exclusion), cryptocurrency, collectibles, business interests, and other investment assets. Primary residence has $250k exclusion ($500k married) if owned/lived in 2 of last 5 years.