Capital Gains Tax Calculator (2026)
Estimate your federal and state tax liability on stock investments for the 2026 tax year.
Enter your trade details to see the breakdown
How to Use This Capital Gains Tax Calculator
- Enter Purchase Price: Input the total amount you paid for the asset (cost basis).
- Enter Sale Price: Input the total amount you received from selling the asset.
- Select Holding Period: Choose "Less than 1 year" for short-term gains or "1 year or more" for long-term gains. This significantly affects your tax rate.
- Select Income & Filing Status: Choose your annual taxable income range and filing status to determine your federal tax bracket.
- Add State Tax: If applicable, enter your state's capital gains tax rate.
- Calculate: Click the button to see your estimated tax liability and net proceeds.
What Are Capital Gains Taxes?
Capital gains tax is a levy on the profit realized from the sale of a non-inventory asset, such as stocks, bonds, precious metals, real estate, or property. The tax is calculated on the capital gain, which is the difference between the sale price and the original purchase price.
Short-Term vs. Long-Term Capital Gains
The duration you hold an asset determines how it is taxed:
- Short-Term Capital Gains: Assets held for one year or less are taxed as ordinary income. This means they are subject to your regular income tax bracket, which can range from 10% to 37% (for the 2026 tax year).
- Long-Term Capital Gains: Assets held for more than one year benefit from preferential tax rates. Depending on your income and filing status, these rates are typically 0%, 15%, or 20%.
Why calculating potential tax matters
Understanding your potential tax liability before selling an asset is crucial for effective portfolio management. Selling a winning stock too early (within a year) could result in a significantly higher tax bill compared to waiting just a few more days or weeks to qualify for long-term capital gains rates. Smart traders use these calculations to optimize their after-tax returns.
Frequently Asked Questions
How is the cost basis calculated?
The cost basis is generally the original purchase price of the asset plus any associated fees or commissions paid during the purchase.
Do I pay capital gains tax if I lose money?
No. If you sell an asset for less than you bought it for, you have a capital loss. You can use capital losses to offset capital gains and potentially reduce your taxable income by up to $3,000 per year.
Are the 2026 tax brackets final?
The tax brackets used in this calculator are projected estimates based on current tax law and inflation adjustments. Official IRS brackets are typically finalized closer to the tax year.
Related Tools
Capital Gains Tax Lot Optimizer
Optimize your investment tax liability by comparing FIFO, LIFO, HIFO, and tax-loss harvesting strategies. Upload trade history, track cost basis, and find the optimal lots to sell.
Crypto Tax Calculator
Estimate your cryptocurrency capital gains tax for 2026 with federal and state tax calculations.
Stock Return Calculator
Free stock return calculator with DRIP analysis. Calculate total return, annualized return (CAGR), capital gains, and dividend income for any stock over any period.
Trading Commission Calculator
Calculate the impact of trading fees and commissions on your profitability.
Dividend Yield Calculator
Instantly calculate a stock's dividend yield with our free Stock Dividend Calculator. Analyze dividend growth rates to evaluate income potential and stability.
Optimize Your Trading Strategy Before You Sell
Taxes are just one part of the equation. Pineify helps you build, backtest, and optimize data-driven trading strategies that maximize your returns from the start—without writing a single line of code.
Start Building Smarter Strategies