Home/Guides/Capital Gains Tax Explained
๐Ÿ›๏ธ Tax & Investing

Capital Gains Tax Explained: Rates, Rules, and Strategies to Minimize What You Owe

How capital gains tax works in 2026. Covers short-term vs. long-term rates, the 0% bracket, how to calculate your gain, tax-loss harvesting, the wash sale rule, and strategies to legally reduce your capital gains tax bill.

โœ๏ธ Written by DigitalWealthSource
๐Ÿ” Reviewed by Derek Giordano ยท Sources verified
๐Ÿ“… April 2026
โฑ๏ธ 11 min read
โœ… Fact-checked
๐Ÿ“‘ On This Page โ–พ
What Is a Capital Gain? 2026 Capital Gains Tax Rates Short-Term vs. Long-Term: The 12-Month Line How to Calculate Your Capital Gain The 0% Capital Gains Bracket 6 Strategies to Reduce Capital Gains Tax Special Situations Frequently Asked Questions

๐Ÿ’ฐ What Is a Capital Gain?

A capital gain is the profit you make when you sell an asset for more than you paid for it. Buy stock for $5,000, sell it for $8,000 โ€” your capital gain is $3,000. That gain is taxable income in the year you sell. Importantly, capital gains are only triggered when you sell (or "realize" the gain). If your investment grows from $5,000 to $50,000 but you never sell, you owe zero tax โ€” the gain is "unrealized" and exists only on paper.

Capital gains apply to any asset sold at a profit: stocks, bonds, mutual funds, ETFs, real estate, cryptocurrency, collectibles, and even personal property. The tax rate you pay depends on how long you held the asset before selling โ€” and the difference between short-term and long-term rates can be dramatic.

๐Ÿ“Š 2026 Capital Gains Tax Rates

Holding PeriodTax RateHow It Works
Short-term (held < 1 year)10% โ€“ 37% (your ordinary income rate)Taxed the same as your salary โ€” no preferential treatment
Long-term (held 1+ year)0%, 15%, or 20%Preferential rates well below ordinary income rates

The long-term capital gains rates for 2026 depend on your taxable income:

RateSingle FilerMarried Filing Jointly
0%$0 โ€“ $47,025$0 โ€“ $94,050
15%$47,026 โ€“ $518,900$94,051 โ€“ $583,750
20%Above $518,900Above $583,750

Additionally, high-income taxpayers pay a 3.8% Net Investment Income Tax (NIIT) on top of the capital gains rate if their MAGI exceeds $200,000 (single) or $250,000 (married). This can bring the effective top rate to 23.8%.

๐Ÿ’ก The Key Takeaway

The difference between selling at 11 months (short-term) and 13 months (long-term) can be the difference between paying 24% and 15% on the same gain โ€” or even 24% and 0%. Always check your holding period before selling. Two extra months of patience can save you thousands. Our Tax Planning Hub covers this in the context of your overall tax strategy.

โฐ Short-Term vs. Long-Term: The 12-Month Line

The holding period starts the day after you purchase the asset and ends on the day you sell. To qualify for long-term rates, you must hold the asset for more than one year โ€” meaning 366+ days. Selling on exactly the one-year anniversary is still short-term; you must wait one additional day.

Example: You buy shares on March 15, 2026. To qualify for long-term capital gains rates, you must sell on or after March 16, 2027. Selling on March 15, 2027 (exactly one year) is still short-term.

For mutual funds, capital gains distributions can be short-term or long-term depending on how long the fund held the underlying securities โ€” not how long you held the fund. This is one reason tax-efficient index funds (which trade infrequently) are preferred over actively managed funds (which generate more short-term gains through frequent trading).

๐Ÿงฎ How to Calculate Your Capital Gain

The formula: Capital Gain = Sale Price โˆ’ Cost Basis โˆ’ Selling Expenses.

Your cost basis is what you paid for the asset, including any commissions or fees at purchase. If you received shares through an employer stock plan, inheritance, or gift, the cost basis rules differ. For inherited assets, the cost basis "steps up" to the fair market value on the date of death โ€” potentially eliminating decades of accumulated gains (the stepped-up basis rule).

If you bought the same stock at different times and prices, each purchase is a separate "tax lot" with its own cost basis and holding period. When you sell, you can choose which lot(s) to sell using the "specific identification" method โ€” allowing you to sell the highest-basis lots first (minimizing your gain) or the longest-held lots (ensuring long-term treatment). Set your brokerage's cost basis method to "Specific ID" for maximum control.

๐Ÿ†“ The 0% Capital Gains Bracket

One of the most powerful and underutilized tax benefits: if your taxable income (including the capital gains) stays below $47,025 (single) or $94,050 (married filing jointly) in 2026, your long-term capital gains are taxed at 0%. Zero. You owe nothing.

