Capital Gains Tax Calculator

Estimate your capital gains tax before you sell.

Calculate your 2024 federal capital gains tax on any stock or investment sale. Includes long-term and short-term rates, the 3.8% Net Investment Income Tax, and optional state tax. See your exact net profit after all taxes.

Your sale

$
$
Cost basis: $5,000 · Proceeds: $12,000
Held > 1 year — qualifies for preferential long-term rates (0%, 15%, 20%)
$
Excluding this gain — used to determine your tax bracket
%
CA: 13.3% · NY: 10.9% · TX/FL: 0% · Leave blank to show federal only
Total Capital Gain$7,000
Total Tax Owed$1,050
Net Profit After Tax$5,950
Effective total rate15.0%
Federal rate15% LTCG
Where your money goes
// HOW IT WORKS

2024 capital gains tax rates.

Long-Term Capital Gains — 2024 Brackets
Tax Rate0%
Single≤ $47,025
Married Joint≤ $94,050
Head of Household≤ $63,000
Tax Rate15%
Single≤ $518,900
Married Joint≤ $583,750
Head of Household≤ $551,350
Tax Rate20%
Single> $518,900
Married Joint> $583,750
Head of Household> $551,350
Tax Filing Rules & Details

Gains stack on top

Your ordinary income fills the brackets first. Capital gains are taxed starting from where your income leaves off — not from $0.

Short-term = income rate

Assets held 1 year or less are taxed at your ordinary income rate (10%–37%). No preferential treatment applies here.

NIIT: +3.8% Surcharge

High earners (>$200k single / $250k joint) owe an extra 3.8% on investment income to fund Medicare programs.

State tax is separate

Most states tax gains as ordinary income. California (13.3%) and New York (10.9%) are highest; others have none.

This calculator estimates federal tax only unless you enter a state rate. It does not account for AMT, qualified opportunity zones, installment sales, or wash sale rules. Consult a tax professional before making final decisions.

// FAQ

Common questions.

// STAY UPDATED

Get notified when new tools drop.

Monthly tool updates, finance insights, no spam.

No spam. Unsubscribe anytime.