Skip to main content

Capital Gains Tax Calculator

Estimate your capital gains tax on stocks, real estate, or other investments based on holding period and income level.

Advertisement
$

Original purchase price of the investment.

$

Price at which you sold or plan to sell the investment.

How long you held the investment. Long-term gains are taxed at lower rates.

$

Your total annual income (used to determine tax bracket).

Your federal tax filing status.

AI Financial Assistant

Beta

Ask questions about your calculation results

I can help you understand your results and explore your options. Try asking:

3 free questions per session

AI provides general information, not financial advice. Always consult a qualified professional.

About This Calculator

Calculate the tax you'll owe when selling investments, real estate, or other assets at a profit, distinguishing between short-term gains taxed as ordinary income and long-term gains taxed at preferential rates. Holding an asset for more than one year before selling can dramatically reduce your tax bill. This calculator helps you time asset sales strategically to minimize your capital gains liability.

Quick Tips

  • 1 Hold investments at least one year to qualify for the lower long-term gains rate.
  • 2 Harvest tax losses by selling losers to offset gains and reduce your tax bill.
  • 3 Use the $250K primary residence exclusion by living in your home for 2 of 5 years.

Example Calculation

Scenario

An investor sells stock for $85,000, purchased for $42,000 three years ago, with $90,000 ordinary income.

Result

Capital gain: $43,000 | Long-term rate: 15% | Tax: $6,450 | Net proceeds: $78,550

Short-Term vs Long-Term Capital Gains

The tax treatment of capital gains depends entirely on how long you held the asset before selling. Short-term capital gains, from assets held less than one year, are taxed as ordinary income at your marginal tax rate, which can be as high as 37%. Long-term capital gains, from assets held one year or more, receive preferential tax rates of 0%, 15%, or 20% depending on your taxable income. This significant rate difference makes holding period a critical factor in investment tax planning.

2024 Capital Gains Tax Rates and Brackets

For the 2024 tax year, long-term capital gains rates are structured in three tiers. Single filers pay 0% on gains if their taxable income is below $47,025, 15% for income between $47,025 and $518,900, and 20% for income above $518,900. Married filing jointly thresholds are $94,050 and $583,750 respectively. Additionally, high earners may owe a 3.8% Net Investment Income Tax (NIIT) on top of these rates if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (joint).

Strategies to Minimize Capital Gains Tax

Several legitimate strategies can reduce your capital gains tax liability. Tax-loss harvesting involves selling losing investments to offset gains, reducing your net taxable gain. Holding investments for at least one year qualifies you for the lower long-term rates. Contributing to tax-advantaged accounts like 401(k)s and IRAs shields investment growth from taxes entirely. Charitable giving of appreciated stock allows you to avoid capital gains tax while receiving a fair market value deduction.

Capital Gains Tax on Real Estate

When you sell a primary residence, you may exclude up to $250,000 in capital gains from taxes if you are single, or $500,000 if married filing jointly, provided you lived in the home for at least two of the last five years. Gains exceeding these exclusions are taxed at capital gains rates. Investment properties do not qualify for this exclusion, but a 1031 exchange allows you to defer capital gains taxes by reinvesting proceeds into a like-kind property within strict timeframes.

Frequently Asked Questions