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

Holding Period

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. Total tax: $4,245. Net proceeds: $20,755.

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

  1. 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.
  2. 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).
  3. 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.
  4. 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%).
  5. 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.
  6. 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)

RateTaxable Income (2024)
0%Up to $47,025
15%$47,026 – $518,900
20%Above $518,900

Long-Term Federal Rates (Married Filing Jointly)

RateTaxable 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

Related Calculators