Capital Gains Tax Calculator
Estimate your 2024 federal capital gains tax on stocks, real estate, cryptocurrency, collectibles, and other assets. See short-term vs. long-term rates, the 3.8% Net Investment Income Tax (NIIT), your state capital gains tax, and exact net proceeds after all taxes.
Estimate only — not tax advice. This calculator uses 2024 federal capital gains tax brackets and approximate state rates. Actual tax depends on your complete tax situation, deductions, state-specific rules, and applicable exclusions (e.g., the $250K/$500K home sale exclusion). Consult a CPA or tax professional for your specific situation.
What you paid for the asset, including commissions and fees
For real estate, subtract agent commissions and closing costs
Assets held >12 months qualify for lower long-term rates (0%/15%/20%). Short-term gains are taxed as ordinary income.
Your estimated 2024 taxable income before this sale
Capital Gain
$15,000
Long-term gain
Total Tax Owed
$4,245
Federal + NIIT + State
Effective Rate
28.3%
of capital gain
Net Proceeds
$20,755
after all taxes
Tax Breakdown
| Purchase Price (Cost Basis) | $10,000 |
| Selling Price | $25,000 |
| Capital Gain (Long-Term) | $15,000 |
| Federal Tax (15.0% long-term rate) | −$2,250 |
| California State Tax (13.3%) | −$1,995 |
| Net Proceeds After All Taxes | $20,755 |
Important Limitations
- This calculator does not apply the $250,000/$500,000 primary home sale exclusion — subtract your excluded gain from the capital gain manually.
- State rates are approximate top marginal rates; some states have graduated brackets that may result in lower effective rates.
- Qualified Opportunity Zone investments, 1031 exchanges, installment sales, and other tax deferral strategies are not modeled.
- Short-term gains calculated using marginal rate approximation; your actual bracket blending may differ slightly.
- Depreciation recapture (Section 1250) on real estate is taxed at a maximum 25% — this calculator does not apply recapture separately.
- This tool does not constitute tax advice. Consult a licensed CPA or tax attorney for your situation.
How to Use This Capital Gains Tax Calculator
- Asset Type — Select the type of asset sold. Collectibles (art, coins, antiques) are taxed at a maximum 28% federal rate for long-term gains, which is higher than the standard 20% maximum. All other assets use standard long-term rates.
- Purchase Price (Cost Basis) — What you paid for the asset. For stocks, this includes commissions. For real estate, it includes closing costs paid at purchase and improvement costs (not maintenance). For inherited assets, the cost basis is the fair market value on the date of death (stepped-up basis).
- Selling Price — The gross sale proceeds. For real estate, subtract selling costs (agent commission, closing costs) to get your net proceeds, then use that as the selling price for this calculator.
- Holding Period — Assets held more than 12 months qualify for long-term capital gains rates (0%, 15%, or 20% federal), which are substantially lower than short-term rates (ordinary income rates up to 37%).
- Filing Status & Taxable Income — Your other taxable income (excluding this gain) determines which long-term rate bracket applies. Enter your estimated taxable income before this capital gain.
- State — Most states tax capital gains as ordinary income. A few states (Florida, Texas, Nevada, Wyoming, Washington, South Dakota, Alaska) have no income tax. Washington imposes a 7% tax on long-term gains over $262,000 (2024).
2024 Capital Gains Tax Rates
Long-Term Federal Rates (Single Filer)
| Rate | Taxable Income (2024) |
|---|---|
| 0% | Up to $47,025 |
| 15% | $47,026 – $518,900 |
| 20% | Above $518,900 |
Long-Term Federal Rates (Married Filing Jointly)
| Rate | Taxable Income (2024) |
|---|---|
| 0% | Up to $94,050 |
| 15% | $94,051 – $583,750 |
| 20% | Above $583,750 |
Net Investment Income Tax (NIIT)
An additional 3.8% surtax applies to net investment income (including capital gains) for taxpayers whose Modified Adjusted Gross Income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly). This means high earners effectively pay 23.8% on long-term gains instead of 20%. This calculator applies NIIT based on income exceeding the threshold.
Frequently Asked Questions
For 2024, federal long-term capital gains rates are 0%, 15%, or 20% depending on your taxable income and filing status. Single filers pay 0% on income up to $47,025, 15% up to $518,900, and 20% above that. Married filing jointly thresholds are $94,050 (0%), $583,750 (15%), and 20% above. High earners may also owe the 3.8% Net Investment Income Tax (NIIT), bringing the effective top rate to 23.8%. Short-term capital gains (assets held 12 months or less) are taxed as ordinary income at rates from 10% to 37%. Collectibles (art, coins, antiques) are taxed at a maximum 28% for long-term gains.
The holding period — how long you owned the asset before selling — determines whether your gain is short-term or long-term. Assets held for more than 12 months produce long-term capital gains, taxed at preferential rates of 0%, 15%, or 20% federally. Assets held 12 months or less produce short-term capital gains, taxed as ordinary income at your marginal tax rate (up to 37%). The tax savings from holding an asset just one extra day to qualify for long-term treatment can be substantial: a single filer with a $50,000 gain who falls in the 22% ordinary income bracket saves $3,500 in federal taxes by qualifying for the 15% long-term rate instead.
If you've owned and lived in your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of gain from federal tax (single filers) or $500,000 (married filing jointly). This is under IRS Section 121. If your gain exceeds the exclusion, only the excess is taxable. For example, if you're single and made a $400,000 gain on your home, only $150,000 is taxable. You can use this exclusion once every two years. Investment properties and second homes do not qualify for the exclusion, though you can use a 1031 exchange to defer gains on rental property by reinvesting in similar property.
The Net Investment Income Tax is an additional 3.8% surtax on certain investment income for higher-income taxpayers, enacted under the Affordable Care Act. It applies to the lesser of (a) your net investment income (capital gains, dividends, interest, rents, royalties) or (b) the amount by which your Modified Adjusted Gross Income (MAGI) exceeds the threshold — $200,000 for single filers and $250,000 for married filing jointly. So if you're a single filer with $180,000 in wages and $50,000 in capital gains, your MAGI is $230,000 — $30,000 above the threshold. NIIT applies to the lesser of $50,000 (your investment income) or $30,000 (income above threshold), so you'd owe 3.8% × $30,000 = $1,140 in NIIT.
Capital losses offset capital gains dollar-for-dollar in the same tax year. If your total losses exceed your total gains, you can deduct up to $3,000 of net capital losses against ordinary income annually (the limit is $1,500 for married filing separately). Any remaining loss carries forward to future years indefinitely until fully used. For example, if you have $15,000 in capital losses and $8,000 in capital gains in 2024, your net loss is $7,000. You'll use $3,000 to reduce ordinary income in 2024 and carry forward $4,000 to 2025. Short-term losses are first used to offset short-term gains; long-term losses offset long-term gains. Excess losses of one type can then offset the other type.
The IRS treats cryptocurrency as property, not currency, so general capital gains rules apply. Every time you sell, trade, or spend crypto, it's a taxable event — you recognize a capital gain or loss based on the difference between your cost basis (what you paid) and fair market value at the time of the transaction. Mining income and staking rewards are taxed as ordinary income at receipt. Crypto held more than 12 months qualifies for long-term capital gains rates. A crypto-to-crypto trade (e.g., exchanging Bitcoin for Ethereum) is also a taxable event. Receiving crypto as payment for services is ordinary income. Tax-loss harvesting — selling crypto at a loss to offset gains — does not trigger the wash-sale rule (which applies to stocks), so you can buy back immediately. This may change as Congress continues to regulate digital assets.
Related Calculators
Tax Refund Calculator
Estimate your 2024 federal tax refund or amount owed using accurate brackets and credits.
Annuity Calculator
Calculate future value of periodic payments or payout from a lump sum — ordinary & annuity-due.
Retirement Planner
Project your retirement savings and monthly contribution needed.