Capital gains tax is what you pay when you sell an asset for more than you paid for it. Whether you are selling stocks, a house, or crypto, understanding how capital gains work — and the difference between short-term and long-term rates — can mean a difference of thousands of dollars in your tax bill. Here is how it works in 2026.
What Is a Capital Gain?
A capital gain is the profit you make when you sell a capital asset — stocks, bonds, real estate, cryptocurrency, mutual funds, and most other investment assets. The gain is calculated as:
Capital Gain = Sale Price − Cost Basis
The cost basis is typically what you paid for the asset, plus any commissions or fees. If you bought 100 shares of a stock for $50 each ($5,000 total) and sold them for $80 each ($8,000 total), your capital gain is $3,000.
You do not owe capital gains tax until you actually sell the asset. Unrealized gains (an investment that has gone up in value but you have not sold) are not taxed.
Short-Term vs. Long-Term Capital Gains
This is the most important distinction:
Short-term capital gains: Assets held for one year or less before selling. These are taxed as ordinary income — the same rate as your salary, up to 37% in 2026. Short-term rates are essentially a penalty for impatient investors.
Long-term capital gains: Assets held for more than one year before selling. These are taxed at significantly lower preferential rates: 0%, 15%, or 20% depending on your income.
2026 long-term capital gains tax rates:
- 0%: Taxable income up to $47,025 (single) / $94,050 (married filing jointly)
- 15%: Taxable income between $47,026–$518,900 (single) / $94,051–$583,750 (married filing jointly)
- 20%: Taxable income above those thresholds
Waiting just over a year before selling an investment can cut your tax rate from 22–32% to 15%. That is real money.
Net Investment Income Tax (NIIT)
Higher earners may also owe an additional 3.8% Net Investment Income Tax on investment income including capital gains. This applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Combined with the 20% long-term rate, the effective top rate on long-term gains is 23.8% for high earners.
Capital Gains on Your Home
When you sell your primary residence, you may qualify for a significant exclusion:
- Single taxpayers: Exclude up to $250,000 in capital gains from the sale
- Married filing jointly: Exclude up to $500,000
To qualify, you must have owned and lived in the home as your primary residence for at least 2 of the 5 years before the sale. Gains above the exclusion are taxed as capital gains.
Capital Losses: The Silver Lining
If you sell an investment for less than you paid, you have a capital loss. Capital losses can offset capital gains, reducing your tax liability. If your losses exceed your gains, you can deduct up to $3,000 of the remaining loss against ordinary income per year. Unused losses carry forward to future years.
This creates a strategy called tax-loss harvesting: deliberately selling investments at a loss to offset gains elsewhere. Commonly used by investors with taxable brokerage accounts at year-end.
How to Minimize Capital Gains Tax
- Hold investments for more than one year to qualify for long-term rates
- Use tax-advantaged accounts (401k, IRA, Roth IRA) — capital gains inside these accounts are deferred or tax-free
- Tax-loss harvest in taxable accounts to offset gains
- Donate appreciated assets to charity — you avoid capital gains tax and get a charitable deduction
- Plan large sales around income — if you expect lower income in a particular year (retirement, career gap), that may be the right time to realize gains at a lower rate
Crypto and Capital Gains
Cryptocurrency is treated as property by the IRS, not currency. Every time you sell, trade, or spend crypto, you trigger a taxable event. Short-term and long-term capital gains rules apply the same as with stocks. Crypto-to-crypto trades (swapping Bitcoin for Ethereum, for example) are also taxable events.
Bottom Line
Hold investments for over a year to access long-term capital gains rates. Use tax-advantaged accounts to shelter as much investment growth as possible. Offset gains with losses where you can. Capital gains tax is one of the most controllable taxes in the system — with basic planning, you can legally minimize what you owe.