Tax

Capital Gains Tax Calculator

Calculate your 2026 federal capital gains tax on stocks, real estate, and other investments. Includes short-term, long-term rates, and the 3.8% Net Investment Income Tax.

$
$
$
Disclaimer: This calculator provides estimates only and does not constitute tax advice. Consult a qualified tax professional. Actual tax may vary based on state taxes, deductions, credits, and individual circumstances.

About This Tool

The Capital Gains Tax Calculator estimates your 2026 federal tax liability when you sell stocks, bonds, real estate, cryptocurrency, or other capital assets. It distinguishes between short-term gains (taxed at ordinary income rates up to 37%) and long-term gains (taxed at preferential rates of 0%, 15%, or 20%), and includes the 3.8% Net Investment Income Tax where applicable.

When you sell an asset for more than you paid, the difference is a capital gain. The tax treatment depends primarily on how long you held the asset. Assets held for one year or less produce short-term capital gains, which are taxed at your ordinary income tax rates. Assets held for more than one year produce long-term capital gains, which benefit from significantly lower tax rates.

How Short-Term Capital Gains Are Taxed

Short-term capital gains are simply added to your ordinary income and taxed at your marginal rate. For 2026, federal income tax rates range from 10% to 37%. This means if you are already in the 32% bracket from your wages, your short-term gains will be taxed at 32% or higher. This is why financial advisors generally recommend holding investments for at least one year and one day before selling to qualify for the more favorable long-term rates.

How Long-Term Capital Gains Are Taxed

Long-term capital gains receive preferential treatment under the tax code. For 2026, the three rate tiers are 0%, 15%, and 20%. Single filers with taxable income below $48,350 pay 0% on long-term gains. The 15% rate applies to income between $48,350 and $533,400. The 20% rate applies to income above $533,400. Your other ordinary income fills the lower thresholds first, so even high earners may have some gains taxed at lower rates.

The Net Investment Income Tax (NIIT)

High-income taxpayers face an additional 3.8% surtax on net investment income under the Affordable Care Act. This tax applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). The NIIT applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. This can push the effective rate on long-term gains to 23.8% for high earners.

Cost Basis and Record Keeping

Your cost basis is the original purchase price of the asset plus any additional costs like commissions, improvements (for real estate), or reinvested dividends. Accurate cost basis records are essential for calculating your true gain. For stocks purchased after 2011, your broker is required to track and report your cost basis to the IRS. For older investments or real estate, you are responsible for maintaining your own records.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate (10% to 37% for 2026). Long-term capital gains apply to assets held for more than one year and receive preferential tax rates of 0%, 15%, or 20% depending on your taxable income. Holding investments for at least a year and a day can significantly reduce your tax bill.
What is the Net Investment Income Tax (NIIT)?
The NIIT is a 3.8% surtax on investment income (including capital gains, dividends, interest, and rental income) that applies when your modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married filing jointly. The tax is calculated on the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. This tax is in addition to your regular capital gains tax.
How do 2026 long-term capital gains brackets work?
For 2026, single filers pay 0% on long-term gains if total taxable income is below $48,350, 15% on gains in the $48,350 to $533,400 range, and 20% on gains above $533,400. For married filing jointly, the thresholds are $96,700 and $600,050. Your other taxable income fills up the lower brackets first, so the rate on your capital gains depends on your total income picture.
Can capital losses offset capital gains?
Yes. Capital losses can offset capital gains dollar for dollar. If your losses exceed your gains, you can deduct up to $3,000 of net capital losses against ordinary income per year ($1,500 if married filing separately). Any remaining losses carry forward to future tax years indefinitely. Short-term losses offset short-term gains first, then long-term gains, and vice versa.
Are there ways to legally reduce capital gains tax?
Several strategies can reduce capital gains tax. Tax-loss harvesting allows you to sell losing investments to offset gains. Holding investments longer than one year qualifies for lower long-term rates. Contributing appreciated assets to charity avoids capital gains entirely. The primary residence exclusion lets you exclude up to $250,000 ($500,000 married) of gains on your home sale. Opportunity Zone investments can defer and reduce gains, and qualified small business stock (QSBS) may exclude up to $10 million in gains.