Loan Debt Payoff Savings Overtime Commission Inflation Net Worth Interest Rate Mortgage Profit Salary Paycheck VAT / Tax Interest Markup ROI

Capital Gains Tax Calculator

Use this calculator to estimate capital gains tax on your investments. Enter your purchase price, sale price, holding period, and income bracket to calculate your gain, applicable tax rate, and net profit.

How to Use

1 Enter the original purchase price of your investment.
2 Enter the sale price you received.
3 Specify how many months you held the investment.
4 Select your income bracket to determine the applicable tax rate.
5 View your capital gain, tax owed, and net profit.

Formula

Gain Amount sale_price − purchase_price
Is Long Term holding_period > 12 months
Long-term rates: 0% (low), 15% (medium), 20% (high Long-term rates: 0% (low), 15% (medium), 20% (high)
Short-term rate: taxed as ordinary income (estimat Short-term rate: taxed as ordinary income (estimated 22–37%)
Tax Owed gain_amount × tax_rate
Net Profit gain_amount − tax_owed

Stock Investment Held 18 Months

You bought stock for $10,000 and sold it for $15,000 after 18 months. Since you held it over 12 months, it qualifies as a long-term capital gain. At the medium income bracket (15% rate), your $5,000 gain is taxed at 15%, resulting in $750 tax owed and $4,250 net profit.

Why It Matters

Understanding capital gains tax helps you plan when to sell investments, optimize your tax liability, and make informed decisions about holding periods. Holding investments for more than 12 months can significantly reduce your tax rate.

Who Uses This Calculator?

  • People comparing loan, mortgage, salary, savings, tax, or investment scenarios before making a money decision.
  • Homeowners, borrowers, employees, freelancers, and small business owners who need fast estimates without a spreadsheet.
  • Anyone who wants to understand the inputs, formula, and tradeoffs behind a financial result.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term capital gains (assets held 12 months or less) are taxed as ordinary income at your regular tax rate. Long-term capital gains (assets held more than 12 months) are taxed at preferential rates of 0%, 15%, or 20% depending on your income.
What are the 2024 long-term capital gains tax brackets?
For 2024: 0% rate for taxable income up to $47,025 (single) or $94,050 (married filing jointly); 15% for income up to $518,900 (single) or $583,750 (married); 20% above those thresholds.
Are there any exemptions from capital gains tax?
Yes. The primary residence exclusion allows you to exclude up to $250,000 (single) or $500,000 (married) in capital gains from the sale of your primary home if you meet ownership and residency requirements.
Does this calculator account for the Net Investment Income Tax?
No, this calculator does not include the 3.8% Net Investment Income Tax (NIIT) that applies to higher earners. Consult a tax professional for comprehensive tax planning.

This calculator provides estimates for informational purposes only and is not financial, tax, or legal advice. Consult a qualified professional before making financial decisions.