This is especially valuable for retirees living on Social Security and modest retirement income, early retirees with low earned income (perfect for FIRE practitioners), and anyone in a transition year with below-average income (job change, sabbatical, part-time work). You can strategically sell appreciated investments in low-income years to "harvest gains" at 0% tax and reset your cost basis higher. This is the opposite of tax-loss harvesting โ€” and equally valuable in the right circumstances.

๐ŸŽฏ 6 Strategies to Reduce Capital Gains Tax

1. Hold for more than one year. The simplest and most impactful strategy. Waiting past the 12-month mark converts short-term gains (up to 37%) into long-term gains (0-20%).

2. Tax-loss harvesting. Sell losing investments to offset gains dollar-for-dollar. Excess losses offset up to $3,000 of ordinary income per year, with unlimited carryforward. See our complete guide.

3. Use the 0% bracket. In low-income years, sell winners at 0% capital gains tax and immediately repurchase to reset your cost basis. There is no wash sale rule for gains โ€” only for losses.

4. Donate appreciated assets to charity. Donating stock or fund shares that have appreciated avoids capital gains tax entirely, and you receive a charitable deduction for the full market value (if held more than one year). This is strictly better than selling, paying tax, and donating the cash.

5. Use tax-advantaged accounts. Gains inside a 401(k), IRA, or Roth IRA are not taxed when they occur. Roth accounts are never taxed on gains. The more of your portfolio you can shelter in tax-advantaged accounts, the less capital gains tax you owe. See our guide on maxing out your 401(k).

6. Hold until death (stepped-up basis). When you die, your heirs receive a "stepped-up" cost basis equal to the asset's value at your date of death. All accumulated gains are permanently erased. A stock purchased for $10,000 that has grown to $500,000 passes to your heirs with a $500,000 basis โ€” they owe zero capital gains on the $490,000 growth. This is one of the most significant tax benefits in the code and a key consideration in estate planning. See our Estate Planning Documents guide.

๐Ÿ”Ž Special Situations

Home sale exclusion: You can exclude up to $250,000 in capital gains ($500,000 married) from the sale of your primary residence if you lived there for at least 2 of the last 5 years. This exclusion is one of the most generous tax breaks available and is the reason most homeowners pay zero capital gains when selling. See our homeownership guide.

Cryptocurrency: Crypto gains are taxed the same as stock gains โ€” short-term or long-term depending on holding period. Starting in 2025, crypto is also subject to wash sale rules (no more selling and immediately rebuying to harvest losses). Brokerages and exchanges now report crypto transactions to the IRS on Form 1099-DA.

Collectibles: Long-term gains on collectibles (art, antiques, coins, precious metals) are taxed at a maximum rate of 28% โ€” higher than the standard 15-20% long-term rate. This applies to gold and silver as well.

๐Ÿงฎ Plan Your Tax Strategy
Capital gains are one piece of a comprehensive tax plan. Explore our Tax Planning Hub for strategies across income, investments, retirement, and estate planning.
๐Ÿ“Š Explore the Tax Planning Hub โ†’

โ“ Frequently Asked Questions

Do I pay capital gains tax inside my 401(k) or IRA?
+
No. Gains inside tax-advantaged retirement accounts are not taxed when they occur. In a Traditional 401(k)/IRA, you pay ordinary income tax when you withdraw. In a Roth IRA/401(k), you pay nothing on withdrawal (qualified distributions). Capital gains tax only applies to sales in taxable brokerage accounts, crypto wallets, and other non-retirement accounts.
What is the wash sale rule?
+
The wash sale rule prevents you from selling a security at a loss and buying a substantially identical security within 30 days before or after the sale. If triggered, the loss is disallowed for tax purposes. The rule applies to losses only, not gains. See our tax-loss harvesting guide for a detailed explanation and approved swap pairs.
How are mutual fund capital gains distributions taxed?
+
Even if you did not sell any shares, mutual funds distribute capital gains to shareholders annually (typically in December). These distributions are taxable to you in the year received. This is one reason tax-efficient index funds and ETFs are preferred โ€” they generate fewer distributions than actively managed funds.
Can capital losses offset ordinary income?
+
Yes, but with limits. Capital losses first offset capital gains dollar-for-dollar (no limit). Any remaining net capital loss can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately). Excess losses carry forward to future years indefinitely.
How does the 3.8% NIIT work?
+
The Net Investment Income Tax applies to the lesser of your net investment income or the amount by which your MAGI exceeds $200,000 (single) or $250,000 (married). Investment income includes capital gains, dividends, interest, and rental income. The NIIT is an additional tax on top of your capital gains rate, bringing the effective maximum rate to 23.8%.
Do I need to report crypto gains?
+
Yes. The IRS treats cryptocurrency as property. Every sale, trade, or use of crypto to purchase goods or services is a taxable event. Starting in 2026, exchanges issue Form 1099-DA reporting transactions. Failure to report crypto gains can result in penalties and interest. Keep records of all purchases and sales, including cost basis.