Capital Gains Tax Calculator

Calculate taxes owed on short-term and long-term capital gains.

$
$
How it works (Formula)
Determines bracket (0%, 15%, 20%) based on total taxable income.
★★★★★ Rated 4.7 out of 5 — based on 24 user ratings

What Is the Capital Gains Tax Calculator?

The Capital Gains Tax Calculator is a critical tax-planning tool designed to help investors estimate the portion of their investment profits that belongs to the IRS. When you sell an asset—like stock, crypto, or real estate—for more than you paid for it, the profit is considered a "Capital Gain." This calculator navigates the complex federal rules that distinguish between "Short-Term" and "Long-Term" holdings, ensuring you don't overpay or fail to reserve enough for your tax bill.

What makes the Nuumra version better is our "Income-Stacked Internal Logic." We don't just ask for your gain; we require your regular income (salary, etc.), because the IRS determines your capital gains tax rate based on your *total* taxable income. This provides a much more accurate estimate than generic calculators that only look at the investment in isolation.

How to Estimate Your Capital Gains Tax

  1. Asset Sale Net Profit — Enter the total profit (Sale Price minus Cost Basis) realized from the sale.
  2. Other Regular Income — Enter your estimated salary or W2 income for the year. This determines your tax bracket.
  3. Filing Status — Select how you file (Single, Married, etc.), as thresholds vary significantly.
  4. Duration Asset Held — Indicate if you held the asset for more or less than 365 days.
  5. Calculate Taxes — View your estimated tax liability and the specific "Gain Type" applied.

How Capital Gains Math Works

The calculator applies different logic based on your holding period:

  • Short-Term Gains — Taxed at your standard marginal income tax rate (identical to your salary).
  • Long-Term Gains — Taxed at preferential rates of 0%, 15%, or 20% based on your total income thresholds.

Our algorithm checks your "Regular Income" against current IRS thresholds to see which long-term rate you fall into. For example, in 2024, a single filer earning less than $47,025 may qualify for a 0% Long-Term Capital Gains rate.

Understanding Your Tax Bill

Once you hit Calculate, here is what each result means:

  • Net Gain Type — Clarifies if your holding period qualified you for the lower long-term rates or if you are paying the full ordinary rate.
  • Est. Capital Gains Tax — The dollar amount you should set aside from your sale proceeds to pay the IRS.
  • The Income "Piling" Effect — A summary of how your investment gain sits on top of your existing salary, potentially pushing you into a higher bracket.
  • Hold for at Least 366 Days — Selling on day 364 vs. day 366 can be the difference between paying a 22% tax and a 15% tax. The tax savings of holding for one extra day are often massive.
  • Use Tax-Loss Harvesting — If you have "losing" stocks, you can sell them to offset your gains. If your total losses exceed your total gains, you can even use $3,000 of that loss to reduce your ordinary salary tax.
  • The 0% Bracket Strategy — If you have a low-income year (like during a sabbatical or early retirement), it may be the perfect time to sell appreciated assets and potentially pay 0% in capital gains tax.
  • Gift to Family Members — If you gift stock to children or parents in lower tax brackets, they may be able to sell the asset and pay a lower capital gains rate than you would.

Frequently Asked Questions

What is a Capital Gain?
It is the profit you make when you sell an asset (like stocks or real estate) for more than its "Cost Basis" (usually what you paid for it plus fees).
Is Crypto subject to capital gains?
Yes. The IRS treats cryptocurrency as property, meaning every trade (Crypto-to-USD or even Crypto-to-Crypto) is a taxable event subject to capital gains rules.
What is "Long-Term" exactly?
To qualify for long-term capital gains rates, you must have held the asset for more than exactly one year (366 days).
Does this include state taxes?
No. This calculator estimates Federal Capital Gains tax. States like California or New York may charge additional income tax on your gains.
What is the Primary Residence Exclusion?
If you are selling your main home, you can often exclude up to $250,000 (single) or $500,000 (married) of the gain from taxes if you lived there for 2 of the last 5 years.
What is a "Wash Sale"?
If you sell a stock for a loss and buy it back within 30 days, the IRS will not allow you to claim that loss to offset your gains.
Does this include the 3.8% NIIT?
This is a simplified estimator and does not include the Net Investment Income Tax, which usually only applies to single filers earning over $200k or couples earning over $250k.

Related Tax & Investing Calculators