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

Total Estimated Tax
$0.00
Net Capital Gain$0.00
Federal Tax (Est. 22.0%)$0.00
State Tax (Est.)$0.00
Net Proceeds (After Tax)$0.00

How to Use This Capital Gains Tax Calculator

  1. Enter Purchase Price: Input the total amount you paid for the asset (cost basis).
  2. Enter Sale Price: Input the total amount you received from selling the asset.
  3. 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.
  4. Select Income & Filing Status: Choose your annual taxable income range and filing status to determine your federal tax bracket.
  5. Add State Tax: If applicable, enter your state's capital gains tax rate.
  6. 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.

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