Long Term Capital Gain Calculator

Calculate tax on long-term investment gains

$
$
$
$
Purchase Price: $0.00
Sale Price: $0.00
Capital Gain/Loss: $0.00
Total Taxable Gains: $0.00
Tax Bracket (0%, 15%, 20%): 0%
Capital Gains Tax Owed: $0.00
Effective Tax Rate: 0.00%
Net Proceeds After Tax: $0.00

2024 Long-Term Capital Gains Tax Brackets:

0% Rate: Single: $0-$47,025 | Married: $0-$94,050

15% Rate: Single: $47,025-$518,900 | Married: $94,050-$583,750

20% Rate: Single: $518,900+ | Married: $583,750+

When you sell an investment held for more than one year at a profit, you owe long-term capital gains tax. This tax is typically lower than the tax on ordinary income, making it favorable for long-term investors. Understanding your capital gains tax liability is essential for investment planning and tax optimization.

The Long Term Capital Gain Calculator helps investors determine their exact tax liability using current 2024 tax brackets and their filing status, enabling informed decisions about when to sell investments and how to structure investment strategies.

Long-Term vs. Short-Term Capital Gains

Long-Term Capital Gains: Assets held over one year taxed at preferential rates (0%, 15%, or 20%)

Short-Term Capital Gains: Assets held one year or less taxed as ordinary income (10%-37%)

Long-term gains receive significantly lower tax rates, making the holding period crucial for tax planning.

How to Use the Calculator

Enter your investment’s purchase price and sale price to calculate the capital gain. Select your filing status and include any other long-term gains/losses and ordinary income. The calculator determines your tax bracket and exact tax liability.

2024 Long-Term Capital Gains Tax Brackets

Single Filers:

  • 0% Rate: $0 – $47,025
  • 15% Rate: $47,025 – $518,900
  • 20% Rate: $518,900+

Married Filing Jointly:

  • 0% Rate: $0 – $94,050
  • 15% Rate: $94,050 – $583,750
  • 20% Rate: $583,750+

Head of Household:

  • 0% Rate: $0 – $62,975
  • 15% Rate: $62,975 – $551,350
  • 20% Rate: $551,350+

These brackets adjust annually for inflation.

Practical Example: Single Filer

Maria, a single filer, has $40,000 ordinary income and sells stock with a $30,000 long-term capital gain.

Using the calculator:

  • Purchase Price: $70,000
  • Sale Price: $100,000
  • Capital Gain: $30,000
  • Filing Status: Single
  • Ordinary Income: $40,000
  • Total Income: $70,000

Since $70,000 exceeds the 0% bracket ($47,025) but doesn’t reach the 15% bracket limit ($518,900), part of her gains fall in both brackets:

  • $7,025 gains taxed at 0%
  • $22,975 gains taxed at 15% = $3,446.25
  • Total Tax: $3,446.25
  • Effective Rate: 11.49%

Practical Example: Married Couple

David and Sarah are married filing jointly with $80,000 ordinary income and sell investments with $50,000 long-term capital gain.

Using the calculator:

  • Combined Income: $80,000
  • Capital Gain: $50,000
  • Total Income: $130,000

Since they’re in the 0% bracket ($0-$94,050):

  • $14,050 gains taxed at 0%
  • $35,950 gains taxed at 15% = $5,392.50
  • Total Tax: $5,392.50
  • Effective Rate: 10.79%

The married couple’s lower effective rate results from more favorable bracket thresholds.

Capital Gains Stacking

Capital gains stack on top of ordinary income. If you have high ordinary income, your capital gains might be taxed at higher rates. Conversely, low ordinary income years might allow capital gains to be taxed at 0%.

This creates opportunities for tax planning by timing capital gains realization to lower-income years.

Netting Gains and Losses

You can use capital losses to offset capital gains. If you have capital losses exceeding gains in a year, you can deduct up to $3,000 of losses against ordinary income, with excess losses carried forward indefinitely.

Tax-loss harvesting strategies deliberately realize losses to offset gains and reduce tax liability.

Holding Period Requirements

To qualify for long-term capital gains rates, you must hold the asset:

  • More than 12 months (more than one year)
  • From acquisition to disposition

Selling before the one-year mark disqualifies you for preferential rates, significantly increasing your tax liability.

Net Investment Income Tax

High-income earners (over $200,000 single, $250,000 married) pay an additional 3.8% Net Investment Income Tax (NIIT) on capital gains. This increases effective rates for high earners.

Tax Planning Strategies

Year-End Planning: Realize losses before year-end to offset gains realized earlier.

Charitable Giving: Donate appreciated assets to avoid capital gains tax while receiving charitable deductions.

Timing Gains: Spread large gains across multiple years to stay in lower brackets.

Roth IRA: Hold investments in Roth IRAs to generate tax-free gains.

Spousal Strategies: Married couples can coordinate gains across returns for optimal bracket management.


FAQs (20):

  1. What’s the difference between long and short-term capital gains? Long-term (held 1+ year) receive preferential rates; short-term (held <1 year) are taxed as ordinary income.
  2. What holding period qualifies for long-term rates? More than 12 months from acquisition date to disposition date.
  3. Can I choose which shares to sell? Yes, you can specify specific lot identification to optimize gains/losses.
  4. How do capital losses work? Losses offset gains; excess losses offset up to $3,000 of ordinary income annually.
  5. Can I carry losses forward? Yes, losses exceeding deduction limits carry forward indefinitely.
  6. What’s the capital gains tax rate for high earners? 20% plus potential 3.8% Net Investment Income Tax for incomes over $200,000 (single) or $250,000 (married).
  7. Do state taxes apply to capital gains? Yes, most states tax capital gains. This calculator shows federal tax only.
  8. Are inherited assets taxed on gains? Inherited assets receive a “stepped-up basis” at fair market value at death, avoiding prior gains.
  9. What about collectibles? Collectibles have a maximum 28% long-term capital gains rate.
  10. How do capital gains affect tax brackets for other income? Capital gains stack on top of ordinary income, potentially pushing you into higher brackets.
  11. Can I avoid capital gains by donating stock? Yes, donating appreciated stock provides charitable deductions and avoids capital gains tax.
  12. What if I have losses exceeding gains? Up to $3,000 of losses offset ordinary income; excess carries forward.
  13. Are capital gains included in AGI? Yes, capital gains are included in AGI for determining tax brackets and phase-outs.
  14. What’s tax-loss harvesting? Deliberately realizing losses to offset gains and reduce tax liability.
  15. Can I avoid capital gains by holding forever? Holding indefinitely avoids realization, but assets eventually sell; stepped-up basis at death avoids tax.
  16. How do qualified dividends relate to capital gains? Qualified dividends receive the same preferential tax rates as long-term capital gains.
  17. What if I’m in the 0% bracket? You can realize gains tax-free up to bracket limits.
  18. Are cryptocurrency gains taxed like stocks? Yes, same capital gains treatment applies to cryptocurrencies.
  19. What about wash sales? Selling at a loss then repurchasing within 30 days disallows the loss; watch for this.
  20. Should I consult a tax professional? For complex situations with large gains, professional advice optimizes your tax strategy.

Conclusion

The Long Term Capital Gain Calculator is an essential tool for investors planning asset sales and managing tax liability. By calculating your exact capital gains tax using 2024 brackets and filing status, you can make informed decisions about when to sell investments and how to structure your portfolio for tax efficiency. Whether you’re a beginning investor or experienced portfolio manager, understanding your capital gains tax liability is fundamental to maximizing after-tax returns. Use this calculator to plan your investment strategy and optimize your tax position.