Short-Term vs Long-Term Capital Gains Tax Calculator

This calculator helps individual investors and financial planners estimate capital gains tax owed on asset sales. It compares short-term and long-term tax rates to show potential savings from holding assets longer than 12 months. Use it when planning to sell stocks, real estate, or other taxable investments to avoid unexpected tax liability.

Short-Term vs Long-Term Capital Gains Tax Calculator

Estimate tax liability and compare savings from holding assets longer

Please enter a valid cost basis (non-negative number)
Please enter a valid sale price (non-negative number)
Please enter a valid selling expense amount (non-negative number)
Please enter a valid holding period (positive number of months)
Please enter a valid tax rate between 0 and 100
Please select a long-term capital gains rate

Tax Calculation Breakdown

Net Proceeds from Sale$0.00
Total Capital Gain/Loss$0.00
Short-Term Tax (if held ≤12 months)$0.00
Long-Term Tax (if held >12 months)$0.00
Potential Tax Savings (Long-Term)$0.00
Applicable Tax (Based on Holding Period)$0.00
Holding Period ClassificationN/A

How to Use This Tool

Follow these steps to get accurate capital gains tax estimates:

  • Gather your asset details: cost basis (purchase price plus improvements), sale price, and any selling expenses like commissions or legal fees.
  • Enter the number of months you held the asset. This determines if your gain is classified as short-term (≤12 months) or long-term (>12 months).
  • Input your marginal ordinary income tax rate (the rate you pay on your top bracket of income) for short-term tax calculations.
  • Select your applicable long-term capital gains tax rate (0%, 15%, or 20%) based on your taxable income and filing status.
  • Click "Calculate Tax" to see a full breakdown of short-term vs long-term tax liability and potential savings.
  • Use the "Reset" button to clear all fields and start a new calculation, or "Copy Results" to save your breakdown.

Formula and Logic

This calculator uses standard IRS capital gains tax rules to compute estimates:

  • Net Proceeds = Sale Price - Selling Expenses
  • Capital Gain/Loss = Net Proceeds - Cost Basis (negative values indicate a capital loss, which may offset other gains)
  • Short-Term Capital Gains Tax = Capital Gain × (Marginal Ordinary Income Tax Rate / 100) (applies to assets held 12 months or less, taxed as ordinary income)
  • Long-Term Capital Gains Tax = Capital Gain × (Long-Term Capital Gains Tax Rate / 100) (applies to assets held more than 12 months, taxed at preferential rates)
  • Potential Tax Savings = Short-Term Tax - Long-Term Tax (positive values indicate savings from holding the asset longer)

Note: This tool does not account for state capital gains taxes, net investment income tax, or complex scenarios like depreciation recapture. Consult a tax professional for official filings.

Practical Notes

Keep these finance-specific tips in mind when using this calculator:

  • Cost basis includes not just the purchase price of the asset, but also expenses like closing costs, home improvements (for real estate), and commissions paid to buy the asset.
  • Long-term capital gains rates are tiered: single filers with taxable income below $44,625 (2024) pay 0%, between $44,626 and $492,300 pay 15%, and above $492,300 pay 20%. Thresholds vary by filing status.
  • Short-term capital gains are taxed at your ordinary income tax rate, which can be as high as 37% for top earners — holding assets for just over a year can cut tax liability by more than half.
  • Capital losses can offset capital gains, and up to $3,000 of excess losses can be deducted against ordinary income each year, with remaining losses carried forward to future years.
  • Some assets have special rules: collectibles (art, coins) are taxed at a maximum 28% long-term rate, and real estate depreciation recapture is taxed at 25% for long-term holdings.

Why This Tool Is Useful

Individual investors and financial planners rely on this calculator to:

  • Plan asset sales in advance to qualify for lower long-term capital gains rates by holding assets past the 12-month threshold.
  • Estimate tax liability before selling investments, real estate, or other assets to avoid unexpected tax bills.
  • Compare the tax impact of selling an asset now (short-term) vs waiting a few months to qualify for long-term rates.
  • Adjust financial plans to account for capital gains taxes, including setting aside funds to cover tax liability.
  • Educate clients or personal finance students on the difference between short-term and long-term capital gains tax treatment.

Frequently Asked Questions

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

Short-term capital gains apply to assets held for 12 months or less, and are taxed at your ordinary income tax rate (the same rate as your wages or salary). Long-term capital gains apply to assets held for more than 12 months, and are taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income and filing status.

How do I find my marginal ordinary income tax rate?

Your marginal tax rate is the rate you pay on your last dollar of income. You can find this by looking at the IRS tax brackets for the current year and matching it to your taxable income and filing status. For example, a single filer with taxable income between $44,626 and $95,375 pays a 22% marginal rate in 2024.

Can I use this calculator for real estate capital gains?

Yes, but note that real estate has additional rules: you may qualify for a capital gains exclusion of up to $250,000 (single) or $500,000 (married filing jointly) on primary residences if you lived in the home for 2 of the last 5 years. This calculator does not account for that exclusion, so adjust your gain amount accordingly before entering values.

Additional Guidance

When planning asset sales, consider these additional factors:

  • Tax-loss harvesting: Sell underperforming assets to realize capital losses that can offset gains from winning investments, reducing your overall tax liability.
  • Timing: If you expect your income to be lower in a future year, consider delaying asset sales to qualify for a lower long-term capital gains rate.
  • State taxes: Many states impose their own capital gains taxes, which can add 0% to 13.3% (California) to your total liability. Check your state's rules to get a full picture of tax owed.
  • Net Investment Income Tax (NIIT): High earners (single filers with modified adjusted gross income over $200,000, married filing jointly over $250,000) may owe an additional 3.8% tax on capital gains.

Always consult a certified public accountant (CPA) or tax professional before making major financial decisions based on these estimates, as tax laws change frequently and individual circumstances vary.