Income Tax Calculator→Specialized Version
📊

Capital Gains Tax Calculator

Capital gains tax

$
$
$
%
Annual Take-Home
$71,474
$5,956/month
Total Tax
$18,526
20.6% effective rate
Marginal Rate
22%
Federal bracket

Tax Breakdown

Gross Income$90,000
Pre-Tax Deductions-$0
Adjusted Gross Income (AGI)$90,000
Standard Deduction-$14,600
Taxable Income$75,400
Federal Income Tax$11,641
Social Security (6.2%)$5,580
Medicare (1.45%+)$1,305
Take-Home Pay$71,474

Capital Gains Tax

$
Holding period
Rate applied15%
Capital gains tax$1,500
Total$1,500

Long-term rates are 0%, 15% or 20% depending on your total taxable income including the gain — not on the gain alone.

Federal Tax Brackets Used

BracketIncomeTax
10%$11,600$1,160
12%$35,550$4,266
22%$28,250$6,215
⚠️ Disclaimer: Brackets, standard deductions and wage bases are for tax year 2024. This calculator provides estimates only and does not constitute tax advice. Actual taxes vary with individual circumstances — consult a tax professional for 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 TypeSingle Filer IncomeRate
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.

Worked Through the Brackets

On $90,000 of gross income, filing single, taking the $14,600 standard deduction — so $75,400 of taxable income:

BracketRangeIncome taxed hereTax
10%$0 – $11,600$11,600$1,160
12%$11,600 – $47,150$35,550$4,266
22%$47,150 – $100,525$28,250$6,215
Total$11,641
That is a 12.9% effective rate against a 22% marginal rate. The two answer different questions: the marginal rate is what the next dollar costs, and it is the one that decides whether a 401(k) contribution or an extra shift is worth it. The effective rate is what you actually paid, and it is the one to budget against.

The Same Income, Different Sources

SourceFederal tax on it
Wages (above)$11,641
Self-employment profit$11,641 income tax plus $12,717 SE tax
Long-term capital gain of $10,000$1,500 at 15%
Where income comes from changes the bill more than how much of it there is. A self-employed filer at this level pays roughly $12,717 that an employee never sees, because there is no employer paying the other half of FICA.

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:

More Income Tax Calculator tools

You might also need