Capital Gains Tax Calculator

Calculate gains, tax owed, and net proceeds from selling an investment.

Updated for Tax Year 2026Last Updated: August 6, 2026Calculations based on current IRS guidance and tax-year-specific rules.What changed for 2026?
Tax year

Investment details

$
$
$

Used to find your LTCG bracket.

Tax estimate

Capital gain

$8,000

Federal CG tax

$1,200

NIIT (3.8%)

$0

Net Investment Income Tax

State CG tax

$744

Total tax

$1,944

Net profit after tax

$6,056

Net proceeds

$16,056

After-tax cash from sale

Effective tax on gain: 24.30%

Recommended Tax Filing Software

Once you know what you owe, file with software built for your situation. We compare the top U.S. options below.

Editor's pick

TurboTax

Best overall guided experience

4.7·$0 – $129 federal
  • Step-by-step interview
  • Live expert add-on
  • W-2 + 1099 auto-import
  • Pricier than competitors
File with TurboTax

H&R Block

Best for in-person backup

4.5·$0 – $115 federal
  • Free in-person review
  • Strong refund accuracy guarantee
  • Easy import from prior software
  • State filing adds up
File with H&R Block

TaxAct

Best value for self-employed

4.3·$0 – $99 federal
  • Cheaper than TurboTax/H&R
  • Strong Schedule C tools
  • Price-lock guarantee
  • Fewer guidance tooltips
File with TaxAct

FreeTaxUSA

Best truly-free federal e-file

4.6·$0 federal / $14.99 state
  • Free federal filing for all forms
  • Cheap state filing
  • Supports complex situations
  • Plainer interface
File with FreeTaxUSA

We may earn a commission from links above at no cost to you. See our Affiliate Disclosure.

How this calculator works

For long-term holdings (over one year), we apply the 2026 federal 0%/15%/20% LTCG rates stacked on top of your other taxable income. Short-term gains are taxed at your ordinary marginal rate. We add the 3.8% Net Investment Income Tax (NIIT) when your income exceeds the threshold, and apply your state's investment income rate.

Understanding Capital Gains Tax

Capital gains taxes apply when you sell an investment — stocks, bonds, real estate, crypto, collectibles — for more than you paid. How much you pay depends on how long you held the asset and your total income.

Short-term vs long-term

Hold for one year or less, and gains are short-term, taxed as ordinary income at rates up to 37%. Hold for more than one year, and they qualify as long-term, taxed at preferential rates of 0%, 15%, or 20%. Waiting one extra day can save you 10–20 percentage points.

2026 long-term capital gains brackets

For single filers, gains stack on top of your ordinary taxable income: 0% up to $47,025, 15% up to $518,900, and 20% above. Married joint thresholds are roughly doubled. High earners may also owe the 3.8% Net Investment Income Tax (NIIT) on top.

State capital gains

Most states tax capital gains as ordinary income, with no preferential rate. A few — Washington, for example — have specific capital gains taxes. Nine states have no income tax at all and so don't tax capital gains.

Strategies to reduce capital gains tax

Hold for over a year. Harvest losses to offset gains. Use tax-advantaged accounts like IRAs and 401(k)s where gains aren't taxed until withdrawal. Donate appreciated stock to charity — avoid the gain and get a deduction. Time sales for low-income years to fall in the 0% bracket.

Frequently asked questions

Quick answers about the capital gains tax calculator.

Short-term (held ≤1 year) is taxed at ordinary income rates. Long-term (>1 year) gets preferential 0%/15%/20% rates.

Trusted services for your taxes

Hand-picked tools and pros for capital gains tax.

Ledgerly CPA

On-demand licensed CPAs

4.8

Match with a vetted CPA in your state for filing, planning, and audit support.

  • 50-state coverage
  • Flat-rate pricing
  • Year-round support
From $199Match Me

Affiliate partner · We may earn a commission

Plannora

Fee-only financial planning

4.7

CFP®-led planning across taxes, retirement, and investments — no commissions.

  • CFP® professionals
  • Tax + retirement
  • Fee-only
From $99 / moBook a Call

Affiliate partner · We may earn a commission

Get Tax Tips, Updates, and Financial Insights

One short email a month. No spam. Unsubscribe anytime.

By subscribing you agree to our Privacy Policy. We never sell your data.

Related calculators