Free Tax Calculator

Capital Gains Tax Calculator

Calculate your federal capital gains tax on stocks, real estate, cryptocurrency, and other investments. Free, instant, and accurate for the 2025-2026 tax year.

100% Free
2025-2026 Rates
Short-Term and Long-Term
Capital Gains Tax Calculator
Calculate your 2025-2026 capital gains tax liability

Purchase Information

Sale Information

Tax Filing Information

Your income from other sources (excluding this gain)

How to Calculate Your Capital Gains Tax

Calculating your capital gains tax is straightforward with our calculator. Here is a quick overview of the process and what you need to know.

Short-Term Capital Gains

  • 1. Held for 1 year or less
  • 2. Taxed at ordinary income rates (10%-37%)
  • 3. No preferential tax treatment
  • 4. Plus 3.8% NIIT for high earners

Long-Term Capital Gains

  • 1. Held for more than 1 year
  • 2. Taxed at preferential rates (0%, 15%, 20%)
  • 3. Significant tax savings
  • 4. Plus 3.8% NIIT for high earners

Your capital gains tax is calculated by subtracting your cost basis (purchase price plus fees and improvements) from your net sale proceeds (sale price minus selling expenses). The resulting gain is then classified as either short-term or long-term based on your holding period. The calculator applies the appropriate tax rate based on your filing status and total taxable income. For detailed step-by-step instructions, see our comprehensive guide on how to calculate capital gains tax.

For asset-specific calculators and strategies, explore our specialized tools: the stock capital gains calculator for equity investors, the real estate capital gains calculator for property transactions, and the day trading tax calculator for active traders.

How to Use This Capital Gains Tax Calculator

Follow these simple steps to get an accurate estimate of your capital gains tax liability. The entire process takes less than two minutes.

1

Enter Your Purchase Price

Input the original amount you paid for the asset. For stocks, this is the price per share multiplied by the number of shares, plus any brokerage commissions or fees. For real estate, this is the purchase price shown on your closing statement. This figure represents your starting cost basis before adjustments. If you are uncertain of the exact purchase price, check your brokerage statements, tax records, or closing documents for the most accurate figure.

2

Enter Your Sale Price

Input the amount you received (or expect to receive) when selling the asset. For stocks, this is the price per share multiplied by the number of shares minus any selling commissions. For real estate, this is the gross sale price. The calculator will compute the difference between your sale price and purchase price to determine your capital gain or loss. If the result is negative, you have a capital loss, which may be used to offset other gains.

3

Select Your Purchase and Sale Dates

Choose the approximate dates you acquired and sold the asset. The calculator uses these dates to determine your holding period, which is the single most important factor in your tax rate. If you held the asset for one year or less, the gain is classified as short-term and taxed at ordinary income rates. If you held the asset for more than one year, it qualifies for the lower long-term capital gains rates. Even a difference of a few days can save you thousands of dollars in tax.

4

Choose Your Filing Status and Income

Select your tax filing status (single, married filing jointly, married filing separately, or head of household) and enter your approximate annual taxable income. Your filing status and income level determine which tax bracket applies to your capital gains. Higher-income taxpayers are subject to higher rates and may also owe the 3.8% Net Investment Income Tax. Selecting the correct filing status ensures the calculator applies the most accurate rate to your situation.

5

Review Your Results and Compare Scenarios

After clicking calculate, review your estimated federal tax liability, effective tax rate, and after-tax profit. The results will clearly show whether your gain is short-term or long-term and which rate was applied. Try adjusting the sale date by a few weeks to see the impact of the holding period on your tax bill. You can also compare different income levels or filing statuses to understand how changes in your financial situation might affect your capital gains tax. This side-by-side comparison capability is one of the most powerful features of our calculator.

Understanding Your Results

Knowing how to interpret your capital gains tax estimate helps you make better financial decisions and plan more effectively for tax season.

Capital Gain Amount

This is the profit you realized from the sale, calculated as the sale price minus the purchase price. A positive number indicates a gain, while a negative number indicates a loss. Capital gains can be reduced by selling expenses, improvements (for real estate), and other adjustments to your cost basis. The gain amount is the starting point for determining your tax liability.

Applicable Tax Rate

The tax rate applied to your gain depends on your holding period, filing status, and taxable income. Short-term gains use ordinary income brackets (10% to 37%), while long-term gains use preferential brackets (0%, 15%, 20%). The rate shown is the marginal rate applied to your capital gain, which may differ from your overall effective tax rate if the gain spans multiple brackets.

Estimated Tax Liability

This is the estimated amount of federal tax you owe on this capital gain. It includes the applicable capital gains tax rate plus the 3.8% Net Investment Income Tax if your income exceeds the threshold. This is an estimate based on the information you provided and current IRS tax brackets. Your actual tax may differ due to other factors in your tax return, such as capital losses, deductions, or credits.

Net After-Tax Profit

This is the amount you keep after paying capital gains tax. It represents the actual financial benefit of the sale. Comparing this figure across different scenarios (different sale dates, holding periods, or income levels) helps you make informed decisions about when and whether to sell an asset. A higher after-tax profit means more money in your pocket to reinvest or use for other financial goals.

Important Limitations to Keep in Mind

