Universal Calculator
TAIIR

Capital Gains Tax Calculator

Estimate your tax liability on investment sales. Compare short‑term vs. long‑term rates and see your net profit after tax.

Brokerage fees, improvements, etc.

Your estimated ordinary income for the year

Uses 2026 federal capital gains tax brackets.

Total Tax Owed

$0

Federal + State

Gain & Tax Breakdown

Net Capital Gain $0
Federal Tax $0
State Tax $0
Net Profit After Tax $0

Understanding Capital Gains Tax

When you sell an investment for more than you paid, the profit is a capital gain—and the IRS wants its share. How much you owe depends on two critical factors: how long you held the asset and your total taxable income. This Capital Gains Tax Calculator helps you estimate your tax liability by applying the current federal brackets (and an optional state tax rate) to your specific situation. Whether you're selling stocks, crypto, or a rental property, this tool provides clarity so you can plan ahead.

Short‑term gains (assets held one year or less) are taxed as ordinary income, with rates up to 37%. Long‑term gains (held longer than one year) benefit from preferential rates: 0%, 15%, or 20%, depending on your income. This calculator automatically applies the correct rate based on your holding period selection and taxable income, giving you a realistic estimate of what you'll actually owe.

2026 Capital Gains Tax Brackets (Long‑Term)

For long‑term capital gains, the rates are based on your taxable income:

  • 0% Rate: Single filers with taxable income up to $47,025; Married Filing Jointly up to $94,050; Head of Household up to $63,000.
  • 15% Rate: Single: $47,026 – $518,900; MFJ: $94,051 – $583,750; HOH: $63,001 – $551,350.
  • 20% Rate: Single: over $518,900; MFJ: over $583,750; HOH: over $551,350.

Short‑term gains are taxed at your ordinary income rate, following the seven marginal brackets (10% to 37%). This calculator determines your marginal rate based on your other taxable income plus the gain itself.

💡 Pro Tip: The Power of Long‑Term Holding

Holding an investment for just over one year can cut your tax rate by more than half. For a high earner, short‑term gains are taxed at 37% while long‑term gains max out at 20%—a 17% difference. Use this calculator to see the impact on your specific gain.

What Counts as a Capital Gain?

Capital gains apply to the sale of capital assets, including:

  • Stocks, bonds, ETFs, and mutual funds
  • Cryptocurrency (Bitcoin, Ethereum, etc.)
  • Real estate (primary residence may qualify for exclusion up to $250k/$500k)
  • Collectibles (art, coins, precious metals – taxed at a maximum 28% rate)
  • Business assets and intellectual property

Note: Collectibles and certain small business stock have different tax treatment not modeled in this basic calculator.

Strategies to Reduce Capital Gains Tax

  • Hold for the long term: The single most effective strategy—preferential rates can save thousands.
  • Tax‑loss harvesting: Sell losing investments to offset gains. Up to $3,000 of excess losses can offset ordinary income annually.
  • Use tax‑advantaged accounts: Trades within IRAs and 401(k)s are not subject to capital gains tax each year. Consider holding actively traded assets in these accounts.
  • Donate appreciated assets: Donating stock held over one year to charity avoids capital gains tax and may provide a charitable deduction for the fair market value.
  • Time your income: If you're near a bracket threshold, deferring the sale to a lower‑income year could reduce your rate.

State Capital Gains Taxes

Most states tax capital gains as ordinary income, with rates ranging from 0% (no income tax states like FL, TX, WA) to over 13% (California). A few states offer preferential treatment. This calculator includes an optional state tax field so you can input your state's rate for a more complete estimate. Check your state's specific rules, as some exclude a portion of gains or have different brackets.

Common Capital Gains Tax Mistakes

  1. Forgetting to include reinvested dividends in cost basis: Dividends reinvested purchase additional shares, increasing your basis and reducing your gain.
  2. Not accounting for fees and commissions: Brokerage fees reduce your net proceeds and should be added to your cost basis (use the expenses field).
  3. Ignoring the Net Investment Income Tax (NIIT): High earners (MAGI over $200k/$250k) pay an additional 3.8% surtax on investment income, not included in this basic calculator.
  4. Assuming all sales are taxable: Sales within retirement accounts (IRA, 401k) are tax‑deferred, not subject to annual capital gains tax.

Frequently Asked Questions

How much tax will I pay on stock gains?

It depends on your holding period and income. Enter your numbers above for a personalized estimate. Long‑term gains are typically taxed at 0%, 15%, or 20%; short‑term at your ordinary income rate.

Do I pay capital gains tax if I reinvest the proceeds?

Yes. The sale is a taxable event regardless of what you do with the money. Reinvesting does not defer the tax. The only exception is like‑kind exchanges for real estate (1031 exchange).

What is the capital gains tax rate for crypto?

Cryptocurrency is treated as property by the IRS. The same short‑term and long‑term rates apply based on your holding period and income. Use this calculator to estimate your tax.

How do I avoid capital gains tax on a home sale?

If the home was your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain ($500,000 for married couples). This calculator does not include that exclusion; consult a tax professional for home sales.

Explore more precision financial tools: