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.
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.