Short-term vs long-term capital gains
The single biggest factor in your capital gains tax bill is how long you held the asset before selling. Short-term gains (assets held one year or less) are typically taxed as ordinary income, at your regular income tax rate. Long-term gains (held more than one year) usually qualify for lower preferential rates in most tax systems -- often roughly half the rate of ordinary income tax, or less. This is why many investors deliberately wait past the one-year mark before selling a position that's up significantly.
How the calculation works
Capital gain = sale price minus cost basis, where cost basis is what you originally paid plus certain adjustments (reinvested dividends, improvements to real estate, brokerage fees). Enter your purchase price, sale price, and holding period, and the calculator applies the appropriate short- or long-term treatment. For real estate, remember that a primary residence often qualifies for a separate exclusion on a portion of the gain (check your local rules), which this calculator doesn't automatically apply -- factor it in manually if it's relevant.
Frequently asked questions
Can I offset gains with losses? Yes -- in most tax systems, realized losses from other investments can offset realized gains in the same year ("tax-loss harvesting"), and unused losses often carry forward to future years.
Does this apply to cryptocurrency? In most jurisdictions, yes -- crypto is treated as property for tax purposes, so the same short-term/long-term distinction applies to coin sales and trades.
What if I inherit an asset instead of buying it? Inherited assets often get a "stepped-up" cost basis to fair market value at the date of the original owner's death, which can significantly reduce or eliminate the taxable gain if you sell soon after inheriting. Rules vary by country, so confirm with a tax advisor.