Capital Gains Tax Estimator Guide: Formula & Worked Example
Short answer
US federal tax on short-term vs long-term gains (2026 brackets). In the fixed example below, long-term tax (held > 1 yr) is 4,500.00. Your answer depends on the inputs and assumptions you choose.
Formula
Result = Capital Gains Tax Estimator calculation using purchase price, sale price, other taxable income, filing status, your ordinary tax rate
The inputs are purchase price, sale price, other taxable income, filing status, your ordinary tax rate. Use the input scale shown beside each field and keep time periods and units consistent. Only round the final result for display.
Worked example
- Purchase price
- 20000
- Sale price
- 50000
- Other taxable income
- 80000
- Filing status
- s
- Your ordinary tax rate
- 22
- Long-term tax (held > 1 yr): 4,500.00
- Short-term tax (≤ 1 yr): 6,600.00
- Gain: 30,000.00
- Savings by holding > 1 yr: 2,100.00
Understanding the result
US federal tax on short-term vs long-term gains (2026 brackets). Start with the base example, then replace each value with the figure that matches your situation.
Purchase price
The example uses 20000 for purchase price. This is an illustration, not a recommended value. Keep the unit and time period shown by the field.
Sale price
The example uses 50000 for sale price. This is an illustration, not a recommended value. Keep the unit and time period shown by the field.
Other taxable income
The example uses 80000 for other taxable income. This is an illustration, not a recommended value. Keep the unit and time period shown by the field.
Filing status
The example uses Single for filing status. This is an illustration, not a recommended value. Keep the unit and time period shown by the field.
Your ordinary tax rate
The example uses 22 % for your ordinary tax rate. This is an illustration, not a recommended value. Keep the unit and time period shown by the field.
What the comparison means
The comparison changes only purchase price, keeping every other example input fixed. This isolates that input's effect on the primary result. It does not predict future outcomes.
Rates, fees, eligibility, local tax rules and provider rounding can change the final amount. Reference tax and exchange-rate data may be outdated; verify the official source before deciding.
Comparison
| Scenario | Input | Result |
|---|---|---|
| Lower input | Purchase price: 16000 | Long-term tax (held > 1 yr): 5,100.00 |
| Base example | Purchase price: 20000 | Long-term tax (held > 1 yr): 4,500.00 |
| Higher input | Purchase price: 24000 | Long-term tax (held > 1 yr): 3,900.00 |
Common mistakes
- Using the wrong units for purchase price.
- Comparing results while changing more than one input at a time.
- Rates, fees, eligibility, local tax rules and provider rounding can change the final amount. Reference tax and exchange-rate data may be outdated; verify the official source before deciding.
Checklist
- Confirm purchase price.
- Confirm sale price.
- Confirm other taxable income.
- Confirm filing status.
- Confirm your ordinary tax rate is expressed in %.
- Check the result against your source or provider.
Calculators Percentage Editorial Team
Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.
Last reviewed:
Rates, fees, eligibility, local tax rules and provider rounding can change the final amount. Reference tax and exchange-rate data may be outdated; verify the official source before deciding.
