Capital Gains Tax Calculator

Estimate the federal tax on selling an investment, including the 0%, 15%, and 20% long-term rates and the 3.8% NIIT.

Your details

Filing status

Holding period

Estimated tax

Total gain / loss

Net proceeds

Tax rate

Effective rate

Breakdown

Sale
Cost
Gain / loss
Tax
You keep

This calculator automatically applies the 2026 standard deduction ($16,100 single, $32,200 married, $24,150 head of household) before determining your tax bracket. Estimates are based on 2026 US federal tax rates (per TCJA as extended by the One Big Beautiful Bill). It does not include state taxes, AMT, or other deductions. Consult a tax professional for personalized advice.

The effective tax rate may exceed the base capital gains rate due to the Net Investment Income Tax (NIIT), an additional 3.8% surtax that applies when modified adjusted gross income exceeds $200,000 (single or head of household) or $250,000 (married filing jointly).