Free Tool

Capital Gains Tax Calculator

Calculate the tax on your investment gains for 2025. See short-term vs. long-term rates, NIIT surtax, and your net proceeds after tax.

Transaction Details
Enter your investment sale details and income information
$

Determines your capital gains tax bracket

$
$

Enter your details

Your capital gains tax calculation will appear here.

Short-Term vs. Long-Term Capital Gains

Short-Term (held ≤ 1 year)

Taxed at your ordinary income tax rate, which can be as high as 37%. This is the same rate you pay on your salary or wages.

Long-Term (held > 1 year)

Taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income. Most taxpayers pay 15%.

2025 Long-Term Capital Gains Rates

RateSingleMarried Filing Jointly
0%Up to $48,350Up to $96,700
15%$48,351 – $533,400$96,701 – $600,050
20%Over $533,400Over $600,050

Net Investment Income Tax (NIIT)

The Net Investment Income Tax is an additional 3.8% surtax on investment income (including capital gains) for higher earners. It applies when your modified adjusted gross income (MAGI) exceeds $200,000 for single filers or $250,000 for married filing jointly.

The NIIT is calculated on the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. This is in addition to any capital gains tax you owe.

Track All Your Investment Gains Automatically

WriteOff connects to your brokerage accounts and automatically tracks cost basis, holding periods, and capital gains — so you never overpay on taxes.

Disclaimer

Federal estimates only. State taxes are not included and may differ for capital gains.

This calculator provides estimates based on 2025 IRS tax rates. It does not account for state taxes, the wash-sale rule, or other special circumstances. It is for informational purposes only and does not constitute tax advice. Consult a qualified tax professional for your specific situation.