Coins arranged as an upward arrow on dark slate, representing capital gains on investments.
Photo: Aurelijus U. ยท Pexels
Home/Tax Strategy/Capital Gains Tax Explained
๐Ÿงพ Taxes ยท Investing

Capital Gains Tax Explained: Rates, Rules and Strategies to Owe Less

Short-term gains are taxed like wages; long-term gains get 0%, 15% or 20%. Here are the 2026 and 2027 thresholds, the surtax, how losses and wash sales work, and six ways to owe less.

โœ๏ธ Written by DigitalWealthSource
๐Ÿ” Reviewed by Derek Giordano
๐Ÿ“… Updated Nov 15, 2026
โฑ๏ธ 8 min read
๐Ÿ“‘ On this page โ–ผ
What Is a Capital Gain? Rates for 2026 and 2027 Short-Term vs Long-Term How to Calculate Your Gain The 0% Bracket Six Ways to Owe Less Special Situations Worked Example Decision Rules FAQ

๐Ÿ“ Figures verified Nov 15, 2026 against IRS Topics 409, 559 and 701, Publications 550 and 551, the IRS digital asset and Form 1099-DA pages and 26 U.S.C. 1091; the 2026 and 2027 rate thresholds come from IRS Rev. Procs. 2025-32 and 2026-35. Examples are simplified and illustrative. How we check numbers โ†’

The short answer

Gains on assets held one year or less are taxed like wages; hold more than a year and the rate drops to 0%, 15% or 20%. In 2026 the 0% rate covers taxable income up to $49,450 single or $98,900 joint. High earners can owe another 3.8%. Losses offset gains, plus $3,000 a year of other income.

Numbers That Matter

Rule or figureWhat it saysSourceVerified
Long-term holding periodMore than one year; one year or less is short-term, taxed at ordinary ratesIRS Topic 409Nov 15, 2026
0% rate, single filers$49,450 (2026) ยท $51,050 (2027) of taxable incomeIRS Rev. Procs. 2025-32 and 2026-35Nov 15, 2026
0% rate, married filing jointly$98,900 (2026) ยท $102,100 (2027)IRS Rev. Procs. 2025-32 and 2026-35Nov 15, 2026
20% rate starts, single / jointAbove $545,500 / $613,700 (2026); $563,200 / $633,600 (2027)IRS Rev. Procs. 2025-32 and 2026-35Nov 15, 2026
Net investment income tax3.8% above MAGI of $200,000 single, $250,000 jointIRS Topic 559Nov 15, 2026
CollectiblesLong-term gains taxed at up to 28%IRS Topic 409Nov 15, 2026
Capital lossesOffset gains, then up to $3,000 of other income a year ($1,500 married filing separately); the rest carries forwardIRS Topic 409Nov 15, 2026
Home sale exclusion$250,000 of gain ($500,000 joint) if you owned and lived in the home 2 of the last 5 yearsIRS Topic 701Nov 15, 2026
Fund capital gain distributionsLong-term, however long you owned the fundIRS Publication 550Nov 15, 2026
Wash salesA loss on stock or securities is disallowed if you buy substantially identical ones 30 days before or after26 U.S.C. 1091Nov 15, 2026

What Is a Capital Gain?

A capital gain is the profit when you sell an asset for more than your basis, usually what you paid plus purchase costs. Buy stock for $5,000 and sell it for $8,000, and the $3,000 gain is taxable in the year you sell. Until you sell, the gain is unrealized and isn't taxed. Stocks, bonds, funds, real estate, crypto and collectibles all produce capital gains when sold at a profit.

Capital Gains Tax Rates for 2026 and 2027

Short-term gains, on assets held one year or less, are taxed at your ordinary income rates of 10% to 37%. Long-term gains get 0%, 15% or 20%, depending on your taxable income including the gain (IRS Topic 409):

RateSingleMarried filing jointlyHead of household
0% up to$49,450 (2026) ยท $51,050 (2027)$98,900 (2026) ยท $102,100 (2027)$66,200 (2026) ยท $68,350 (2027)
15% up to$545,500 (2026) ยท $563,200 (2027)$613,700 (2026) ยท $633,600 (2027)$579,600 (2026) ยท $598,400 (2027)
20%Above the 15% limit

