Capital Gains Tax Calculator

Calculate federal and state taxes due on short-term and long-term asset sales, including the 3.8% NIIT surtax.

Capital Gains Tax Calculator

Calculate federal and state taxes due on short-term and long-term asset sales.

$40,000
$85,000
5.0%

Tax on Investment Gains

Total estimated liability on asset liquidation

Total Capital Gains Tax$8,000
Federal Capital Gains Tax$6,000 (15.0%)
State Capital Gains Tax$2,000 (5.0%)
Net Investment Income Tax (NIIT 3.8%)$0.00
Net Profit Retained (After-Tax)$32,000
Blended Effective Tax on Gain20.00%
On a $40,000 long-term capital gain, total taxes due are $8,000 (15.0% federal + 5.0% state), leaving you with $32,000 in net profits.

How It Works

Methodology, step-by-step logic, and practical application.

Assets held over 1 year enjoy preferential long-term rates (0%, 15%, 20%), whereas assets held under 1 year are taxed as ordinary income.

FormulaTotal Tax = Capital Gain × (Federal Rate + State Rate + NIIT Surtax)
1

Capital Gain

Enter net profit realized from asset liquidation.

2

Holding Period

Select Long-Term (>1 year) or Short-Term (≤1 year).

3

Tax Liability

Inspect federal tax, state tax, NIIT, and net cash retained.

Pro Tip

Maximizing pre-tax contributions (401k, IRA, HSA, or pensions) immediately lowers your taxable income bracket and increases net wealth retention.

Frequently Asked Questions

Clear answers, calculation logic, and actuarial standards for Capital Gains Tax Calculator.

What holding period qualifies for long-term capital gains?

Assets held for more than 365 days qualify for preferential federal long-term capital gains tax rates of 0%, 15%, or 20%.

Calculation Standards & Accuracy

Tax estimations are indexed to statutory Internal Revenue Code (IRC) progressive tax brackets, standard deduction thresholds, and FICA/SECA statutory payroll contribution limits.

Complementary financial tools and calculators in Tax, Income & Economy.