Skip to main content
Interactive Tools

Capital Gains Tax Calculator

Free capital gains tax calculator: estimate federal and state capital gains tax, including NIIT, for all 50 states in a few seconds.

Capital gains tax is calculated on your profit — sale price minus cost basis. If you held the asset more than one year the gain is long-term, taxed federally at 0%, 15% or 20% depending on taxable income and filing status. Held one year or less, it is short-term and taxed as ordinary income. Modified adjusted gross income above $200,000 single or $250,000 married filing jointly adds the 3.8% Net Investment Income Tax. State tax is applied last; Texas has none.

Gain = Sale price − Cost basis Total tax = (Gain × federal rate) + (Gain × 3.8% NIIT, if applicable) + (Gain × state rate)

The figures below are an estimate for educational purposes. Confirm your own numbers with your CPA or tax advisor before acting.

Estimated total tax

Estimate for educational purposes only, based on the figures below. Confirm your own numbers with your CPA or tax advisor before acting.

Capital Gains Details

Enter your capital gains information to estimate your total tax liability.

Your Capital Gain Breakdown

$0
Total Capital Gain

Your Estimated Tax

Federal Rate Applied
Federal Tax
NIIT (3.8%)
State Tax
Total Estimated Tax
Disclaimer: This calculator provides estimates only. State tax rates shown are approximate top marginal rates and may not reflect your actual state tax liability. Short-term gains are taxed as ordinary income at federal rates. Strategies involve risk, including possible loss of principal, and may not be suitable for all investors. Consult your tax advisor for personalized advice.

Want to Reduce Your Capital Gains Tax?

We specialize in tax-advantaged strategies for accredited investors. Let's talk about your options.

How Capital Gains Tax Is Calculated

Capital gains tax is charged on profit, not on proceeds. The starting point is always the same subtraction: what you sold it for, minus what the tax code says it cost you.

  1. Cost basis. What you paid, plus capital improvements and certain acquisition costs. For property you have depreciated, basis also falls by every dollar of depreciation taken.
  2. Gain. Sale price minus selling costs, minus adjusted basis.
  3. Holding period. Held more than one year, the gain is long-term and taxed federally at 0%, 15% or 20%, set by taxable income and filing status. Held one year or less, it is short-term and taxed as ordinary income at your marginal rate, which is usually much worse.
  4. Net Investment Income Tax. A further 3.8% applies to investment income once modified adjusted gross income passes $200,000 single or $250,000 married filing jointly.
  5. State tax. Applied last, on top of everything above. This is where the arithmetic stops being national and starts depending entirely on where you live.

Every figure this tool produces is an estimate for educational purposes. Confirm your own numbers with your CPA before you sign anything.

Capital Gains Tax by State in 2026

State tax is the single largest variable most people can still influence, and the spread is enormous. The same one million dollar gain carries no state tax at all in seven states and over $133,000 in California.

The rates below are top marginal rates and are the same figures this calculator applies. Several states tax capital gains as ordinary income, so a smaller gain may face a materially lower rate than the table shows. Treat these as the ceiling, not the certainty.

StateTop marginal rate on capital gains
Alabama5.0%
Alaska
Arizona2.5%
Arkansas4.4%
California13.3%
Colorado4.4%
Connecticut6.99%
Delaware6.6%
Florida
Georgia5.49%
Hawaii11.0%
Idaho5.8%
Illinois4.95%
Indiana3.05%
Iowa5.7%
Kansas5.7%
Kentucky4.0%
Louisiana4.25%
Maine7.15%
Maryland5.75%
Massachusetts9.0%
Michigan4.25%
Minnesota9.85%
Mississippi5.0%
Missouri4.8%
Montana6.75%
Nebraska5.84%
Nevada
New Hampshire5.0%
New Jersey10.75%
New Mexico5.9%
New York10.9%
North Carolina4.5%
North Dakota2.5%
Ohio3.5%
Oklahoma4.75%
Oregon9.9%
Pennsylvania3.07%
Rhode Island5.99%
South Carolina6.4%
South Dakota
Tennessee
Texas
Utah4.65%
Vermont8.75%
Virginia5.75%
Washington7.0%
West Virginia5.12%
Wisconsin7.65%
Wyoming