Above MAGI of $200,000 single or $250,000 joint, the 3.8% net investment income tax can apply on top (IRS Topic 559), for a top federal rate of 23.8% on long-term gains. Collectibles such as coins and art are taxed at up to 28%.

Short-Term vs Long-Term: The One-Year Line

To get long-term rates you must hold an asset more than one year. Your holding period starts the day after you buy, so shares bought March 15, 2026 become long-term if sold on or after March 16, 2027 (IRS Publication 550). Fund capital gain distributions are reported as long-term no matter how long you've owned the fund.

How to Calculate Your Gain

Gain equals the sale price minus your basis and selling costs. Each purchase of the same investment is a separate lot with its own basis and holding period; choosing which lots to sell (specific identification) lets you sell higher-basis or older lots first. Inherited property generally takes a basis equal to its fair market value at the date of death, which erases the gain that built up during the owner's life (IRS Publication 551).

The 0% Bracket

If your taxable income, including long-term gains, stays at or under $49,450 single or $98,900 joint in 2026, those gains are taxed at 0%. Retirees with modest income, early retirees and people in a low-income year can sell appreciated investments and owe no federal tax on the gains, then buy back to reset a higher basis. The wash sale rule applies to losses, not gains, so rebuying right away is fine.

Six Ways to Owe Less

  1. Hold past one year to turn ordinary rates of up to 37% into 0%, 15% or 20%.
  2. Harvest losses. Losses offset gains, then up to $3,000 of other income a year, with the rest carried forward. Don't buy substantially identical stock or securities within 30 days before or after, or the loss is disallowed (26 U.S.C. 1091). See tax-loss harvesting.
  3. Fill the 0% bracket in low-income years.
  4. Give appreciated shares instead of cash to charity, which avoids tax on the gain; the deduction rules changed for 2026, covered in the charitable deduction guide.
  5. Use tax-advantaged accounts. Trades inside a 401(k) or IRA aren't taxed as capital gains; traditional accounts are taxed when you withdraw, and qualified Roth withdrawals aren't taxed.
  6. Hold appreciated assets for heirs when it fits your plan, since inherited basis resets to the value at death.

Special Situations

  • Your home: exclude up to $250,000 of gain, $500,000 joint, if you owned and used it as your main home for 2 of the 5 years before the sale (IRS Topic 701).
  • Crypto: the IRS treats digital assets as property, so selling or swapping them can create a capital gain or loss (IRS). Brokers report digital asset sales on Form 1099-DA (IRS). The wash sale rule in section 1091 is written for stock and securities; check current guidance with a tax professional before relying on that for crypto. See Form 1099-DA.
  • Collectibles: long-term gains on coins, art and other collectibles are taxed at up to 28%.

Worked Example: What the Rules Are Worth

๐Ÿงฎ Worked Example: Six Capital Gains Calculations (illustrative)
  • Waiting a year: a $10,000 gain for a single filer in the 24% bracket costs $2,400 short-term and $1,500 long-term at 15%, $900 saved.
  • The 0% bracket: a single filer with $35,000 of other taxable income in 2026 can realize up to $14,450 of long-term gains at 0%.
  • The 3.8% surtax: a single filer with $260,000 of MAGI, including a $50,000 gain, owes it on the smaller of the gain or the $60,000 above the threshold: $1,900.
  • Losses: $10,000 of losses against $5,000 of gains wipes out the gains, offsets $3,000 of other income and carries $2,000 forward.
  • A home sale: a married couple with a $600,000 gain excludes $500,000 and reports $100,000.
  • Inheritance: stock bought for $10,000 and worth $500,000 at death passes with a $500,000 basis, so a sale at that value owes no capital gains tax.

Brackets are 2026 figures; state taxes are extra in most states. The examples leave out other income effects.

Decision Rules

If this, then that

  • If a winner is near its one-year mark โ†’ check the date before selling; a few weeks can change the rate.
  • If your taxable income will be under the 0% limit โ†’ consider realizing gains up to it.
  • If you have losses โ†’ harvest them, and wait 31 days or buy something not substantially identical.
  • If you give to charity โ†’ give appreciated shares held over a year instead of cash.
  • If you're selling your home โ†’ confirm the 2-of-5-year tests first.

