Live dataUSD/CAD 1.3978U.S. 30-yr fixed 7.24%CA 5-yr posted 6.19%BoC rate 2.50%U.S. inflation 3.7%Express Entry cut-off 477 (Oct 28)U.S. gas $4.27/galUpdated Nov 3, 2026

Capital Gains Tax Calculator

Estimate the federal tax on a stock, crypto or real estate sale — long-term 0%/15%/20% rates, short-term ordinary rates and the 3.8% net investment income tax.

Updated IRS 2026 brackets & capital gains thresholds By TrueCalcu Editorial Team Sources
$
$
After fees and commissions
How long did you own it?
$
Wages etc. minus the standard deduction
Federal tax on this sale
—
—Capital gain
—Effective rate on the gain
—Net investment income tax
—You keep (after federal tax)

Your inputs stay in your browser — nothing you type is sent to us or stored. Results are estimates; see our disclaimer.

Short-term vs. long-term capital gains

When you sell an investment for more than you paid, the profit is a capital gain. How it's taxed depends on how long you held the asset:

  • Short-term (one year or less): taxed as ordinary income at your regular federal rate, from 10% to 37%.
  • Long-term (more than one year): taxed at preferential rates of 0%, 15% or 20%, depending on your total taxable income.

Holding an investment just one day past the one-year mark can cut the tax substantially, especially for people in the 22% bracket or higher.

2026 long-term capital gains brackets

RateSingleMarried filing jointlyHead of household
0%Up to $49,450Up to $98,900Up to $66,200
15%Up to $545,500Up to $613,700Up to $579,600
20%Above $545,500Above $613,700Above $579,600

These thresholds apply to total taxable income including the gain. Your gain is "stacked" on top of your other income, so part of a gain can fall in the 0% bracket and the rest in the 15% bracket — the calculator handles this automatically.

The 3.8% net investment income tax

Higher earners may owe an additional 3.8% net investment income tax (NIIT) on the lesser of their investment income or the amount by which their modified AGI exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). These thresholds are set by law and are not adjusted for inflation.

Ways to reduce capital gains tax

  • Hold for more than a year to qualify for long-term rates.
  • Harvest losses: capital losses offset gains, and up to $3,000 of excess losses a year can offset ordinary income, with the rest carried forward.
  • Use tax-advantaged accounts: gains inside a 401(k), traditional IRA or Roth IRA aren't taxed when you sell.
  • Home sale exclusion: if you owned and lived in your main home for at least two of the last five years, up to $250,000 of gain ($500,000 for married couples) is excluded.

Most states also tax capital gains, usually as ordinary income, and a few (such as Washington) have a separate capital gains tax. This calculator shows federal tax only.

Worked example

A single filer with $70,000 of other taxable income sells shares bought for $20,000 for $45,000 after holding them for three years. The $25,000 long-term gain stacks on top of the $70,000, putting total taxable income at $95,000. Because the 0% bracket for single filers ends at $49,450 and their ordinary income already exceeds it, the whole gain falls in the 15% bracket, for a federal tax of $3,750. Had they sold after only eleven months, the whole gain would be taxed as ordinary income in the 22% bracket — $5,500, or $1,750 more.

Frequently asked questions

What is the capital gains tax rate for 2026?
Long-term gains are taxed at 0%, 15% or 20% depending on taxable income; short-term gains are taxed at ordinary income rates from 10% to 37%. A 3.8% NIIT can apply to high earners.
How much can I make and pay 0% capital gains tax?
In 2026, single filers pay 0% on long-term gains while total taxable income stays at or below $49,450; married couples filing jointly up to $98,900.
Is crypto taxed as capital gains?
Yes. The IRS treats cryptocurrency as property, so selling, trading or spending it triggers capital gains or losses under the same short- and long-term rules.
Do I pay capital gains tax when I sell my house?
Only on gains above the exclusion: up to $250,000 ($500,000 married filing jointly) is tax-free if you owned and lived in the home for at least two of the five years before the sale.

Sources & methodology

This calculator was last reviewed on November 2, 2026. Figures are based on the following official and primary sources:

Spotted an error? Tell us and we'll fix it quickly. Read how we build and update our tools in our editorial policy.

Embed this calculator on your website

Free for blogs, real-estate sites, employers and newsletters. Copy this code into your page — it always shows the latest rates and rules.

Your privacy choices

We do not sell your personal information for money. Our advertising partner (Google) may use cookies to show personalized ads, which some U.S. state laws treat as "selling" or "sharing". We automatically honor the Global Privacy Control (GPC) signal.

Unchecked = "Do Not Sell or Share My Personal Information". Learn more in our Privacy Policy and Cookie Policy.

Press Esc to close · Use ↑ ↓ and Enter to pick a result