Capital Gains Tax Calculator

USA 2025-2026

Capital Gains Tax Calculator USA 2025-2026

Free online calculator to estimate your capital gains tax on stocks, crypto, real estate, and other investments. Calculate short-term and long-term capital gains tax rates accurately.

2025-2026 Tax RatesAll Filing StatusesFree to Use

What is Capital Gains Tax?

Capital gains tax is a federal tax imposed on the profit you earn from selling a capital asset. When you sell stocks, bonds, cryptocurrency, real estate, or other investments for more than you paid for them, the difference between your selling price and purchase price is considered a capital gain and is subject to taxation.

Understanding how capital gains tax works is essential for every investor. The IRS distinguishes between short-term and long-term capital gains, with significantly different tax rates applied to each. Short-term gains (assets held for one year or less) are taxed at your ordinary income tax rate, which can be as high as 37%. Long-term gains (assets held for more than one year) benefit from preferential tax rates of 0%, 15%, or 20%, depending on your taxable income and filing status.

For the 2025-2026 tax year, these rates remain unchanged, but the income thresholds for each bracket have been adjusted for inflation. Whether you're trading stocks, investing in cryptocurrency, or selling real estate, our capital gains tax calculator helps you estimate your tax liability and plan your financial decisions accordingly.

Calculate Your Capital Gains Tax

Enter your investment details below to calculate your estimated capital gains tax for the 2025-2026 tax year.

Investment Details
Enter your purchase and sale information

Excluding this capital gain

Calculation Results
Your estimated capital gains tax

Enter your investment details and click Calculate

Results will appear here

How Capital Gains Tax Works

Capital gains tax is triggered when you sell a capital asset for a profit. The IRS defines capital assets broadly to include stocks, bonds, mutual funds, cryptocurrency, real estate (except your primary residence under certain conditions), collectibles, and other investment property. The tax is calculated on the difference between your adjusted basis (typically what you paid for the asset plus any improvements or fees) and the amount you received when you sold it.

The amount of tax you owe depends on several factors: how long you held the asset, your taxable income, your filing status, and the type of asset. For most assets, the holding period determines whether your gain is taxed at preferential long-term rates or higher short-term rates. Assets held for more than one year qualify for long-term capital gains treatment, with rates of 0%, 15%, or 20% based on your income level.

It's important to understand that capital gains are taxed differently from ordinary income. While wages, salaries, and interest income are taxed at progressive rates up to 37%, long-term capital gains benefit from lower maximum rates. This preferential treatment is designed to encourage long-term investment. However, short-term gains are taxed at the same rates as ordinary income, which can significantly impact your tax liability if you frequently trade investments.

The IRS requires you to report capital gains and losses on your tax return using Form 8949 and Schedule D. You must report each sale, including the purchase date, sale date, proceeds, cost basis, and resulting gain or loss. Proper record-keeping is essential, as the IRS can challenge your calculations if you cannot substantiate your cost basis or holding period.

Short-Term vs Long-Term Capital Gains Tax

Short-Term Capital Gains

  • Assets held for one year or less
  • Taxed at ordinary income tax rates (10%-37%)
  • Applies to frequent traders and day traders
  • No preferential tax treatment

Long-Term Capital Gains

  • Assets held for more than one year
  • Taxed at preferential rates: 0%, 15%, or 20%
  • Rewards patient, long-term investors
  • Significant tax savings potential

The difference between short-term and long-term capital gains treatment can have a substantial impact on your tax liability. For example, if you're in the 35% ordinary income tax bracket, a $10,000 short-term gain would result in $3,500 in taxes. However, if that same gain were long-term, you might pay only 15%, or $1,500 - a savings of $2,000. This is why many financial advisors recommend holding investments for at least one year when possible.

The holding period begins the day after you acquire the asset and ends on the day you sell it. For stocks and securities purchased through a broker, the trade date (not the settlement date) determines when the holding period begins and ends. This distinction is important for timing sales around the one-year mark.

2025-2026 Capital Gains Tax Rates

Long-term capital gains tax brackets by filing status for the 2025-2026 tax year

Single Filers
Tax RateTaxable Income
0%$0 - $48,350
15%$48,351 - $533,400
20%Over $533,400
Married Filing Jointly
Tax RateTaxable Income
0%$0 - $96,700
15%$96,701 - $600,050
20%Over $600,050
Married Filing Separately
Tax RateTaxable Income
0%$0 - $48,350
15%$48,351 - $300,025
20%Over $300,025
Head of Household
Tax RateTaxable Income
0%$0 - $64,750
15%$64,751 - $566,700
20%Over $566,700

