Guide
Capital gains tax basics
Updated 2026-07-24 • Next review 2026-10-31
Capital gains tax applies when you dispose of a capital asset for more than its adjusted basis. Stocks, real estate, crypto, NFTs, business interests, and even collectibles fall under the rules. How long you held the asset determines whether the gain is short-term (taxed like ordinary income) or long-term (taxed at the preferential 0%, 15%, or 20% brackets).
What counts as a taxable event?
- Selling an investment for cash or converting one crypto asset into another.
- Spending appreciated property on goods or services (for example, paying with crypto).
- Receiving a distribution from a partnership or trust that includes capital gains.
- Being paid out when a company is acquired or a fund is liquidated.
- Claiming casualty or theft losses in excess of basis (rare, but taxable when insurance is involved).
IRS references: Publication 544 (Sales and Other Dispositions of Assets) and Publication 550 (Investment Income and Expenses).
Short-term vs. long-term holding periods
Holding periods begin the day after you acquire the asset and include the day you dispose of it. A sale on or before the one-year anniversary is generally short-term; a later sale generally qualifies for long-term capital gains rates.
Example: You buy stock on March 1, 2025. The first day of your holding period is March 2. If you sell on March 1, 2026, you held the stock for 365 days and have a short-term holding period. Selling on March 2, 2026 moves the transaction into long-term treatment.
How cost basis works
Your adjusted basis is the original purchase price plus the cost of acquiring the asset (commissions, fees) and any capital improvements. Reductions such as depreciation or casualty losses lower basis. Organizing documentation is crucial because a higher basis reduces your taxable gain.
- Brokerage statements provide basis for most stock and ETF transactions.
- For real estate, add settlement costs and qualified renovations. Keep receipts.
- Crypto basis tracking depends on exchange exports and wallet records. This site calculator uses FIFO, but tax-return method and identification requirements must be verified separately.
Key 2026 thresholds
The 2026 long-term brackets published in IRS Revenue Procedure 2025-32 are:
- 0% rate up to $49,450 (single), $98,900 (married filing jointly).
- 15% rate up to $545,500 (single), $613,700 (married filing jointly).
- 20% rate above those thresholds.
Short-term gains stack on top of other taxable income, so the marginal rate depends on the ordinary income brackets. Some taxpayers may also owe the 3.8% Net Investment Income Tax; the site calculator does not estimate NIIT.
Putting the rules to work
Use the capital gains calculator to price out a sale with your actual basis and sale price. Then open the scenario planner to test what happens if you wait until the gain qualifies for long-term treatment, relocate to a different state, or harvest losses to offset the gain.
Frequently asked questions
You must hold the asset for more than one year. The clock starts the day after acquisition and includes the sale date.