Capital Gains Tax Calculator
Calculate federal taxes on investment profits from stocks, real estate, or crypto. Compare short-term vs long-term capital gains rates, see NIIT impact, and get personalized tax-saving strategies for 2024 tax year.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Capital Gains Tax Calculator
Understanding Capital Gains Tax
Capital gains tax is a federal tax on the profit you make when selling an investment or asset for more than you paid. The tax rate depends on how long you held the asset (holding period) and your total taxable income.
Short-Term vs Long-Term Capital Gains
The IRS classifies capital gains into two categories based on how long you owned the asset before selling:
- Short-Term Capital Gains — Assets held for one year or less are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your tax bracket.
- Long-Term Capital Gains — Assets held for more than one year qualify for preferential tax rates of 0%, 15%, or 20%, based on your taxable income and filing status.
2024 Long-Term Capital Gains Tax Rates
| Tax Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $47,025 | Up to $94,050 | Up to $63,000 |
| 15% | $47,026 – $518,900 | $94,051 – $583,750 | $63,001 – $551,350 |
| 20% | Over $518,900 | Over $583,750 | Over $551,350 |
Net Investment Income Tax (NIIT)
High-income taxpayers may also owe an additional 3.8% Net Investment Income Tax (NIIT) on the lesser of their net investment income or the amount by which their modified adjusted gross income (MAGI) exceeds the threshold:
- $200,000 — Single or Head of Household
- $250,000 — Married Filing Jointly
- $125,000 — Married Filing Separately
What Counts as Cost Basis?
Cost basis is the original purchase price of your investment plus certain additional costs:
- Purchase price paid for the asset
- Broker commissions and transaction fees
- Capital improvements (for real estate)
- Closing costs when buying property
- Transfer taxes and recording fees
A higher cost basis reduces your capital gain and lowers your tax liability.
Capital Loss Rules
If you sell an asset for less than your cost basis, you have a capital loss. Capital losses can:
- Offset capital gains dollar-for-dollar
- Deduct up to $3,000 per year against ordinary income ($1,500 if married filing separately)
- Carry forward unused losses to future tax years indefinitely
Tax-Saving Strategies
- Hold assets for over one year to qualify for the lower long-term capital gains rates.
- Tax-loss harvesting — Sell losing investments to offset gains from winners.
- Use tax-advantaged accounts — Invest through 401(k)s, IRAs, or Roth IRAs where gains grow tax-free or tax-deferred.
- Qualified Opportunity Zones — Reinvest large gains into QOZ funds to defer and potentially reduce taxes.
- Charitable giving — Donate appreciated assets to avoid capital gains tax and receive a deduction.
Frequently Asked Questions
Short-term capital gains apply to assets held for one year or less and are taxed at ordinary income tax rates (10%-37%). Long-term capital gains apply to assets held for more than one year and receive preferential rates of 0%, 15%, or 20% depending on your income level. Holding investments longer can save you significantly on taxes.
The NIIT is an additional 3.8% tax on investment income (including capital gains, dividends, interest, and rental income) for individuals with modified adjusted gross income exceeding $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately). It applies to the lesser of your net investment income or the excess of MAGI over the threshold.
Yes. The IRS treats cryptocurrency as property. When you sell, trade, or spend crypto, it triggers a taxable event. The same short-term and long-term capital gains rules apply based on how long you held the crypto before the transaction.
Capital losses first offset capital gains of the same type (short-term losses offset short-term gains, long-term losses offset long-term gains). Remaining losses offset gains of the other type. If losses still exceed gains, you can deduct up to $3,000 per year against ordinary income. Any excess carries forward to future years.
Yes. For 2024, single filers with total taxable income (including the gain) up to $47,025 and married filing jointly up to $94,050 can qualify for the 0% long-term capital gains rate. This only applies to long-term gains — you must have held the asset for more than one year.
Reference this content, page, or tool as:
"Capital Gains Tax Calculator" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: Feb 27, 2026