What This Calculator Does (and Doesn't Do)

This is a planning estimate, not tax advice. Tax rules vary by jurisdiction and individual circumstances. Always consult a qualified tax professional.

Calculator Assumptions

How This Calculator Estimates Capital Gains Tax

The calculator uses these steps:

  • 1. Adjusted sale proceeds = Sale price − Selling expenses
  • 2. Adjusted cost basis = Purchase price + Purchase expenses + Eligible improvements − Depreciation adjustments ± Other basis adjustments
  • 3. Capital gain or loss = Adjusted sale proceeds − Adjusted cost basis
  • 4. Estimated gain used for tax = Capital gain/loss + Other gains − Capital losses (current + carryover) − User‑entered exemptions / exclusions
  • 5. Estimated tax = Applicable taxable amounts × user‑entered tax rates

This is an estimate for planning purposes. Always verify with a tax professional.

Frequently Asked Questions

Q: How is capital gains tax calculated?

Capital gains tax is calculated by taking the difference between the sale price and the adjusted cost basis (purchase price plus expenses and improvements minus depreciation), then applying the applicable tax rate(s). This calculator lets you enter your own rates to keep it evergreen.

Q: What is the difference between short-term and long-term capital gains?

Short-term and long-term classifications depend on the applicable tax rules. In this calculator, the holding period is calculated from the purchase and sale dates, and the user sets the threshold (default 365 days). Assets held up to the threshold are treated as short‑term; longer as long‑term. Actual tax rules may differ by country, asset type, or jurisdiction.

Q: How does cost basis affect capital gains tax?

Cost basis is the original value of an asset for tax purposes, adjusted for expenses, improvements, and depreciation. A higher basis reduces the taxable gain, lowering your tax.

Q: Can capital losses reduce capital gains?

Yes, capital losses can offset capital gains, reducing your taxable gain. If losses exceed gains, you may have a net capital loss that can be carried forward to future years under the applicable rules.

Q: Does regional / local tax apply to capital gains?

Capital gains tax treatment varies by country and region. Some jurisdictions tax capital gains separately, while others include them in ordinary taxable income or apply special rates or exemptions. Enter the applicable regional or local tax rate to include it in the estimate.

Q: How are stock gains calculated?

Stock gains are calculated as the sale proceeds minus the cost basis (purchase price plus commissions). This calculator allows you to adjust for purchase and selling expenses.

Q: How are crypto gains calculated?

Crypto gains are calculated the same way as other assets: sale proceeds minus cost basis. Transaction fees can be included as expenses.

Q: How are real estate gains calculated?

Real estate gains are calculated by subtracting the adjusted basis (purchase price plus improvements minus depreciation) from the net sale proceeds after selling expenses. A primary residence may qualify for an exclusion, which you can enter as an exemption.

Q: What is the effective capital gains tax rate?

The effective tax rate is the estimated total tax divided by the taxable capital gain, expressed as a percentage. It shows the overall estimated tax burden relative to the gain.

Loaded shared calculation