Capital Gains Tax Calculator: Short or Long Term
Use this capital gains tax calculator to estimate tax owed on stocks, real estate, or crypto. Applies federal short- and long-term capital gains rates with optional state add-on, so you see real after-tax profit.
How this calculator works
Capital gain = Sale Price − Cost Basis (purchase price + commissions/fees). Tax owed = Capital Gain × Tax Rate (if gain > 0; losses produce $0 tax).
Short-term capital gains (held 1 year or less) are taxed as ordinary income at your marginal federal rate: 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on taxable income.
Long-term capital gains (held more than 1 year) are taxed at preferential rates:
- 0% — taxable income up to $47,025 (single) / $94,050 (married filing jointly) in 2024
- 15% — taxable income $47,026–$518,900 (single) / $94,051–$583,750 (MFJ) in 2024
- 20% — taxable income above those thresholds
Net Investment Income Tax (NIIT): High earners may owe an additional 3.8% on investment income if modified AGI exceeds $200,000 (single) or $250,000 (MFJ). This calculator does not include NIIT.
Source: IRS Topic No. 409 — Capital Gains and Losses and IRS Revenue Procedure 2023-34 (2024 inflation adjustments for tax brackets).
FAQ
How is capital gains tax calculated?
What is the capital gains tax on sale of property in California?
How can I reduce capital gains tax?
What's the difference between short-term and long-term capital gains tax?
Do I pay capital gains tax on my home sale?
How is capital gains tax calculated on stocks?
What is the difference between realized and unrealized gains?
Browse capital gains tax by state
By state (51)
- Alabama
- Alaska
- Arizona
- Arkansas
- California
- Colorado
- Connecticut
- Delaware
- District of Columbia
- Florida
- Georgia
- Hawaii
- Idaho
- Illinois
- Indiana
- Iowa
- Kansas
- Kentucky
- Louisiana
- Maine
- Maryland
- Massachusetts
- Michigan
- Minnesota
- Mississippi
- Missouri
- Montana
- Nebraska
- Nevada
- New Hampshire
- New Jersey
- New Mexico
- New York
- North Carolina
- North Dakota
- Ohio
- Oklahoma
- Oregon
- Pennsylvania
- Rhode Island
- South Carolina
- South Dakota
- Tennessee
- Texas
- Utah
- Vermont
- Virginia
- Washington
- West Virginia
- Wisconsin
- Wyoming