Note: These thresholds apply to your total taxable income, not just your capital gains. Your capital gains are added to your ordinary income to determine which bracket applies. An additional 3.8% Net Investment Income Tax may apply if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).

How to Use This Capital Gains Tax Calculator

1

Enter Purchase Details

Input the original purchase price of your asset and the date you acquired it. This establishes your cost basis.

2

Enter Sale Information

Provide the selling price and sale date. The calculator determines your gain or loss and holding period automatically.

3

Select Filing Status

Choose your tax filing status (Single, Married Filing Jointly, etc.) to apply the correct tax brackets.

4

Enter Annual Income

Input your taxable income excluding this capital gain. This helps determine your applicable tax rate.

What the Calculator Shows

  • Your total capital gain or loss
  • Exact holding period in days
  • Classification as short-term or long-term
  • Applicable tax rate based on your income
  • Estimated tax amount owed
  • Net proceeds after tax

Tips to Minimize Your Capital Gains Tax

Legal strategies to reduce your tax liability and keep more of your investment profits

Hold for More Than One Year

The simplest strategy is to hold investments for over 12 months. This qualifies you for preferential long-term capital gains rates, potentially saving you 15-20% compared to short-term rates.

Tax-Loss Harvesting

Sell losing investments to offset gains. You can use capital losses to offset capital gains dollar-for-dollar, plus deduct up to $3,000 against ordinary income annually.

Use Tax-Advantaged Accounts

Invest through 401(k)s, IRAs, and Roth IRAs. These accounts offer tax-deferred or tax-free growth, shielding your gains from immediate capital gains tax.

Primary Residence Exclusion

When selling your home, you may exclude up to $250,000 ($500,000 for married couples) of gains if you lived there for 2 of the last 5 years.

Gift Appreciated Assets

Consider gifting appreciated assets to family members in lower tax brackets, or donating to charity to avoid capital gains tax entirely while claiming a charitable deduction.

Time Your Sales Strategically

Consider timing sales in years when your income is lower. If you're near a threshold, waiting until January could keep you in a lower capital gains tax bracket.

1031 Exchange for Real Estate

Real estate investors can defer capital gains tax by using a 1031 exchange, which allows you to swap one investment property for another similar property. This powerful tool lets you defer taxes indefinitely as long as you continue exchanging properties. Strict rules apply, including 45-day identification and 180-day closing deadlines.

Opportunity Zone Investments

Investing in Qualified Opportunity Zones can provide significant tax benefits. By reinvesting capital gains into these designated areas, you can defer and potentially reduce your tax liability. If held for 10+ years, any appreciation on the opportunity zone investment itself may be tax-free.

Capital Gains Tax for Different Asset Types

How capital gains apply to stocks, cryptocurrency, real estate, and other investments

Stock Capital Gains Tax

Stocks are the most common asset subject to capital gains tax. Every time you sell a stock for a profit, you trigger a taxable event. The cost basis includes your purchase price plus any commissions or fees. Stock splits, dividends, and corporate actions can affect your basis.

  • • Use FIFO (First In, First Out) or specific identification for shares
  • • Dividend reinvestments increase your cost basis
  • • Wash sale rules disallow losses if you repurchase within 30 days
Crypto Capital Gains Tax

The IRS treats cryptocurrency as property, meaning every trade, sale, or purchase using crypto can trigger capital gains tax. Even swapping one cryptocurrency for another is a taxable event. Mining rewards are taxed as ordinary income when received.

  • • Track every transaction, including small purchases
  • • Crypto-to-crypto trades are taxable events
  • • Use crypto tax software for accurate reporting
Real Estate Capital Gains Tax

Primary Residence

When selling your primary residence, you can exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains if you owned and lived in the home for at least 2 of the 5 years before selling.

  • • Improvements increase your cost basis
  • • Can be used once every 2 years
  • • Partial exclusions available for job moves, etc.

Investment Property

Rental and investment properties don't qualify for the primary residence exclusion. However, you can use 1031 exchanges to defer gains. Depreciation taken during ownership is "recaptured" at a 25% rate.

  • • Depreciation recapture taxed at 25%
  • • 1031 exchange defers all capital gains
  • • State taxes may also apply

