Income Tax CalculatorSpecialized Version
📊

Capital Gains Tax Calculator

Capital gains tax

$
$
$
%
⚠️ Disclaimer: This calculator provides estimates only and does not constitute tax advice. Actual taxes may vary based on individual circumstances. Consult a tax professional for accurate tax planning.

Capital Gains Tax Calculator

Calculate taxes on your investment profits with our free capital gains calculator. Understanding the difference between short-term and long-term capital gains rates can significantly impact your investment strategy and tax planning.

2024 Capital Gains Tax Rates

| Tax Type | Single Filer Income | Rate | Short-term (held < 1 year)Any incomeOrdinary income rates (10-37%) Long-term (held 1+ years)$0 - $47,0250% Long-term$47,026 - $518,90015% Long-termOver $518,90020% CollectiblesAny28% maximum NIIT SurchargeOver $200,000+3.8%

Short-Term vs Long-Term Gains

Example: $10,000 Gain22% Tax Bracket32% Tax Bracket Short-term tax$2,200$3,200 Long-term tax$1,500$1,500 | Savings by holding 1+ year | $700 | $1,700 |

Capital Gains Calculator

``javascript function calculateCapitalGains(purchasePrice, salePrice, holdingMonths, taxableIncome) { const gain = salePrice - purchasePrice; const isLongTerm = holdingMonths >= 12;

let taxRate; if (!isLongTerm) { // Short-term: use ordinary income rate (simplified) taxRate = taxableIncome > 191950 ? 0.32 : taxableIncome > 100525 ? 0.24 : taxableIncome > 47150 ? 0.22 : 0.12; } else { // Long-term rates (2024 single filer) taxRate = taxableIncome > 518900 ? 0.20 : taxableIncome > 47025 ? 0.15 : 0; }

// Net Investment Income Tax for high earners const niit = taxableIncome > 200000 ? gain * 0.038 : 0; const capitalGainsTax = gain * taxRate + niit;

return { gain: gain.toFixed(2), holdingPeriod: isLongTerm ? 'Long-term' : 'Short-term', taxRate: (taxRate * 100).toFixed(0) + '%', capitalGainsTax: capitalGainsTax.toFixed(2), netProfit: (gain - capitalGainsTax).toFixed(2) }; } ``

Tax-Loss Harvesting

Offset capital gains by selling investments at a loss. Up to $3,000 in net losses can offset ordinary income annually, with excess carried forward. Strategic loss harvesting near year-end can reduce your tax bill significantly.

Frequently Asked Questions

What is capital gains tax?

Capital gains tax applies to profits from selling investments like stocks, bonds, real estate, or cryptocurrency. Short-term gains (assets held less than one year) are taxed as ordinary income (10-37%). Long-term gains (held 1+ year) receive preferential rates of 0%, 15%, or 20% depending on income.

How can I minimize capital gains tax?

Hold investments for at least one year to qualify for lower long-term rates. Use tax-loss harvesting to offset gains with losses. Consider tax-advantaged accounts (IRA, 401k) where gains are not taxed annually. Time large sales in years with lower income when possible.

Do I pay capital gains tax on my home sale?

You can exclude up to $250,000 ($500,000 married filing jointly) in home sale gains if you owned and lived in the home at least 2 of the past 5 years. Gains above this exclusion are taxed as capital gains. Investment properties do not qualify for this exclusion.

Related Tools

Explore other tools you might find useful:

Related Calculators