Skip to main content
capitalgaintaxcalc.com

Start here · beginner · 8 min

What is capital gains tax? A plain-English guide

Updated 2026-10-12

Educational only. Not tax advice.

Short answer

Capital gains tax, also called a capital gain tax, is the federal tax on profit when you sell a capital asset. You owe it for the year you sell, not while you hold. In 2026 a long-term gain is taxed at 0%, 15%, or 20%. A short-term gain is taxed from 10% to 37%.

Key takeaways

  • You owe the tax when you sell, not while the price is only on paper.
  • A $50,000.00 sale with a $10,000.00 basis is a $40,000.00 gain.
  • For a single filer with $30,000 of other taxable income, $19,450.00 of that gain is taxed at 0% and $20,550.00 at 15%.
  • Federal tax on the gain is $3,082.50. NIIT is $0.00.
  • The other guides own the rate tables, the 1-year line, and the full formula.

Before you start

Capital gains tax
Capital gains tax is the federal tax on profit from selling a capital asset. People also type capital gain tax for the same tax.
Capital asset
A capital asset is property you own for investment or personal use, and inventory you hold for sale to customers is not one.
Basis
Basis is what you paid for the asset, plus purchase fees.
Capital loss
A capital loss is a sale price below your basis. The $3,000 yearly limit lives on the [loss carryover guide](/blog/capital-loss-carryover/).

Do I pay capital gains tax if I only hold?

You owe capital gains tax when you sell, and you do not owe it while you still hold the asset, so a gain that exists only on a statement is unrealized and it is not taxed yet, and a higher quote during the year does not create a capital gain by itself because the bill belongs to the year of the sale.

Who pays capital gains tax, and when?

A person who sells a capital asset in the United States reports the gain on the return for that year, and the tax is part of that return rather than a separate bill on the sale date, while a large sale requires estimated tax when withholding will not cover the bill, and this page does not compute the voucher (Topic 409 and Publication 505).

How do I calculate a capital gain?

Subtract basis from the sale price, so a sale at $50,000.00 with a basis of $10,000.00 is a $40,000.00 gain, and the dates in the worked example are 15 January 2024 and 15 June 2026, which makes the gain long-term.

The seller in this example is single with $30,000 of taxable income before the gain, federal tax on the gain is $3,082.50, NIIT is $0.00, state tax is left out, and the calculate guide keeps the full order of the math.

What separates a short-term gain from a long-term gain?

A sale on the 1-year anniversary is still short-term, and the next day is long-term, while the holding-period guide is the home for that clock, including the trade date and the day after you buy.

Which rate applies to me?

A long-term gain uses 0%, 15%, or 20% in 2026, a short-term gain uses ordinary rates from 10% to 37%, and your other taxable income fills the brackets first so the gain is taxed only on the room that is left.

For a single filer the 0% ceiling is $49,450, for married filing jointly the 0% ceiling is $98,900, and the 2026 rates guide keeps the full ceilings while this page does not print the ordinary bracket schedule.

What is the 0% capital gains bracket?

In the worked example, $19,450.00 of the $40,000.00 gain is taxed at 0% and $20,550.00 is taxed at 15%, which is why the federal tax is $3,082.50, because the 0% slice is the room between $30,000 of taxable income and the $49,450 ceiling.

The 0% bracket guide explains who still has that room, and this page shows only this one split.

Are gains inside an IRA or 401(k) taxed?

Trades inside a traditional IRA or 401(k) are not capital-gains events, withdrawals from those accounts are taxed as ordinary income rather than as capital gains, and the IRA guide is the home for that rule.

Do I pay it on a car?

A gain on personal-use property is taxable, and a loss is not deductible, and most cars sell for less than the owner paid, so a typical car sale creates no deductible loss and no tax (Publication 550).

A home sale may qualify for the exclusion on the home sale guide, crypto is taxed when you sell, swap, or spend it on the crypto guide, and a fund sale uses the day you bought the shares while a capital-gain distribution on Form 1099-DIV follows the fund reporting.

Do states tax capital gains?

Many states tax a capital gain even when the federal rate on that slice is 0%, the state overview is the home for those differences, and a federal result of $0 does not mean the state bill is $0.

Which form will I receive?