Frequently Asked Questions About Capital Gains Tax

Answers to common questions about calculating and paying capital gains tax

What is capital gains tax?

Capital gains tax is a federal tax imposed on the profit you make from selling a capital asset such as stocks, bonds, real estate, or cryptocurrency. The tax is calculated on the difference between your purchase price (cost basis) and the selling price. This tax applies only when you actually sell the asset - unrealized gains on investments you still hold are not taxed.

What is the difference between short-term and long-term capital gains tax?

Short-term capital gains (assets held for one year or less) are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your income bracket. Long-term capital gains (assets held more than one year) benefit from preferential rates of 0%, 15%, or 20% based on your taxable income and filing status. This significant difference makes holding period a crucial factor in tax planning.

How do I calculate capital gains tax?

To calculate capital gains tax: First, determine your cost basis (purchase price plus any fees, commissions, or improvements). Next, calculate your gain by subtracting the cost basis from the selling price. Then determine if the gain is short-term or long-term based on your holding period. Finally, apply the appropriate tax rate based on your total taxable income and filing status. Our calculator above handles all these calculations automatically.

What are the capital gains tax rates for 2025-2026?

For 2025-2026, long-term capital gains tax rates are 0%, 15%, and 20%. The 0% rate applies to taxable income up to $48,350 (single) or $96,700 (married filing jointly). The 15% rate applies up to $533,400 (single) or $600,050 (married filing jointly). Above these thresholds, the 20% rate applies. Short-term gains are taxed at ordinary income rates ranging from 10% to 37%.

Do I have to pay capital gains tax on cryptocurrency?

Yes, the IRS treats cryptocurrency as property for tax purposes. When you sell, trade, or use cryptocurrency to purchase goods and services, you may owe capital gains tax on any profit. The same short-term and long-term rules apply based on how long you held the crypto. Even crypto-to-crypto trades (like Bitcoin for Ethereum) are taxable events that must be reported.

How can I reduce my capital gains tax?

Strategies to reduce capital gains tax include: holding assets for more than one year to qualify for lower long-term rates, tax-loss harvesting (selling losing investments to offset gains), using tax-advantaged accounts like 401(k)s and IRAs, gifting appreciated assets to family members in lower tax brackets, donating appreciated assets to charity, utilizing the primary residence exclusion for home sales, and strategic timing of sales in lower-income years.

What is the capital gains tax exemption for home sales?

If you sell your primary residence, you may exclude up to $250,000 of capital gains ($500,000 for married couples filing jointly) from taxation. To qualify, you must have owned and lived in the home for at least 2 of the 5 years before selling. This exclusion can be used once every 2 years. Partial exclusions may be available if you sell before meeting the requirements due to job relocation, health issues, or unforeseen circumstances.

Do I pay capital gains tax if I have losses?

Capital losses can offset capital gains dollar for dollar, reducing your tax liability. If your total losses exceed your gains, you can deduct up to $3,000 ($1,500 if married filing separately) against your ordinary income each year. Any excess losses beyond this annual limit can be carried forward indefinitely to offset future gains. This makes tax-loss harvesting a valuable strategy for tax planning.

When do I need to pay capital gains tax?

Capital gains tax is typically due when you file your annual tax return by April 15th (or the extended deadline if you file an extension). However, if you have significant gains or income not subject to withholding, you may need to make estimated quarterly tax payments to avoid underpayment penalties. The quarterly due dates are typically April 15, June 15, September 15, and January 15 of the following year.

Is there a difference in capital gains tax for stocks vs real estate?

The same capital gains tax rates apply to both stocks and real estate held as investments. However, real estate has special provisions: the primary residence exclusion ($250,000/$500,000) can eliminate taxes on home sale profits, depreciation recapture on investment properties is taxed at a maximum 25% rate, and 1031 exchanges allow deferral of gains on investment property sales. Real estate also offers opportunity zone investment benefits not available for stocks.

Disclaimer

This calculator provides estimates for informational purposes only and should not be considered tax advice. Actual tax liability may vary based on your specific circumstances, including state taxes, the 3.8% Net Investment Income Tax, alternative minimum tax, and other factors. Please consult a qualified tax professional for advice specific to your situation. Tax laws are subject to change, and the information provided is based on current IRS guidelines for the 2025-2026 tax year.