Home

Capital Gains Tax Calculator (USA)

Estimate the 2026 U.S. federal tax added by selling an investment. See your gain, the rate on each portion and what remains after regular federal tax.

Enter your numbers

Live calculation
Try an example:

Enter the amount received after selling fees for the shares or units you sold. Example: $30,000.

Use your adjusted basis for the units sold, including any applicable purchase fees and adjustments. Example: $20,000.

For most investments, one year or less is short-term. More than one year is long-term.

Choose the option that matches your calculation.

Use income after deductions, before this gain. Leave out other gains and qualified dividends. If deductions exceed income by $2,000, enter -2000. Example: $45,000.

Results update as you type. Example values are editable.

Estimated regular federal tax on this sale

$832.50

Tax year 2026. This is the added tax from the sale.

Capital gain or loss$10,000.00
Gain after regular federal tax$9,167.50

This estimate excludes state tax, the 3.8% Net Investment Income Tax (NIIT), alternative minimum tax and any effect on credits or deductions.

Where your gain goes

The chart splits the gain after selling fees and cost basis.

Where your gain goesTotal $10,000.00. Exact amounts and percentages appear beside the diagram.$10KTotal

Total $10,000.00

Inputs stay on this page. Reloading clears unsaved changes.

More results, charts and tables
Sale proceeds after regular federal tax$29,167.50

Detailed table

How the gain is taxed

RateGainTax
0%$4,450.00$0.00
15%$5,550.00$832.50
How it is calculated
Subtract adjusted cost basis from net sale proceeds. Add a positive gain to income after deductions. Short-term gains use ordinary tax brackets. For long-term gains, the estimate uses the lower of the preferential and ordinary tax calculations.

Capital Gains Tax Calculator (USA)

CalcsDecoded.com

Estimated regular federal tax on this sale

$832.50

Tax year 2026. This is the added tax from the sale.

This estimate excludes state tax, the 3.8% Net Investment Income Tax (NIIT), alternative minimum tax and any effect on credits or deductions.
Result breakdown
MeasureResult
Capital gain or loss$10,000.00
Gain after regular federal tax$9,167.50
Sale proceeds after regular federal tax$29,167.50
Where your gain goes

The chart splits the gain after selling fees and cost basis.

Gain you keep $9,167.50Regular federal tax $832.50

Inputs used

  • Sale proceeds after selling fees: $30,000
  • Adjusted cost basis: $20,000
  • How long did you hold it?: More than one year
  • Filing status: Single
  • Income after deductions, before this sale: $45,000

Method and assumptions

Subtract adjusted cost basis from net sale proceeds. Add a positive gain to income after deductions. Short-term gains use ordinary tax brackets. For long-term gains, the estimate uses the lower of the preferential and ordinary tax calculations.

Detailed results

How the gain is taxed

RateGainTax
0%$4,450.00$0.00
15%$5,550.00$832.50

Examples and assumptions

Estimate how much regular federal income tax one investment sale adds. Use the amount you receive after selling fees and the adjusted cost basis from your records.

Long-term gain across two rates

$832.50 in additional regular federal tax.

The $10,000 gain sits above $45,000 of other taxable income. For a single filer, $4,450 of the gain fits in the 0% band and the remaining $5,550 is taxed at 15%.

Short-term sale

$2,160.00 in additional regular federal tax.

The first $400 of the $10,000 gain is taxed at 12%. The other $9,600 is taxed at 22%.

Sale at a loss

$1,500.00 capital loss. $0.00 tax from this sale in the estimate.

The proceeds are $1,500 below the adjusted cost basis. The tool does not calculate deductions, netting against other gains or loss carryovers.

Before you use the result

  • For one 2026 sale of a standard investment such as stock in a taxable account. Assumes no other capital gains or losses and no qualified dividends. Use a separate calculation for home sales, collectibles, qualified small business stock, depreciation recapture or other special rules.
  • Uses 2026 rate schedules for a planning estimate. IRS tax tables, state taxes, NIIT, AMT, credits and any changes to deductions are outside the model.
  • Use the adjusted basis for the shares or units actually sold. Account for relevant prior adjustments and avoid entering fees twice.
Calculation checks and references

Reference cases check the rate bands, ordinary-rate cap, loss display and unused deductions.

Reference cases checked: . Checks are automated reference calculations; an independent professional review is not claimed.

References explain definitions, rules or context; they do not endorse CalcsDecoded.com. See our calculation methodology for the testing and updating standard.

Frequently asked questions

When is a gain long-term?

For most investments, the holding period must be more than one year. Choose short-term if you held it for one year or less.

Which income should I enter?

Enter other taxable income after deductions and before this sale. Do not enter gross salary. If your deductions exceed the income they can offset, enter the unused amount as a negative number.

Can I use this for a home sale or multiple investments?

This tool estimates regular federal tax for one standard investment sale. Home-sale exclusions, offsets from other investment sales and loss carryovers need a separate calculation.