Mistakes to avoid

  • Selling a day too early and paying short-term rates.
  • Rebuying the same stock within 30 days of a loss sale.
  • Forgetting the 3.8% surtax and state tax.
  • Using the wrong basis for inherited or gifted property.
  • Assuming every fund distribution is short-term; capital gain distributions are long-term.
๐Ÿงฎ Estimate Your Capital Gains Tax
Use the Capital Gains Tax Calculator to see what a sale would cost at your income, and how waiting past a year changes it.
Open the calculator โ†’

Related: tax-loss harvesting, inherited IRA rules, crypto taxes and estate planning. More guides are in the Tax Strategy hub.

Frequently Asked Questions

Do I pay capital gains tax inside my 401(k) or IRA?
+
No. Trades inside those accounts aren't taxed as capital gains. Traditional 401(k) and IRA withdrawals are taxed as ordinary income, and qualified Roth withdrawals aren't taxed at all.
What is the wash sale rule?
+
If you sell stock or securities at a loss and buy substantially identical stock or securities within 30 days before or after the sale, the loss is disallowed for now. It applies to losses, not gains.
How are mutual fund capital gain distributions taxed?
+
As long-term capital gains, no matter how long you've owned the fund. They're shown in box 2a of the Form 1099-DIV you get from the fund.
Can capital losses offset ordinary income?
+
Yes, after they offset your gains: up to $3,000 a year ($1,500 if married filing separately), with any remaining loss carried forward to future years.
How does the 3.8% surtax work?
+
The net investment income tax is 3.8% of the smaller of your net investment income or your MAGI above $200,000 single or $250,000 married filing jointly. Capital gains count as investment income.
Do I need to report crypto gains?
+
Yes. The IRS treats digital assets as property, so selling, swapping or spending them can create a taxable gain or loss, and brokers report sales on Form 1099-DA. Your tax return also asks whether you had digital asset transactions.
โš ๏ธ Important Disclosure
DigitalWealthSource publishes educational financial content. Nothing on this site constitutes personalized financial, tax, legal, or investment advice. Every person's financial situation is unique. We strongly encourage consulting with a qualified financial advisor, CPA, or attorney before making significant financial decisions. Content is provided for informational and educational purposes only.
Sources: IRS Topics 409, 559 and 701; IRS Publications 550 and 551; IRS digital assets page and About Form 1099-DA; 26 U.S.C. 1091 (GovInfo); IRS Rev. Procs. 2025-32 and 2026-35. Figures verified November 15, 2026.
๐Ÿ‘ค
Written & reviewed by Derek Giordano
Derek reviews all content on DigitalWealthSource. Background in business marketing with hands-on experience in debt payoff, homebuying, tax strategy, and long-term investing. Our methodology โ†’
✓
Independent & Ad-Free
No ads, no affiliate links, no sponsored content. Sources are listed on this page. Spot an error or an outdated figure? Tell us and weโ€™ll fix it.
📖 Sources & References
  1. Topic no. 409, Capital gains and losses. Internal Revenue Service. https://www.irs.gov/taxtopics/tc409
  2. Topic no. 559, Net investment income tax. Internal Revenue Service. https://www.irs.gov/taxtopics/tc559
  3. Topic no. 701, Sale of your home. Internal Revenue Service. https://www.irs.gov/taxtopics/tc701
  4. Publication 550, Investment Income and Expenses. Internal Revenue Service. https://www.irs.gov/publications/p550
  5. Publication 551, Basis of Assets. Internal Revenue Service. https://www.irs.gov/publications/p551
  6. Digital assets. Internal Revenue Service. https://www.irs.gov/filing/digital-assets
  7. About Form 1099-DA, Digital Asset Proceeds From Broker Transactions. Internal Revenue Service. https://www.irs.gov/forms-pubs/about-form-1099-da
  8. 26 U.S.C. 1091, Loss from wash sales of stock or securities (2024 edition). GovInfo. https://www.govinfo.gov/content/pkg/USCODE-2024-title26/html/USCODE-2024-title26-subtitleA-chap1-subchapO-partVII-sec1091.htm
  9. Rev. Proc. 2025-32: 2026 inflation adjustments. Internal Revenue Service. https://www.irs.gov/pub/irs-drop/rp-25-32.pdf
  10. Rev. Proc. 2026-35: 2027 inflation adjustments. Internal Revenue Service. https://www.irs.gov/pub/irs-drop/rp-26-35.pdf