Estimate tax on a capital gain using the holding-period treatment and effective rate you supply.
by Calcuatany.com
A capital gain is the amount by which an asset's sale price exceeds its adjusted cost basis. This calculator first finds the gross gain, subtracts any deduction or exemption you enter, and applies the effective tax rate you supply: estimated tax = max(0, sale price − adjusted basis − applicable deduction) × effective rate.
Tax systems do not all classify holding periods or gains in the same way. Even in the United States, the applicable rate can depend on taxable income, filing status, asset type and other gains and losses. For that reason, the calculator does not decide the legal treatment from an approximate number of months. You select short-term or long-term treatment and enter an effective rate appropriate to your situation.
How to use the Capital Gains Tax Calculator
- Enter the "Sale price" received for the asset.
- Enter the "Adjusted cost basis". Basis may include more than the original purchase price, so use the amount supported by your records and applicable rules.
- Select the holding-period treatment that applies in your jurisdiction: short-term or long-term. The calculator will use the corresponding effective rate field.
- Enter an "Applicable deduction / exemption" only if it applies to this gain. Leave it at zero otherwise.
- Enter the effective short- and long-term rates relevant to your scenario, then read the estimated tax and net gain after tax.
Formula
Estimated tax = max(0, sale price − cost basis − applicable deduction) × effective rate
Example: estimating tax on a $15,000 long-term gain
Suppose an asset is sold for $50,000 and has an adjusted cost basis of $35,000. The gross gain is $15,000. Select long-term treatment, leave the deduction at zero and enter a 15% effective long-term rate.
The estimated tax is $15,000 × 15% = $2,250. The net gain after that estimate is $12,750. This is an arithmetic scenario, not a determination that 15% is the correct legal rate for a particular return.
How to interpret the result
"Estimated capital gains tax" applies the supplied rate only to the estimated taxable gain. "Tax as share of gross gain" can be lower than the supplied rate when a deduction reduces the amount exposed to tax.
"Net gain after estimated tax" is the gross gain less this tax estimate. It does not subtract transaction charges or model other taxes.
A capital loss is displayed when adjusted basis exceeds the sale price, but the calculator does not estimate how that loss offsets other gains or income.
Next, you may also find these useful: Mortgage Calculator, Loan Calculator, Auto Loan Calculator.
Assumptions and limitations
- This is an arithmetic estimator, not tax advice. It does not determine your jurisdiction, filing status, legal holding period, tax bracket or eligibility for an exemption.
- The supplied rate is treated as one effective rate on the estimated taxable gain. The calculator does not model progressive brackets, income stacking, surtaxes or state and local tax.
- It models one disposal and does not net multiple gains and losses, apply loss carryforwards, or handle wash-sale and similar rules.
- Homes, collectibles, qualified small-business stock, depreciated property and other special assets may follow rules this general calculator does not model.
Frequently asked questions
What is adjusted cost basis?
It is the tax basis after applicable additions and reductions, not always just the original purchase price. Transaction costs, improvements, depreciation, reinvested distributions and other adjustments may change it depending on the asset and jurisdiction.
Why do I select short-term or long-term myself?
The exact holding-period rule and day-count method depend on the jurisdiction and asset. Asking you to select the applicable treatment avoids pretending that an approximate number of months can make that legal determination.
Why does the calculator ask for an effective rate?
Capital-gains rates can depend on income, filing status, asset type, location and other transactions. A supplied effective rate lets you model a known scenario without embedding thresholds that may not apply or may become outdated.
Does the calculator handle tax brackets?
No. It applies one effective rate to the estimated taxable gain. If a gain spans brackets or interacts with other income, calculate the effective rate separately or use official tax guidance.
Can capital losses offset gains?
Often, but ordering rules, annual limits and carryforwards vary. This calculator identifies a loss but does not calculate how it affects the rest of a tax return.
Is the result my final tax liability?
No. It is an estimate from the values and effective rate you supply. Confirm the treatment, basis and rate with current official guidance or a qualified tax professional.
Sources and further reading
- IRS: Topic no. 409, Capital Gains and Losses
- IRS Publication 551: Basis of Assets
- GOV.UK: Capital Gains Tax
Read the full guide: Full guide: Capital gains tax explained.
Last reviewed: 2026-10-06. See our editorial policy.
Related calculators
Estimates only; not financial, tax or legal advice. Confirm figures with your lender or a licensed professional. Full disclaimer