capital gains taxlong-term capital gainsshort-term gainsNIITinvestment tax
//// Financial · Investing & Taxes
Capital Gains Tax Calculator
Enter your purchase price, sale price, and holding period to see your exact federal capital gains tax, NIIT, and state tax — plus a side-by-side comparison of what you'd save by waiting for long-term treatment.
Where this fits
This tool lives inside Trading Income and is most useful for traders.
401(k) Limit 2024$23,000
Roth IRA Limit$7,000
S&P 500 Avg Return~10%/yr
Asset Sale Details
Long-term gains qualify for preferential 0%, 15%, or 20% rates.
$
$
$
%
Capital Gain
$35,000
Long-term
Federal Tax
$5,250
15% rate
NIIT (3.8%)
$0
Not applicable
State Tax
$1,750
5.0% rate
Total Tax
$7,000
20.0% of gain
Net Proceeds
$53,000
After all taxes
Tax Breakdown
Sale price$60,000
Cost basis− $25,000
Capital gain$35,000
Federal tax (15%)− $5,250
State tax (5.0%)− $1,750
Net proceeds$53,000
You might also need