This calculator provides estimates based on federal tax rates only and does not account for state income taxes, which vary from 0% to over 13% depending on where you live. It also does not factor in capital losses you may have from other investments, which could reduce or eliminate your tax liability. Special situations such as depreciation recapture on real estate, the primary residence exclusion (Section 121), installment sales, and like-kind exchanges (1031) are not captured by the calculator. For these scenarios, use our specialized calculators or consult a qualified tax professional.

The calculator uses the IRS tax brackets for the 2025-2026 tax year. While these rates are current as of the latest available information, tax laws can change. Future legislation could modify tax rates, brackets, or the treatment of capital gains. Always verify current rates with the IRS or a tax advisor before making financial decisions based on these estimates.

Capital Gains Tax by Asset Type

Capital gains tax applies differently depending on the type of asset you sell. Below is guidance for the most common investment types.

Stocks, Bonds, and Mutual Funds

Capital gains on stocks, bonds, ETFs, and mutual funds are the most straightforward to calculate. Your cost basis is the purchase price plus any commissions, and your sale proceeds are the sale price minus selling commissions. For mutual funds, you may need to choose an accounting method (FIFO, specific identification, or average cost) to determine which shares were sold. The calculator above works directly for these asset types. For stock-specific strategies and considerations such as wash sale rules, ISO/NSO stock options, and employee stock purchase plans, visit our stock capital gains tax calculator page.

Real Estate and Property

Real estate transactions involve additional complexity. For a primary residence, the Section 121 exclusion can eliminate tax on up to $250,000 ($500,000 for married couples) of gain if you meet the ownership and use tests. For investment properties, depreciation recapture may apply at up to 25%, and 1031 exchanges can defer the remaining gain. The calculator above provides a basic estimate, but for accurate real estate calculations, use our home sale capital gains tax calculator or real estate capital gains tax calculator.

Cryptocurrency and Digital Assets

The IRS treats cryptocurrency as property, meaning every sale, exchange, or use of crypto to purchase goods or services is a taxable event subject to capital gains tax. If you buy Bitcoin at $10,000 and later spend it when it is worth $50,000, you have a $40,000 capital gain that must be reported. Cryptocurrency received as income (mining, staking, payment for services) is taxed as ordinary income at the fair market value at the time of receipt. For a complete guide to crypto tax rules, visit our cryptocurrency capital gains tax guide.

Frequently Asked Questions

Answers to common questions about using our capital gains tax calculator and understanding your tax liability.

How do I use the capital gains tax calculator?

Enter your purchase price, sale price, purchase date, and sale date into the calculator. Select your filing status and annual income. The calculator will automatically determine whether your gain is short-term or long-term based on your holding period, apply the correct federal tax rate including the 3.8% NIIT if applicable, and display your estimated tax liability. You can try multiple scenarios to compare different holding periods or income levels.

What tax rates does the calculator use?

The calculator uses the official IRS tax rates for the 2025-2026 tax year. For long-term capital gains (assets held more than one year), it applies the preferential rates of 0%, 15%, and 20% based on your taxable income and filing status. For short-term capital gains (assets held one year or less), it applies ordinary income tax rates ranging from 10% to 37%. The calculator also factors in the 3.8% Net Investment Income Tax for high-income taxpayers.

Is this capital gains tax calculator free?

Yes, our capital gains tax calculator is completely free to use with no registration required. You can calculate as many scenarios as you need. There are no hidden fees, premium tiers, or paywalls. We believe everyone deserves access to accurate tax planning tools regardless of their financial situation.

Does the calculator include state capital gains tax?

The calculator currently estimates your federal capital gains tax liability. State capital gains tax varies significantly by state, ranging from zero in states like Florida, Texas, and Nevada, to over 13% in California. We recommend adding your applicable state rate to the federal estimate for a more complete picture. You can find your state rate on our capital gains tax by state page.

How accurate is the capital gains tax estimate?

Our calculator provides accurate estimates based on the current IRS federal tax brackets for the 2025-2026 tax year. However, your actual tax liability may differ due to factors such as other income sources, deductions, credits, capital losses from other investments, depreciation recapture on real estate, and special tax situations. For a precise calculation, consult a qualified tax professional who can review your complete financial picture.

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

Short-term capital gains apply to assets you hold for one year or less and are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your income bracket. Long-term capital gains apply to assets held for more than one year and benefit from preferential tax rates of 0%, 15%, or 20%. The difference can be substantial: a $50,000 gain taxed at 37% short-term costs $18,500, while the same gain taxed at 15% long-term costs only $7,500, saving you $11,000.

Can I calculate capital gains on real estate with this calculator?

Yes. Enter the original purchase price as your cost basis and the selling price as your sale price. For a more accurate real estate calculation, you should ideally include closing costs, capital improvements, and selling expenses in your cost basis and net proceeds figures. Our home sale capital gains tax calculator page provides detailed guidance on calculating gains on real estate transactions, including the Section 121 primary residence exclusion.

What is the Net Investment Income Tax (NIIT) and does it apply to me?

The Net Investment Income Tax (NIIT) is an additional 3.8% tax on investment income, including capital gains. It applies when your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married couples filing jointly, or $125,000 for married filing separately. Our calculator automatically factors in the NIIT when your income exceeds these thresholds. The combined maximum federal rate on long-term gains is 23.8% (20% plus 3.8% NIIT).

Need More Detailed Tax Information?

Browse our complete library of capital gains tax guides, rate tables, and specialized calculators.