Capital Gains Tax Calculator US

Calculate your federal capital gains tax on stocks, crypto, real estate, and other investments. See short-term vs long-term rates, NIIT surtax, and after-tax profit — all calculated privately in your browser.

Your ordinary income (salary, wages) — used to determine your tax bracket

Investments

Ad Space

How US Capital Gains Tax Works

When you sell an investment for more than you paid, the profit is a capital gain. The IRS taxes capital gains differently based on how long you held the asset. Short-term capital gains apply to assets held for one year or less and are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your total taxable income and filing status. Long-term capital gains apply to assets held for more than one year and receive preferential tax rates of 0%, 15%, or 20%.

The distinction between short-term and long-term holding periods makes a significant difference in your tax bill. An investor in the 32% income bracket who sells stock held for 11 months pays nearly double the tax compared to waiting one more month to qualify for the 15% long-term rate. This is why tax-lot management and harvest timing are critical parts of investment strategy.

2026 Capital Gains Tax Brackets

Long-term capital gains rates for 2026 depend on your taxable income and filing status. Single filers pay 0% on gains if their taxable income is below $47,025, 15% on income between $47,026 and $518,900, and 20% on income above $518,900. For married couples filing jointly, the thresholds are $94,050 for the 0% rate and $583,750 for the 20% rate.

High earners also face the Net Investment Income Tax (NIIT), a 3.8% surtax on investment income. It applies to single filers with modified adjusted gross income above $200,000 and married couples above $250,000. This means the maximum effective rate on long-term gains is 23.8% (20% + 3.8% NIIT), while short-term gains can reach 40.8% (37% + 3.8%).

Capital Gains Tax on Stocks, Crypto and Real Estate

Stocks and ETFs follow standard capital gains rules. Your cost basis is the purchase price plus commissions. If you received shares through a stock split or dividend reinvestment, each lot has its own basis and holding period. Cryptocurrency is treated as property by the IRS — selling, trading, or spending crypto triggers a taxable event with the same short-term and long-term rates as stocks.

Real estate has special considerations. Your primary residence qualifies for a $250,000 exclusion ($500,000 for married couples) if you lived there for at least two of the last five years. Investment properties do not get this exclusion, but you can defer gains through a 1031 like-kind exchange. Depreciation recapture on rental property is taxed at a maximum rate of 25%.

Strategies to Minimize Capital Gains Tax

Tax-loss harvesting lets you offset gains with losses from other investments. You can deduct up to $3,000 in net losses against ordinary income each year and carry forward excess losses indefinitely. Holding investments for at least one year and one day qualifies them for lower long-term rates. Contributing appreciated assets directly to charity avoids capital gains tax entirely while providing a deduction for the full market value.

Using tax-advantaged accounts like 401(k)s, IRAs, and HSAs shelters investment growth from capital gains tax completely. Roth accounts are especially powerful — qualified withdrawals, including all gains, are tax-free. For taxable accounts, managing your income in the year of sale can keep you in a lower bracket. Timing large sales across two tax years or bunching deductions can also reduce your effective rate.