Capital Gains Tax Calculator — 2024 Short & Long-Term Rates
Calculate federal capital gains tax on stocks, real estate, crypto, and other assets. See short-term vs long-term rates, NIIT surcharge, and estimated tax owed for 2024.
Taxing business net income, not an asset sale?
This page estimates tax on capital gains from selling investments or property. For C-corp, S-corp, and LLC corporate income tax, use the Corporate Tax Calculator →
What is Capital Gains Tax?
Capital gains tax applies to profit when you sell an asset for more than your cost basis — stocks, ETFs, real estate, crypto, collectibles, and business interests. Short-term gains (held ≤1 year) are taxed as ordinary income; long-term gains (held >1 year) qualify for preferential 0%, 15%, or 20% federal rates.
Use this page when estimating tax on a specific sale: enter purchase price, sale price, holding period, filing status, and taxable income to see short- vs long-term treatment and optional 3.8% Net Investment Income Tax (NIIT) above income thresholds.
Corporate tax is different — it taxes a C-corporation’s annual net business income at a flat 21% federal rate, with pass-through options for S-corps and LLCs. For entity-level business income tax, use the Corporate Tax Calculator.
How the Capital Gains Tax Calculator Works
Formula, assumptions, and calculation steps for this tax tool.
Formula Used
Tax = (Sale Price - Cost Basis) x Capital Gains Rate, short or long term
Methodology
Subtracts the original cost basis from the sale price to find the gain, then applies the short or long-term rate based on holding period.
Calculation Steps
- Enter taxable amounts and any deductions or allowances.
- Apply the relevant brackets, rates, or tax percentage.
- Calculate gross tax, credits, or net amount where supported.
- Show totals for planning and comparison.
Assumptions and Limits
- Tax rules change by jurisdiction and year.
- Local surcharges, credits, and filing status details may not be exhaustive.
- Consult a tax professional for filing decisions.
Frequently Asked Questions
Short-term capital gains (assets held 1 year or less) are taxed as ordinary income at your regular tax bracket rate (up to 37%). Long-term capital gains (assets held more than 1 year) are taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income. Holding an asset for at least one year and one day can significantly reduce your tax burden.
Yes. The IRS treats cryptocurrency as property, not currency. Buying and selling crypto triggers capital gains tax. Short-term crypto gains (held under 1 year) are taxed as ordinary income. Long-term crypto gains (held over 1 year) get preferential 0%, 15%, or 20% rates. Mining, staking rewards, and crypto received as payment are taxed as ordinary income.
High-income taxpayers may owe an additional 3.8% Net Investment Income Tax on capital gains. For 2024, this applies to single filers with income above $200,000 and married filing jointly above $250,000. This means some taxpayers effectively pay 23.8% on long-term gains instead of 20%.
Yes. Capital losses offset capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 of net capital losses against ordinary income per year. Additional losses carry forward to future tax years indefinitely. This strategy is called tax-loss harvesting and is commonly used in portfolio management.
Real-World Applications
Common Mistakes
2024 US Capital Gains Tax Rates by Filing Status
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | ≤ $47,025 | ≤ $94,050 | ≤ $63,000 |
| 15% | $47,026–$518,900 | $94,051–$583,750 | $63,001–$551,350 |
| 20% | > $518,900 | > $583,750 | > $551,350 |
| 23.8% (+ NIIT) | > $200,000 (single) | > $250,000 (MFJ) | Varies |
References
- Internal Revenue Service. Topic No. 409 — Capital Gains and Losses. irs.gov.
- Internal Revenue Service. Publication 550 — Investment Income and Expenses. irs.gov.
- Tax Policy Center. Taxation of Capital Gains. taxpolicycenter.org.
- Brealey, R. A., Myers, S. C. & Allen, F. Principles of Corporate Finance, 13th ed. McGraw-Hill, 2020.
- Pomerleau, K. A Primer on Capital Gains Taxes. Tax Foundation, 2019.
Related Calculators
Browse all Tax calculators →Income Tax Calculator
Estimate your income tax liability based on taxable income and filing status.
Estate Tax Calculator
Calculate federal and state estate tax on the value of a deceased person's taxable estate.
Investment Return Calculator
Calculate total return, CAGR, and inflation-adjusted return on any investment.