Investing Tools • Free Financial Tool

Capital Gains Calculator

Selling profitable investments? Calculate your gross capital gain, differentiate between short-term and long-term tax rates, and estimate your net tax bill.

Calculator Inputs

Enter your values, then select Calculate Now

$
$

Estimated Calculation Results

Your result
$0
Interactive Output
Enter your values and select Calculate Now to see your results.
Note: Select Calculate Now to refresh your estimate. Calculations run locally in your browser; your entries are not sent to a server.

fx Formula & Mathematical Methodology

Capital Gain = Selling Price - Purchase Price. For long-term holdings (>1 yr), tax rates are 0%, 15%, or 20% based on income bracket. For short-term holdings (<=1 yr), gains are taxed at ordinary income rates (~12%, 24%, 37%). Net Profit After Tax = Capital Gain - Estimated Tax.

\text{Capital Gain} = \text{Proceeds} - \text{Basis},\quad \text{Tax} = \text{Gain} \times \text{Rate}

Real Numerical Example: $20,000 Capital Gain Held for 2 Years (15% Long-Term Rate)

Scenario Parameters:
Cost Basis: $25,000 | Sale Proceeds: $45,000 | Long-Term | Middle Bracket
Capital Gain: $20,000. Applicable Tax Rate: 15.0%. Estimated Capital Gains Tax: $3,000. Net Profit After Tax: $17,000.

Holding for over 1 year saved an estimated $1,800 to $2,400 in taxes compared to short-term ordinary rates (24%).

How to Use This Capital Gains Calculator

1

Enter the original total cost basis of the shares or property sold.

2

Input the gross proceeds received from the sale.

3

Select whether you held the asset for more than 1 full year (long-term) or 1 year or less (short-term).

4

Select your approximate annual income tax bracket.

5

Review your gross capital gain, estimated tax liability, and net profit.

Key Benefits & Use Cases

  • • Shows the massive financial reward of holding investments for at least 366 days.
  • • Prevents painful surprise tax bills when filing annual returns.
  • • Assists with year-end tax-loss harvesting decisions.

Assumptions & Limitations

  • • Based on standard US federal capital gains tax brackets.
  • • Does not calculate state income taxes or the 3.8% Net Investment Income Tax (NIIT) for high earners.
Frequently Asked Questions

Got Questions About Capital Gains Calculator?

In the United States and many other tax jurisdictions, holding an asset for exactly 1 year or less is short-term; holding for 1 year plus 1 day (or more) qualifies for lower long-term capital gains tax rates.

Yes! Capital losses can offset unlimited capital gains in the same tax year. If losses exceed gains, you can deduct up to $3,000 of excess loss against ordinary income per year in the US.

No. As long as you continue holding your stocks or crypto, your gains are "unrealized" and zero capital gains taxes are owed.

No. Trades made within 401(k)s, IRAs, and Roth accounts are completely exempt from capital gains taxes.

If you sell your primary home and lived in it for at least 2 of the past 5 years, you can exclude up to $250,000 of capital gain (or $500,000 for married couples filing jointly) completely tax-free.

Related Financial Tools

Discover other tools to optimize your wealth strategy

Back to Investing Tools
Financial Calculation Disclaimer: The outputs produced by the Capital Gains Calculator are mathematical estimates based on user-supplied variables and standard financial formulas. This tool does not take into account individual tax obligations, jurisdictional regulations, or personal circumstances, and does not constitute formal financial advisory or underwriting approval. Always confirm final loan terms, investments, and tax impacts with licensed professionals.