Free Online Tool

Inflation Calculator — Future Value of Money

See how inflation erodes purchasing power and find the future value of today’s money.

Capital Gains Tax Calculator

$
$
$
$

The Capital Gains Tax Calculator estimates the tax you owe when you sell an investment — stocks, real estate, crypto, or other capital assets — for more than you paid. The key factor is your holding period: assets held over one year qualify for lower long-term rates, while assets sold within a year are taxed at higher short-term rates (your ordinary income rate).

This distinction can mean a difference of 10–20 percentage points in tax rate on the same gain. For investors, understanding and planning around the one-year holding period is one of the simplest ways to legally reduce taxes.

How This Calculator Works

Capital gains tax is calculated in three steps:

  1. Determine your gain = Sale price − Purchase price − Selling costs (commissions, fees)
  2. Classify by holding period:
    • Short-term (held ≤ 1 year): taxed at ordinary income rates (10%–37%)
    • Long-term (held > 1 year): taxed at preferential rates (0%, 15%, or 20%)
  3. Apply the bracket based on your taxable income and filing status

For 2024, long-term capital gains brackets (single filer):

  • 0% on income up to $47,025
  • 15% on income $47,026–$518,900
  • 20% on income above $518,900

High earners may also owe an additional 3.8% Net Investment Income Tax (NIIT) on investment income above $200,000 (single) or $250,000 (married).

When to Use This Calculator

Use this calculator when you are:

  • Selling stocks, ETFs, or mutual funds and want to estimate the tax bill
  • Deciding whether to sell now (short-term) or wait until after one year (long-term)
  • Planning a real estate sale that is not covered by the primary residence exclusion
  • Calculating tax on crypto gains (taxed the same as other capital assets)
  • Harvesting tax losses to offset gains before year-end

Example Calculation

You bought 100 shares at $50 ($5,000 total) and sell them 14 months later at $80 ($8,000 total), with $50 in commissions. Your taxable income (excluding this gain) is $85,000, single filer.

  • Gain: ($8,000 − $50) − $5,000 = $2,950
  • Holding period: 14 months → Long-term
  • Your income + gain = $87,950 → falls in 15% long-term bracket
  • Tax: $2,950 × 15% = $442.50

Had you sold at 11 months (short-term), the gain would be taxed at your 22% marginal rate = $649. Waiting 3 months saved you $206.

FAQ

Frequently Asked Questions

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

Short-term gains (assets held one year or less) are taxed at your ordinary income rate — the same as wages, ranging from 10% to 37%. Long-term gains (held more than one year) are taxed at preferential rates of 0%, 15%, or 20%, depending on income. This creates a strong incentive to hold investments for over a year.

What is the 0% long-term capital gains bracket?

If your taxable income (including the gain) falls below $47,025 for single filers or $94,050 for married filing jointly in 2024, your long-term capital gains are taxed at 0%. Retirees and low-income earners can sometimes realize gains tax-free. Strategic realization in low-income years is a powerful tax planning tool.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on investment income (including capital gains, dividends, interest, and rental income) for taxpayers with modified AGI above $200,000 (single) or $250,000 (married filing jointly). It effectively raises the top long-term capital gains rate from 20% to 23.8%.

How does tax-loss harvesting work?

You can use capital losses to offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year and carry forward the rest indefinitely. This is called tax-loss harvesting and is a key year-end strategy. Many investors deliberately realize losses in December to offset gains.

What is the wash-sale rule?

If you sell a security at a loss and buy the same or a "substantially identical" security within 30 days before or after the sale, the loss is disallowed (washed). The disallowed loss is added to the cost basis of the replacement security. This prevents investors from claiming a tax loss while maintaining essentially the same position.

Does the primary home sale exclusion apply?

If you sell your primary residence and meet ownership/use tests (owned and lived in it for 2 of the last 5 years), up to $250,000 of gain ($500,000 married filing jointly) is excluded. This calculator does not account for that exclusion — use it for investment property, second homes, or non-qualifying primary residence sales.

Related Calculators

Related Guides

Tax Calculators

Tax Planning for Investors: Keep More of Your Returns

Tax-loss harvesting, asset location, wash-sale rules — advanced but accessible strategies to legally minimize investment taxes.

12 min read
Tax Calculators

Capital Gains Tax Explained: Short-Term vs Long-Term

Selling an investment? The holding period determines your tax rate. Here’s how short-term and long-term capital gains taxes actually work.

11 min read
Tax Calculators

12 Tax Deductions You Might Be Missing

The standard deduction is easy, but itemizing could save thousands. Here are twelve overlooked deductions from home offices to HSA contributions.

10 min read
Important Disclaimer:

This inflation calculator is provided for informational and educational purposes only and does not constitute financial, tax, legal or investment advice. Results are estimates based on the inputs you provide and standard formulas; actual figures may vary due to rounding, jurisdiction-specific rules, fees, or changing market conditions. Always consult a licensed financial advisor, tax professional, or legal counsel before making decisions based on these calculations. See our full Disclaimer.

R
Rachel Hammond
CFP® — Certified Financial Planner

Rachel is a Certified Financial Planner with over 14 years of experience guiding individuals and families through tax planning, retirement strategy and investment management. She holds a degree in Economics from the University of Michigan and has been quoted in Forbes, CNBC and The Wall Street Journal.

CFP® Certified 14+ years experience Quoted in Forbes & CNBC