Capital Gains Tax Calculator
Estimate tax on a simple capital gain using your selected rate.
For educational purposes only. This calculator does not provide tax or financial advice. Consult a tax professional for your specific situation.
📊 Visual Analysis
What This Calculator Does
The Capital Gains Tax Calculator estimates the tax owed on a capital gain from selling an asset. Enter the purchase price, sale price, holding period, and a selected tax-rate assumption to see a modeled gain, modeled tax amount, and modeled proceeds after that assumption. The holding-period selector is descriptive only; it does not determine jurisdiction-specific treatment.
Formula
Where:
- Sale Price = The price at which you sold the asset
- Purchase Price = The original price you paid to acquire the asset
- Tax Rate = A user-selected scenario rate; actual treatment can depend on jurisdiction, tax year, holding period, basis, account type, losses, surtaxes, and other facts
This is a simplified calculation that does not account for transaction costs, depreciation recapture, or the specific tax rules of any jurisdiction. The selected rate is only a scenario assumption; actual treatment depends on the applicable rule set.
Input Fields Explained
Purchase Price ($)
The total amount you paid to acquire the asset. For stocks, this is the share price times the number of shares plus any commissions. For property, this typically includes the purchase price and certain closing costs. Use the total cost basis, not just the price per unit.
Sale Price ($)
The total amount you received from selling the asset. This is the gross sale amount before deducting any taxes or fees. For stocks, multiply the sale price per share by the number of shares.
Holding Period
Select a descriptive holding-period category. It does not automatically determine the applicable rate because definitions and treatment vary by jurisdiction, asset, account, and tax year.
Selected Tax Rate Assumption (%)
A scenario rate you provide for arithmetic only. It is not inferred from your income bracket and does not determine filing liability.
Example Calculation
You bought an asset for $50,000 and sold it for $80,000 after holding it for 2 years (long-term). You select a 24% scenario rate.
Capital Gain = $80,000 − $50,000 = $30,000
Long-term gains may qualify for a reduced rate (the actual rate depends on your jurisdiction and income level).
Important: This example uses simplified assumptions. Actual treatment can depend on jurisdiction, tax year, residence, asset, account, basis, holding period, losses, surtaxes, and other facts. The calculator provides an estimate, not a tax calculation. Consult a tax professional for accurate figures.
How to Read the Result
The gross profit from the sale (sale price minus purchase price). This is the amount potentially subject to tax before any deductions or exemptions.
The modeled tax amount produced by multiplying the modeled gain by the selected rate assumption. It is not filing liability.
The sale price minus the modeled tax amount. It does not represent what you will keep after actual taxes, costs, withholding, or settlement adjustments.
Common Mistakes
- Forgetting transaction costs. Broker commissions, transfer taxes, and other fees reduce your net proceeds but may or may not be deductible from the capital gain depending on your jurisdiction. This calculator does not account for these costs.
- Confusing short-term and long-term rates. Short-term gains are typically taxed at ordinary income rates, while long-term gains often receive preferential treatment. Misclassifying the holding period can significantly over- or under-estimate the tax.
- Ignoring loss offsets. If you have capital losses from other investments, you may be able to offset them against this gain, reducing or eliminating the tax. This calculator does not factor in other gains or losses.
- Not considering your total income. Capital gains tax rates often depend on your total taxable income, not just the gain itself. A large gain could push you into a higher tax bracket, affecting the rate applied.
- Assuming a universal tax rate. Tax rates vary significantly by country, state, and filing status. This calculator uses a simplified model and does not account for the specific tax laws of any jurisdiction.
When This Calculator Is Useful
- Estimating the tax impact of selling a stock or property before making the decision
- Comparing proceeds under different user-selected tax-rate scenarios
- Illustrating how a selected rate changes the arithmetic result
- Preparing a rough scenario for reconciliation with jurisdiction-specific tax guidance
Limitations
- Uses a simplified tax model — actual rates depend on jurisdiction, income, and filing status
- Does not account for transaction costs, commissions, or transfer taxes
- Does not handle loss carryforwards, wash sale rules, or complex cost basis methods
- Not designed for cryptocurrency, options, futures, or other specialized assets
- Does not consider state, local, or additional surtaxes that may apply
- This calculator is for educational purposes only and does not constitute tax or financial advice
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Holding-period definitions and tax character vary by jurisdiction, asset, account, and tax year. Some systems distinguish shorter- and longer-term gains, but this calculator does not determine the applicable rule or rate; it only applies the selected scenario rate.
Can I offset gains with losses?
In many jurisdictions, you can deduct capital losses against capital gains to reduce your tax liability. If total losses exceed gains, some countries allow a portion of the excess to offset ordinary income, with remaining losses carried forward to future years. This is sometimes called tax-loss harvesting. The rules vary significantly by country — consult a tax professional for guidance applicable to your situation.
How can I minimize capital gains tax?
Potential planning approaches are jurisdiction-specific and can include timing, account selection, loss netting, charitable transfers, or other elections. Eligibility, anti-avoidance rules, costs, and consequences require current local guidance.
How are capital gains taxed?
Capital gains tax rates depend on your country of residence, your total income, the holding period, and the type of asset. Some countries have a flat capital gains tax rate, others use progressive rates tied to income brackets, and some exempt small gains entirely. This calculator uses a simplified model — it does not account for the specific tax laws of any particular jurisdiction.
Does this calculator account for transaction costs?
No. This calculator computes a simplified gain and applies the selected rate assumption to produce a modeled tax amount. It does not deduct broker commissions, exchange fees, transfer taxes, or other transaction costs from the gain. Your actual taxable gain may differ after accounting for these costs, depending on your local tax rules.
Can I use this for crypto or options?
This calculator is designed for simple buy-and-sell scenarios of capital assets like stocks or property. Cryptocurrency and options may have different tax treatments depending on the jurisdiction. Some countries treat crypto as property, others as currency, and options may have special marking-to-market rules. Consult a tax professional for these asset types.
🔧 Related Calculators
Educational Disclaimer
This calculator is for educational and informational purposes only. It does not provide investment, financial, tax, or legal advice. The results are based on the inputs and assumptions you provide and may not reflect real market conditions, fees, taxes, or risks. Always do your own research or consult a qualified professional before making financial decisions.