Investment Tax Tool

Capital Gains Tax Calculator

Calculate 2026 federal and state capital gains taxes on investments, real estate, and other assets. See short-term vs long-term rates and NIIT impact.

Reviewed by Slava Akulov, CEO & Co-Founder at Jupid · Last updated: September 2026

Sale Details

What you originally paid

Renovations, additions — added to your basis

Agent commissions, closing costs, title & transfer fees

Tax Estimate

Total Tax

$60,400

30.2% effective rate

Capital Gain

$200,000

Long-term

See the tax write-offs you're missing

Jupid tracks your investment and business taxes year-round — no April surprises.

Get a free report

Tax Breakdown

Sale Price$500,000
Cost Basis-$300,000
Capital Gain$200,000
Federal Long-term Tax-$30,000
NIIT (3.8%)-$3,800
California State Tax-$26,600
Net Cash to You$439,600

Sale price minus selling costs and all taxes (before any mortgage payoff).

Federal Tax

$33,800

State Tax

$26,600

Effective Rate

30.2%

California Capital Gains:

California taxes capital gains as ordinary income at rates up to 13.3%: the 12.3% top bracket plus the 1% Behavioral Health Services Tax on taxable income over $1 million. This calculator applies the 13.3% top rate to the whole gain, so it overstates the tax for most filers. California has not published its 2026 brackets yet; the top rates do not change with indexing.

Net Investment Income Tax Applied

Your income exceeds $200,000, triggering the 3.8% NIIT on investment income.

2026 Federal Long-Term Capital Gains Rates

0% Rate

$0 - $49,450

Single filers

$0 - $98,900 married joint

15% Rate

$49,451 - $545,500

Single filers

$98,901 - $613,700 married joint

20% Rate

Over $545,500

Single filers

Over $613,700 married joint

+3.8% NIIT for high earners. Short-term gains taxed at ordinary income rates (10-37%).

State Capital Gains Tax Rates

Compare capital gains tax rates across top states

AL

Alabama

Up to 5%

Calculate

AK

Alaska

No state tax

Calculate

AZ

Arizona

Up to 2.5%

Calculate

AR

Arkansas

Up to 3.7%

Calculate

CA

California

Up to 13.3%

Calculate

CO

Colorado

Up to 4.4%

Calculate

CT

Connecticut

Up to 6.99%

Calculate

DE

Delaware

Up to 6.6%

Calculate

DC

District of Columbia

Up to 10.75%

Calculate

FL

Florida

No state tax

Calculate

GA

Georgia

Up to 4.99%

Calculate

HI

Hawaii

Up to 7.25%

Calculate

ID

Idaho

Up to 5.3%

Calculate

IL

Illinois

Up to 4.95%

Calculate

IN

Indiana

Up to 2.95%

Calculate

IA

Iowa

Up to 3.8%

Calculate

KS

Kansas

Up to 5.58%

Calculate

KY

Kentucky

Up to 3.5%

Calculate

LA

Louisiana

Up to 3%

Calculate

ME

Maine

Up to 7.15%

Calculate

MD

Maryland

Up to 6.5%

Calculate

MA

Massachusetts

Up to 9%

Calculate

MI

Michigan

Up to 4.25%

Calculate

MN

Minnesota

Up to 9.85%

Calculate

MS

Mississippi

Up to 4%

Calculate

MO

Missouri

No state tax

Calculate

MT

Montana

Up to 4.1%

Calculate

NE

Nebraska

Up to 4.55%

Calculate

NV

Nevada

No state tax

Calculate

NH

New Hampshire

No state tax

Calculate

NJ

New Jersey

Up to 10.75%

Calculate

NM

New Mexico

Up to 5.9%

Calculate

NY

New York

Up to 10.9%

Calculate

NC

North Carolina

Up to 3.99%

Calculate

ND

North Dakota

Up to 2.5%

Calculate

OH

Ohio

Up to 2.75%

Calculate

OK

Oklahoma

Up to 4.5%

Calculate

OR

Oregon

Up to 9.9%

Calculate

PA

Pennsylvania

Up to 3.07%

Calculate

RI

Rhode Island

Up to 5.99%

Calculate

SC

South Carolina

Up to 5.21%

Calculate

SD

South Dakota

