Capital Gains Tax Calculator

The example $50,000 proceeds minus $30,000 basis and $1,000 selling costs produces a $19,000 gain. At the entered 15% rate, estimated tax is $2,850. That rate is an assumption, not an automatically determined bracket.

Compare proceeds after tax and costs, keeping the holding period and basis consistent.

Capital Gains Tax Calculator: inputs

Calculated result
Estimated capital-gains tax$2,850
Taxable gain$19,000

Capital Gains Tax Calculator: Estimated tax rate sensitivity

Capital Gains Tax Calculator: Estimated tax rate and Estimated capital-gains tax5 calculations vary the “Estimated tax rate” input while holding the other entered inputs constant.11.0%$2,09013.0%$2,47015.0%$2,85017.0%$3,23019.0%$3,610

The flat-rate estimate excludes loss netting, carryforwards, exclusions, state tax, special asset rates and separate Net Investment Income Tax. NIIT is 3.8% of the lesser of net investment income or excess modified adjusted gross income over its filing-status threshold; crossing that threshold does not mean every gain automatically bears another 3.8%.

Capital Gains Tax: worked example

Sale proceeds$50,000
Adjusted tax basis$30,000
Selling costs$1,000
Estimated tax rate15.0%
Estimated capital-gains tax$2,850
Taxable gain$19,000

Capital Gains Tax: formula

Estimated tax = (proceeds − basis − selling costs) × tax rate

IRS Topic No. 409: capital gains and losses · IRS: Net Investment Income Tax

Use adjusted basis from the brokerage record or supporting acquisition records. If sale proceeds are already net of selling fees, do not deduct those fees again. Enter an assumed flat rate for the modeled gain; this calculator does not determine your rate band.

A holding period over one year can qualify for long-term treatment, subject to asset-specific rules.

Common error: Using the original purchase price alone as basis on an asset that's had capital improvements or reinvested distributions added over time. That understatement inflates the taxable gain beyond what's owed.

Capital Gains Tax: changing Estimated tax rate

Estimated tax rateEstimated capital-gains taxTaxable gain
11.0%$2,090$19,000
13.0%$2,470$19,000
15.0% (example)$2,850$19,000
17.0%$3,230$19,000
19.0%$3,610$19,000

Capital Gains Tax: compare input ranges

InputTested fromToEstimated capital-gains tax: low inputEstimated capital-gains tax: high inputSwing
Sale proceeds$45,000$55,000$2,100$3,600$1,500 (53%)
Adjusted tax basis$27,000$33,000$3,300$2,400$900 (32%)
Estimated tax rate13.0%17.0%$2,470$3,230$760 (27%)
Selling costs$900$1,100$2,865$2,835$30 (1.1%)

Capital Gains Tax: individual input comparisons

InputValueEstimated capital-gains taxTaxable gain
Sale proceeds$40,000$1,350$9,000
$45,000$2,100$14,000
$50,000$2,850$19,000
$55,000$3,600$24,000
$60,000$4,350$29,000
Adjusted tax basis$24,000$3,750$25,000
$27,000$3,300$22,000
$30,000$2,850$19,000
$33,000$2,400$16,000
$36,000$1,950$13,000
Selling costs$800$2,880$19,200
$900$2,865$19,100
$1,000$2,850$19,000
$1,100$2,835$18,900
$1,200$2,820$18,800
Estimated tax rate11.0%$2,090$19,000
13.0%$2,470$19,000
15.0%$2,850$19,000
17.0%$3,230$19,000
19.0%$3,610$19,000

Capital Gains Tax: combined input changes

Estimated tax rate / Sale proceeds$40,000$50,000$60,000
11.0%$990$2,090$3,190
13.0%$1,170$2,470$3,770
15.0%$1,350$2,850$4,350
17.0%$1,530$3,230$4,930
19.0%$1,710$3,610$5,510

Capital Gains Tax: which assumptions move the result?

Capital Gains Tax: Estimated capital-gains tax as Sale proceeds changesEstimated capital-gains tax starts at $1,350. Moving Sale proceeds from $40,000 to $60,000 changes it to $4,350, with Adjusted tax basis $30,000; Selling costs $1,000; Estimated tax rate 15.0% kept fixed.$40,000$1,350$45,000$2,100$50,000$2,850$55,000$3,600$60,000$4,350
Chart quantityDisplayed settings
Sale proceeds$40,000 → $60,000
Estimated capital-gains tax$1,350 → $4,350
Adjusted tax basis$30,000
Selling costs$1,000
Estimated tax rate15.0%
Capital Gains Tax: Estimated capital-gains tax as Adjusted tax basis changesEstimated capital-gains tax starts at $3,750. Moving Adjusted tax basis from $24,000 to $36,000 changes it to $1,950, with Sale proceeds $50,000; Selling costs $1,000; Estimated tax rate 15.0% kept fixed.$24,000$3,750$27,000$3,300$30,000$2,850$33,000$2,400$36,000$1,950
Chart quantityDisplayed settings
Adjusted tax basis$24,000 → $36,000
Estimated capital-gains tax$3,750 → $1,950
Sale proceeds$50,000
Selling costs$1,000
Estimated tax rate15.0%

Capital Gains Tax: values and definitions

Quantity and definitionValue used
Sale proceeds$50,000
Adjusted tax basis$30,000
Selling costs$1,000
Estimated tax rate15.0%
Estimated capital-gains tax$2,850
Taxable gain$19,000

Capital Gains Tax: half and double Sale proceeds

Sale proceedsEstimated capital-gains tax
$25,000$0.00
$50,000$2,850
$100,000$10,350

Taxes & Paycheck calculators: Sales Tax Calculator, Property Tax Calculator, Tax-Equivalent Yield Calculator, State Income Tax Calculator, State Retirement Income Tax Calculator, State Estate Tax Calculator.

The gain being taxed is proceeds minus basis minus selling costs, not the sale price alone, and basis is often more than the original purchase price once improvements, reinvested dividends or prior adjustments are factored in. Leaving basis understated overstates the taxable gain, sometimes substantially, on an asset held for years with several additions to its cost along the way.

While the modeled gain remains positive, one additional dollar of eligible basis reduces that gain by one dollar.

Plan losses with the tax-loss harvesting calculator, and check the stock and crypto profit calculators for the pre-tax result. The federal income tax page shows how gains stack on ordinary income. The tax-equivalent yield calculator compares taxable and tax-free returns.

Capital Gains Tax Calculator: quantities and terminology

Can I subtract selling fees twice?

No. If your proceeds figure already has fees deducted, leave the separate selling-cost input at zero. Otherwise the same fee understates the gain twice.

Does a loss create a tax refund here?

No. This simplified tool does not implement loss netting, carryforwards or the deduction against ordinary income. Use the applicable tax-return rules for losses.

What is the long-term capital gains tax rate?

Generally 0%, 15% or 20% depending on taxable income, for assets held more than a year. Short-term gains are taxed at ordinary income rates.

How do I find my cost basis?

Look at your broker's cost-basis report or trade confirmations, and add commissions and improvements. For inherited assets, basis is usually the value at the owner's death.

Can losses reduce my capital gains tax?

Yes. Losses offset gains of the same year, and up to $3,000 of excess loss offsets ordinary income, with the rest carried forward.