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 rate | 15.0% |
| Estimated capital-gains tax | $2,850 |
| Taxable gain | $19,000 |
Capital Gains Tax: formula
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 rate | Estimated capital-gains tax | Taxable 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
| Input | Tested from | To | Estimated capital-gains tax: low input | Estimated capital-gains tax: high input | Swing |
|---|---|---|---|---|---|
| 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 rate | 13.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
| Input | Value | Estimated capital-gains tax | Taxable 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 rate | 11.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: values and definitions
| Quantity and definition | Value used |
|---|---|
| Sale proceeds | $50,000 |
| Adjusted tax basis | $30,000 |
| Selling costs | $1,000 |
| Estimated tax rate | 15.0% |
| Estimated capital-gains tax | $2,850 |
| Taxable gain | $19,000 |
Capital Gains Tax: half and double Sale proceeds
| Sale proceeds | Estimated 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.