The Seven States With No Capital Gains Tax

Alaska, Florida, Nevada, South Dakota, Tennessee, Texas and Wyoming levy no state tax on capital gains.

For a Texas resident this is not a small footnote. On a one million dollar long-term gain, a California resident in the top bracket faces roughly $133,000 of state tax that a Texan simply does not owe — before a single federal dollar is counted. It is the reason state of residence at the time of sale is worth confirming before a closing date is set, particularly for anyone who has moved recently or splits time between states.

Residency for tax purposes is a question of fact, not preference, and states with high rates scrutinise departures closely. Speak to your CPA before assuming a move changes the answer.

The Highest Capital Gains Tax States

StateTop marginal rate
California13.3%
Hawaii11.0%
New York10.9%
New Jersey10.75%
Oregon9.9%
Minnesota9.85%
Massachusetts9.0%

In these states the combined federal, NIIT and state burden on a long-term gain can exceed 37%. That is the arithmetic that makes deferral strategies worth understanding rather than dismissing.

Long-Term Versus Short-Term: Why One Year Matters

The federal difference between a long-term and a short-term gain is not a rounding error. A long-term gain tops out at 20%. A short-term gain is ordinary income and can reach 37% federally, before NIIT and before state tax.

On a $500,000 gain, crossing the one-year holding period can be worth well over $80,000 in federal tax alone. If a sale is being negotiated near that anniversary, the closing date is a tax decision as much as a commercial one.

The Net Investment Income Tax

The 3.8% NIIT is the most commonly missed line in a capital gains estimate. It is a separate federal surtax, it applies on top of the 0/15/20 rates rather than replacing them, and the thresholds — $200,000 single, $250,000 married filing jointly — are not indexed to inflation, so it reaches further every year.

A large one-off gain frequently pushes an otherwise ordinary earner over the line for a single tax year. This calculator applies it automatically when your entered figures cross the threshold.

What Changes the Outcome

  • 1031 exchange. For investment real estate, a properly completed like-kind exchange can defer the entire gain, including depreciation recapture, into the replacement property’s basis. Deferred, not forgiven.
  • Depreciation recapture. If you have depreciated the asset, part of the gain is taxed at up to 25% rather than the long-term rate, which this calculator’s general estimate does not separate out.
  • Opportunity Zone funds. Reinvesting eligible gain into a qualified fund within 180 days can defer it, with additional treatment for the new investment if held long enough.
  • Installment sale. Spreading proceeds over several tax years can keep a gain out of the top bracket and below the NIIT threshold in any single year.
  • Loss harvesting. Realised capital losses offset realised gains dollar for dollar, and the timing of both is within your control.
  • Step-up in basis. Assets passing to heirs may reset to fair market value at death, which can eliminate built-in gain entirely for them.

These are categories, not recommendations. Which of them applies — if any — depends on the asset, the holding period, your state and your wider tax position.

Frequently Asked Questions

Common Questions

How is capital gains tax calculated?
Long-term capital gains (assets held more than one year) are taxed at federal rates of 0%, 15%, or 20% depending on your taxable income and filing status. Short-term gains are taxed as ordinary income. High earners may also owe the 3.8% Net Investment Income Tax (NIIT), plus any applicable state tax. This calculator estimates all of these based on the figures you enter.
Does Texas have a state capital gains tax?
No. Texas has no state income tax, which means no state tax on capital gains. An investor with the same gain in a high-tax state like California could owe over 13% in additional state tax. This is a meaningful advantage for Texas residents.
What is the Net Investment Income Tax (NIIT)?
The NIIT is a 3.8% federal surtax on net investment income for individuals with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly). It applies on top of ordinary capital gains rates and is a common surprise for higher-income investors.

Stay Informed

Get tax strategies, market insights, and investment updates delivered to your inbox.

By subscribing, you agree to receive email communications from Grace Capital Management. You can unsubscribe at any time. Privacy Policy

Access Your Free Guide

These investments are speculative, illiquid, and involve risk including possible loss of principal; they are available only to verified accredited investors. Distributions are not guaranteed.

By submitting, you agree to be contacted by Grace Capital Management. We do not sell your information; form submissions are processed by our forms provider.