Capital Gains Tax Calculator

Capital gains tax depends on three things: how long you held the asset (long-term vs short-term), how much you made (the gain), and your total income (which determines your bracket). Long-term gains (held 1+ year) get preferential rates of 0%, 15%, or 20%. Short-term gains are taxed as ordinary income at 10-37%. High earners may also owe the 3.8% Net Investment Income Tax (NIIT). Our calculator handles all 2024 federal brackets for single, married filing jointly, and head of household, plus optional state tax.

star 4.9
auto_awesome AI
New

receipt_longInvestment Details

paymentsTax Breakdown

Net Profit After Tax
$4,208
From $4,950 net gain
Long-term
Federal Tax
$743
Federal Rate
15%
State Tax
$0
NIIT (3.8%)
$0
Total Tax
$743
15% LTCG bracket

tips_and_updates Tips

  • Hold investments for at least 1 year + 1 day to qualify for long-term rates
  • Tax-loss harvesting: offset gains with realized losses to reduce tax
  • 0% LTCG bracket exists for low-to-middle earners — useful for retirees
  • NIIT (3.8%) applies above $200k single / $250k married — plan around it
  • Real estate primary home: $250k single / $500k married exclusion
  • Wash sale rule: can't claim loss if you rebuy same security within 30 days
  • Crypto is taxed like property, not currency — every trade is a taxable event
  • Hold tax-inefficient assets (REITs, bonds) in IRAs to avoid annual tax drag

How to Use This Calculator

1

Enter purchase + sale price

How much you paid and what you sold for.

2

Set holding period in months

12+ months qualifies for long-term rates.

3

Choose filing status + income

Determines which LTCG bracket applies.

4

Add fees and state rate

Optional but improves accuracy.

5

Review tax breakdown

See federal, state, NIIT, and net profit after tax.

The Formula

Long-term gains (1+ year holding) get the lowest tax rates — 0% if you're in low tax brackets, 15% for most taxpayers, 20% for very high earners. Short-term gains (under 1 year) are taxed at your ordinary income rate, which can be much higher. This is why long-term investing is tax-efficient.

Net Gain = (Sale Price − Purchase Price − Fees); Tax = Net Gain × Federal Rate + Net Gain × State Rate + NIIT (if applicable)

lightbulb Variables Explained

  • Net Gain Profit after deducting purchase cost and selling fees
  • Federal Rate 0/15/20% LTCG, or 10-37% ordinary STCG
  • State Rate Varies by state (0% in TX/FL, 13.3% in CA)
  • NIIT 3.8% extra for MAGI over $200k single / $250k married

tips_and_updates Pro Tips

1

Hold investments for at least 1 year + 1 day to qualify for long-term rates

2

Tax-loss harvesting: offset gains with realized losses to reduce tax

3

0% LTCG bracket exists for low-to-middle earners — useful for retirees

4

NIIT (3.8%) applies above $200k single / $250k married — plan around it

5

Real estate primary home: $250k single / $500k married exclusion

6

Wash sale rule: can't claim loss if you rebuy same security within 30 days

7

Crypto is taxed like property, not currency — every trade is a taxable event

8

Hold tax-inefficient assets (REITs, bonds) in IRAs to avoid annual tax drag

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.