No state tax

Calculate

TN

Tennessee

No state tax

Calculate

TX

Texas

No state tax

Calculate

UT

Utah

Up to 4.45%

Calculate

VT

Vermont

Up to 8.75%

Calculate

VA

Virginia

Up to 5.75%

Calculate

WA

Washington

Up to 9.9%

Calculate

WV

West Virginia

Up to 4.58%

Calculate

WI

Wisconsin

Up to 7.65%

Calculate

WY

Wyoming

No state tax

Calculate

Frequently Asked Questions

2026 Long-Term Capital Gains Tax Brackets

Long-term capital gains (assets held more than 12 months) receive preferential tax rates under IRC Section 1(h). For the 2026 tax year, the three rate tiers are 0%, 15%, and 20%, determined by your total taxable income (not just the gain):

RateSingleMarried Filing JointlyHead of Household
0%$0 - $49,450$0 - $98,900$0 - $66,200
15%$49,451 - $545,500$98,901 - $613,700$66,201 - $579,600
20%Over $545,500Over $613,700Over $579,600

Short-term capital gains (assets held 1 year or less) are taxed at ordinary income rates of 10% to 37%. This means a short-term gain on a $100,000 stock sale could cost $37,000 in federal tax at the top bracket, compared to $20,000 maximum for a long-term gain. Holding an asset for just one extra day past the 12-month mark can save thousands.

Collectibles such as art, antiques, coins, and precious metals are taxed at a maximum rate of 28% regardless of holding period, under IRC Section 1(h)(4). Section 1250 unrecaptured gain on real estate depreciation is taxed at a maximum of 25%.

Net Investment Income Tax (NIIT) and How It Adds 3.8%

The Net Investment Income Tax under IRC Section 1411 imposes an additional 3.8% tax on the lesser of net investment income or the amount by which MAGI exceeds the threshold. The NIIT thresholds are not indexed for inflation and have remained fixed since 2013:

Filing StatusMAGI ThresholdEffective Max Rate (LTCG + NIIT)
Single$200,00023.8%
Married Filing Jointly$250,00023.8%
Married Filing Separately$125,00023.8%
Head of Household$200,00023.8%

Net investment income includes capital gains, dividends, interest, rental income, royalties, and passive business income. It does not include wages, self-employment income, Social Security, or distributions from qualified retirement plans. For a single filer with $250,000 in MAGI and $80,000 in capital gains, the NIIT applies to the lesser of $80,000 (investment income) or $50,000 ($250,000 - $200,000 threshold) = $50,000 x 3.8% = $1,900 additional tax.

Cost Basis Methods and the Wash Sale Rule

Your cost basis is the original purchase price plus any adjustments (commissions, fees, reinvested dividends). The IRS allows several methods for determining which shares you sold:

  • FIFO (First In, First Out): Default method. Oldest shares are deemed sold first, often resulting in the largest gain (and highest tax).
  • Specific identification: You choose exactly which lots to sell, allowing you to sell high-basis shares first to minimize gain.
  • Average cost: Available only for mutual fund shares and certain dividend reinvestment plans. Averages the cost of all shares owned.

The wash sale rule under IRC Section 1091 disallows a capital loss if you purchase a substantially identical security within 30 days before or after the sale. The disallowed loss is added to the cost basis of the replacement shares. This rule applies across all your accounts (brokerage, IRA, spouse accounts). It does not apply to gains -- only losses.

Section 1031 like-kind exchanges allow deferral of capital gains on real property (but not stocks or personal property since 2018). The replacement property must be identified within 45 days and closed within 180 days. Section 1202 QSBS allows up to 100% exclusion of gain (up to $10 million or 10x basis) on qualified small business stock held for at least 5 years.

Official References

Learn more about capital gains taxes:

This calculator provides estimates. Tax situations vary and you should consult a tax professional for advice on your specific situation.

Your AI accountant

Let Jupid handle the books and taxes for you

  • Transactions categorized and books kept clean — automatically
  • Write-offs and deductions found year-round, not just in April
  • Quarterly tax estimates and reminders, so nothing surprises you

Set up in minutes. Cancel anytime.

Track Investment Gains Automatically

Jupid AI Accountant helps you track investment income, calculate gains, and stay on top of your tax obligations.