A broker reports a stock sale on Form 1099-B, a real-estate closing produces Form 1099-S, and a digital-asset sale produces Form 1099-DA when the payer knows the details, so check the dates and the basis on the form before you copy them.

You report the sale on Form 8949, Schedule D totals those lines, and the Schedule D guide walks through that order, while this page does not fill in the forms.

Worked example

$3,082.50

Long-term federal tax on the gain. NIIT is $0.00.

  • Tax year: 2026
  • Filing status: Single
  • Taxable income before the gain: $30,000
  • Buy price: $10,000.00
  • Sell price: $50,000.00
  • Quantity: 1
  • Buy date: 15 January 2024
  • Sell date: 15 June 2026
Enter these numbers
Where the $40,000.00 gain lands
Stacked bar of taxable income and the long-term gainTaxable income $30,000.00, then $19,450.00 of gain at 0%, then $20,550.00 at 15%, then $0.00 at 20%. Federal tax on the gain is $3,082.50.
  • Taxable income before the gain: $30,000.00
  • Gain at 0%: $19,450.00
  • Gain at 15%: $20,550.00 (hatched)
  • Gain at 20%: $0.00
  • Federal tax on the gain: $3,082.50. NIIT: $0.00.

Source: IRS Rev. Proc. 2025-32, using the calculator's 2026 brackets.

One extra day changes the rate
Holding period from 15 Jan 2024Buy 15 Jan 2024. A sale on 15 Jan 2025 is still short-term.16 Jan 2025 is the first long-term day.Buy: 15 Jan 202415 Jan 2025Short-term through 15 Jan 2025Long-term from 16 Jan 2025

The sale in this example is 15 June 2026, so the gain is long-term.

Which federal rate applies?
Holding period decisionIf you held the shares more than one year, use the 0%, 15%, or 20% rates. If you held them one year or less, the gain is taxed as ordinary income.Held more than 1 year?No: ordinary ratesYes: 0%, 15%, or 20%

This example answers yes. The sale is after 16 January 2025.

From sale price to federal tax
Waterfall from proceeds to taxProceeds: $50,000.00 Basis: $10,000.00 Gain: $40,000.00 Federal tax: $3,082.50 (solid mark). NIIT: $0.00.
  • Proceeds: $50,000.00
  • Basis: $10,000.00
  • Gain: $40,000.00
  • Federal tax: $3,082.50 (solid mark). NIIT: $0.00.

Source: this calculator, tax year 2026, single filer.

Where should I go next?

Choose a path

  • Stocks. Open the stock calculator after you know the gain.
  • Home. The exclusion for a main home.
  • Crypto. Sales, swaps, and spending.

Every guide

Sources

  1. Topic 409, Capital gains and losses
  2. Topic 559, Net investment income tax
  3. Publication 550, Investment income and expenses
  4. Publication 551, Basis of assets
  5. Publication 505, Tax withholding and estimated tax
  6. Instructions for Form 1099-B
  7. Instructions for Form 1099-S
  8. About Form 1099-DA
  9. Instructions for Form 8949
  10. Instructions for Schedule D

FAQ

Frequently asked questions

What if I sell for less than I paid?

The difference is a capital loss. The yearly limit on using that loss against ordinary income is on the loss carryover guide.

Do I owe tax when someone gives me shares?

A gift is not a sale. Tax waits until you sell, and the basis and holding rules are the gift watch-out above.

Is a mutual fund distribution a capital gain?

A capital-gain distribution on Form 1099-DIV follows the fund reporting. A sale of the shares follows your own buy date.

When do I pay after the sale?

You report the gain on the return for the year of the sale. A large gain also requires an estimated-tax payment when withholding will not cover the bill.

Do I receive a tax form if I never sell?

A broker does not issue Form 1099-B for shares you still hold. A fund can still send Form 1099-DIV for a distribution.

Does a commission change the gain?

A fee you paid to buy the asset raises your basis. A fee you paid to sell it lowers the amount you report as proceeds.

Is profit inside a Roth IRA a capital gain?

Trades inside the IRA are not capital-gains events. The IRA guide covers how withdrawals are taxed.

Where do I start if I sold stock?

Use the worked example on this page, then enter those inputs in the calculator, and read the calculate guide for the rest of the formula.