Capital Gains Tax Calculator

Calculate short-term & long-term capital gains tax on stocks, real estate, and investments

2024 Tax Rates · Includes NIIT & State Tax
Investment Details
Purchase Price (Cost Basis)
Sale Price
Purchase Date
Sale Date
Filing Status
Annual Taxable Income (excl. capital gains)
State Tax Rate (%)
Include NIIT (3.8%)
Exclude NIIT
Holding Period: Calculating... · Assets held >1 year qualify for lower long-term rates
Tax Analysis
Capital Gain
$0
Short-Term Capital Gain
Tax Breakdown
Tax Brackets Summary
Short-Term vs Long-Term
Assets held ≤1 year taxed as ordinary income. Assets held >1 year get lower rates: 0%, 15%, or 20%
NIIT (3.8%)
Net Investment Income Tax applies to high earners (MAGI > $200k/$250k)
State Capital Gains Tax
Most states tax capital gains as ordinary income. Calculator includes state tax estimate

Capital Gains Tax FAQs

What is the difference between short-term and long-term capital gains?
Short-term capital gains (assets held ≤1 year) are taxed at ordinary income tax rates (10-37%). Long-term capital gains (assets held >1 year) are taxed at preferential rates: 0%, 15%, or 20% depending on your income.
What is the Net Investment Income Tax (NIIT)?
NIIT is an additional 3.8% tax on investment income for high-income taxpayers. It applies if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).
What is cost basis?
Cost basis is the original purchase price of an asset, including commissions and fees. Your capital gain is calculated as sale price minus cost basis.
Do I pay state tax on capital gains?
Most states tax capital gains as ordinary income. Some states like California have high rates, while states like Texas, Florida, and Nevada have no state income tax.
Can I deduct capital losses?
Yes! Capital losses can offset capital gains. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year ($1,500 if married filing separately).
What about real estate capital gains?
For primary residences, you may exclude up to $250,000 ($500,000 married) of capital gains if you've lived in the home for 2 of the last 5 years.
capital gains tax calculator capital gains tax rate 2024 long term capital gains short term capital gains investment tax calculator stock gains tax real estate capital gains NIIT calculator

Capital Gains Tax Calculator - Estimate Your Investment Tax

Our Capital Gains Tax Calculator helps you estimate federal and state taxes on profits from selling investments like stocks, real estate, mutual funds, and other assets. Calculate both short-term and long-term capital gains tax based on your holding period and income.

How it works: Enter your purchase price, sale price, dates, filing status, and other income. The calculator automatically determines if your gain is short-term or long-term, applies the appropriate tax rates, and shows your total tax liability including NIIT and state taxes.

2024 Capital Gains Tax Rates: Long-term rates: 0% for incomes up to $47,025 (single) / $94,050 (married), 15% for incomes up to $518,900 (single) / $583,750 (married), and 20% for higher incomes. Short-term gains taxed at ordinary income rates: 10%, 12%, 22%, 24%, 32%, 35%, or 37%.

Perfect for: Investors selling stocks, cryptocurrency traders, real estate investors, financial planners, and anyone needing to estimate capital gains tax before selling assets.