Every time you sell an investment at a profit, the IRS wants a share. According to the Tax Foundation, Americans realized over $2.9 trillion in capital gains in a single recent tax year. Understanding exactly how capital gains tax works is one of the highest-leverage financial skills you can develop, because the difference between short-term and long-term rates can literally cut your tax bill in half on the same profit.
This article is for educational purposes only and does not constitute professional tax or financial advice. Tax rules change annually. Consult a qualified CPA or tax professional for advice specific to your situation.
Quick Answer
Capital gains tax is a federal tax on the profit you earn when you sell an investment or asset for more than you paid. The rate depends on how long you held the asset: short-term gains (one year or less) are taxed as ordinary income (10% to 37%), while long-term gains (more than one year) are taxed at 0%, 15%, or 20%, depending on your taxable income. High earners may also owe an additional 3.8% Net Investment Income Tax.
| Type | Holding Period | 2026 Federal Tax Rate |
|---|---|---|
| Short-Term Capital Gain | 1 year or less | Ordinary income rates: 10% to 37% |
| Long-Term Capital Gain | More than 1 year | 0%, 15%, or 20% |
| Collectibles (art, coins, metals) | More than 1 year | Up to 28% |
| Depreciation Recapture (real estate) | Any | Up to 25% |
| Net Investment Income Tax (NIIT) | Any (high earners only) | +3.8% surcharge |
Key Definitions
Key Takeaways
- Capital gains are taxed differently depending on how long you held the asset. One year is the dividing line between short-term (higher rates) and long-term (lower rates).
- Long-term capital gains rates are 0%, 15%, or 20%, compared to ordinary income rates of up to 37% for short-term gains.
- Stocks, ETFs, mutual funds, real estate, crypto, and collectibles all generate capital gains when sold at a profit, though special rules apply to each.
- The home sale exclusion allows single filers to exclude up to $250,000 in gains and married filers up to $500,000 from the sale of a primary residence.
- 12 legal strategies exist to reduce capital gains tax, including tax-loss harvesting, using retirement accounts, and timing your sales carefully.
Who This Guide Is For
Designed for:
- Individual investors selling stocks, ETFs, or mutual funds
- Homeowners planning a real estate sale
- Crypto investors reporting gains or losses
- Retirees managing taxable portfolio sales
- Anyone who received appreciated assets as an inheritance or gift
Does not cover:
- Corporate or institutional capital gains
- International or cross-border tax treaties
- Personalized tax, legal, or investment advice
Table of Contents
- 1. What Are Capital Gains?
- 2. How Capital Gains Tax Works
- 3. Short-Term Capital Gains: 2026 Rates
- 4. Long-Term Capital Gains: 2026 Rates
- 5. What Changed for 2026
- 6. Special Rates (28%, 25%, QSBS 0%)
- 7. How to Calculate Your Capital Gains Tax
- 8. Real-World Examples (7 Scenarios)
- 9. Capital Gains on Stocks
- 10. Capital Gains on ETFs
- 11. Capital Gains on Mutual Funds
- 12. Capital Gains on Crypto
- 13. Capital Gains on Real Estate
- 14. 12 Strategies to Reduce Capital Gains Tax
- 15. State Capital Gains Taxes
- 16. Tax Forms: Schedule D, Form 8949 & More
- 17. Common Capital Gains Tax Mistakes
- 18. Frequently Asked Questions
- 19. Sources and References
What Are Capital Gains?
A capital gain is the profit you earn when you sell a capital asset for more than you paid for it. The asset can be a stock, bond, ETF, mutual fund, real estate property, cryptocurrency, collectible, or business interest. The amount you originally paid for the asset is called your cost basis.
The formula is straightforward:
If you bought 100 shares of a stock for $5,000 and later sold them for $8,000, your capital gain is $3,000. That $3,000 is what gets taxed, not the full $8,000 you received.
Realized vs. Unrealized Capital Gains
This distinction matters significantly for taxes:
- Unrealized gains exist on paper only. If your stock is worth $10,000 more than you paid for it but you have not sold it, you have an unrealized gain. No tax is owed yet.
- Realized gains occur when you actually sell the asset. This is called a taxable event, and this is when the IRS expects payment.
This is why many long-term investors follow a "buy and hold" strategy. Holding appreciated assets avoids triggering taxes until you actually need the money.
What Counts as a Capital Asset?
The IRS defines capital assets broadly. For most individual investors and homeowners, capital assets include:
- Stocks, bonds, ETFs, and mutual fund shares held in taxable brokerage accounts
- Real estate (primary residence, rental property, vacation homes, land)
- Cryptocurrency (the IRS treats it as property, not currency)
- Collectibles such as art, antiques, coins, wine, and precious metals
- Business interests and partnership stakes
- Options and warrants
Assets held inside tax-advantaged accounts like a 401(k) or IRA do not trigger capital gains tax when sold inside the account. Only distributions from those accounts are taxed, and under different rules.
Capital Gains Tax: Key Statistics
$2.9T
Total capital gains realized in a single recent tax year by American investors
Source: Tax Foundation historical data
17%
Maximum percentage-point tax savings when converting a short-term gain to long-term (37% vs. 20%)
Source: IRS Rev. Proc. 2025-32
$500K
Maximum tax-free gain on a primary home sale for married couples under Section 121
Source: IRS Publication 523
$49,450
2026 taxable income limit for single filers to pay 0% federal tax on long-term capital gains
Source: IRS Rev. Proc. 2025-32
3.8%
Additional Net Investment Income Tax for single filers earning over $200,000
Source: IRS Form 8960
$3,000
Annual ordinary income deduction limit for net capital losses, with unlimited carryforward
Source: IRS Topic No. 409
How Capital Gains Tax Works
The United States taxes capital gains based on two factors: the type of asset sold and how long you held it before selling. The holding period is the most important factor for most investors.
What Triggers a Capital Gains Tax Event?
A taxable event occurs when you:
- Sell a stock, ETF, mutual fund share, or bond in a taxable brokerage account at a profit
- Sell real estate at a gain (subject to the primary residence exclusion for qualifying homeowners)
- Sell, exchange, or use cryptocurrency to purchase goods or services
- Receive capital gain distributions from a mutual fund, even if you did not sell any shares yourself
- Exercise stock options and then sell the resulting shares
- Exchange shares in one mutual fund for shares in another within the same fund family (a common misconception is that this is not a taxable event)
How Capital Losses Work
When you sell an asset for less than you paid, you have a capital loss. Capital losses can offset capital gains dollar for dollar, reducing your taxable gain. If your losses exceed your gains in a given year, you can deduct up to $3,000 in net capital losses against your ordinary income. Any remaining losses carry forward to future tax years indefinitely, which is a valuable benefit. This strategy of intentionally selling losing investments to offset gains is called tax-loss harvesting.
Short-Term Capital Gains
If you sell an asset you have held for one year or less, the profit is a short-term capital gain. Short-term gains are taxed at your ordinary income tax rate, the same rate that applies to your wages and salary. For 2026, ordinary income tax brackets range from 10% to 37%.
This is why holding an investment for just one additional day beyond the one-year mark can save a significant amount in taxes. A high-income earner in the 37% bracket pays 37% on short-term gains but only 20% on long-term gains. On a $50,000 profit, the difference is $8,500 in tax savings from holding slightly longer.
2026 Short-Term Capital Gains Tax Rates (Ordinary Income Brackets)
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 10% | Up to $12,400 | Up to $24,800 | Up to $17,700 |
| 12% | $12,401 to $50,400 | $24,801 to $100,800 | $17,701 to $67,450 |
| 22% | $50,401 to $105,700 | $100,801 to $211,400 | $67,451 to $105,700 |
| 24% | $105,701 to $201,775 | $211,401 to $403,550 | $105,701 to $201,750 |
| 32% | $201,776 to $256,225 | $403,551 to $512,450 | $201,751 to $256,200 |
| 35% | $256,226 to $640,600 | $512,451 to $768,700 | $256,201 to $640,600 |
| 37% | Over $640,600 | Over $768,700 | Over $640,600 |
Source: IRS Revenue Procedure 2025-32. Brackets are for tax year 2026 (returns filed in 2027). Married Filing Separately (MFS) uses the same brackets as Single for ordinary income.
Capital Gains Tax: Holding Period Timeline
The date you sell determines your rate. One day can change your entire tax bracket.
Day 0: You Purchase the Asset
Holding period starts the day AFTER your purchase date
mo
Days 1 to 365: Short-Term Zone
Any sale here = ordinary income rates (up to 37%). Selling here can nearly double your tax bill vs. waiting.
days
Day 365: Still Short-Term
Exactly one year = still short-term. You must hold PAST the 1-year anniversary date.
days
Day 366+: Long-Term Rate Unlocked
Now eligible for 0%, 15%, or 20% preferential rates. High earners save up to 17 percentage points vs. short-term.
Source: IRS Topic No. 409
Long-Term Capital Gains
If you sell an asset you have held for more than one year, the profit is a long-term capital gain and qualifies for preferential tax rates of 0%, 15%, or 20%. These lower rates are a deliberate policy choice to encourage long-term investment in the economy.
The holding period begins the day after you purchase the asset and ends on the day you sell it. If you buy a stock on January 15 and sell it on January 15 of the following year, that is exactly one year, which is still short-term. You need to hold through January 16 to qualify for long-term treatment.
The 0% Long-Term Capital Gains Rate
One of the most underused opportunities in American tax law is the 0% long-term capital gains rate. If your taxable income falls below certain thresholds, you pay no federal tax at all on long-term capital gains. This is particularly valuable for:
- Early retirees in their first years of retirement before Social Security begins
- Young investors with moderate income
- Married couples who have structured their income carefully
- Anyone in the 10% or 12% ordinary income tax bracket
2026 Long-Term Capital Gains Tax Rate Brackets
| Rate | Single | Married Filing Jointly | Head of Household | Married Filing Separately |
|---|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,200 | Up to $49,450 |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 | $66,201 to $579,600 | $49,451 to $306,850 |
| 20% | Over $545,500 | Over $613,700 | Over $579,600 | Over $306,850 |
Source: IRS Revenue Procedure 2025-32. Thresholds apply to taxable income (after deductions), not gross income. Rates increased ~2.7% from 2025 per the Chained CPI-U adjustment.
2026 Capital Gains Tax Rates: Short-Term vs. Long-Term
Federal rates only. Source: IRS Rev. Proc. 2025-32. High earners add 3.8% NIIT to long-term rates.
On a $100,000 gain: short-term top rate = $37,000 tax. Long-term top rate = $20,000 tax. Difference: $17,000 saved by holding 366+ days.
Important: The Net Investment Income Tax (NIIT)
High earners pay an additional 3.8% Net Investment Income Tax on capital gains if their Modified Adjusted Gross Income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly). This effectively raises the top long-term rate to 23.8% for affected taxpayers. The NIIT is separate from regular capital gains tax and is calculated on Form 8960.
Capital Gains Tax Cheat Sheet
Source: IRS Revenue Procedure 2025-32, IRS Topic No. 409, IRS Publication 523
What Changed for Capital Gains Taxes in 2026
Every year, the IRS adjusts tax brackets for inflation. The 2026 adjustments, published in IRS Revenue Procedure 2025-32, produced meaningful increases to the income thresholds that determine your capital gains rate. If your income stayed roughly flat from 2025 to 2026, you may qualify for a lower bracket than last year.
2026 vs. 2025: Key Threshold Changes
| Filing Status | 2026 0% Rate Ceiling | Approx. Change vs. 2025 | 2026 15% Rate Upper Limit |
|---|---|---|---|
| Single | $49,450 | +$1,100 | $545,500 |
| Married Filing Jointly | $98,900 | +$2,200 | $613,700 |
| Head of Household | $66,750 | +$1,500 | $579,050 |
| Married Filing Separately | $49,450 | +$1,100 | $306,850 |
Source: IRS Rev. Proc. 2025-32. Changes are approximate and based on IRS Rev. Proc. 2024-40 (2025 figures) for comparison. Verify with IRS publications before filing.
Three Practical Takeaways for 2026
- Larger 0% bracket: A married couple can now earn up to $98,900 in taxable income and owe zero federal tax on long-term capital gains. That is approximately $2,200 more than in 2025, making capital gains harvesting strategies slightly more powerful this year.
- NIIT threshold is frozen: The Net Investment Income Tax threshold ($200,000 single / $250,000 MFJ) is not adjusted for inflation. More investors fall into NIIT territory each year as incomes rise while the threshold stays flat.
- Gift exclusion raised to $19,000: The annual gift tax exclusion increased from $18,000 (2025) to $19,000 per recipient in 2026, giving slightly more room for gifting appreciated assets to family members in lower brackets.
Special Capital Gains Tax Rates
Not all long-term capital gains qualify for the standard 0%/15%/20% rates. Certain asset types face different maximum rates that apply regardless of your income bracket:
| Asset Type | Maximum Federal Rate | Key Rule |
|---|---|---|
| Most stocks, ETFs, mutual funds, real estate | 20% (+ 3.8% NIIT for high earners) | Standard long-term rates apply |
| Collectibles (art, antiques, coins, stamps, gems, physical gold/silver) | 28% | Applies even to long-term gains held many years |
| Depreciation recapture (Section 1250 property) | 25% | Applies to gain equal to prior depreciation deductions on real estate |
| Qualified Small Business Stock (Section 1202) | 0% (up to exclusion limit) | Up to $10M or 10x basis excluded after 5-year hold |
| Net Investment Income Tax surcharge | +3.8% | Applies when MAGI exceeds $200K (single) or $250K (MFJ) |
| State capital gains tax | Varies by state | Some states have 0%; others add up to 13.3% (CA) |
Sources: IRS Topic No. 409; IRS Publication 550
How to Calculate Your Capital Gains Tax
Here is the step-by-step process for calculating capital gains tax, with a worked example.
Step 1: Determine Your Cost Basis
Your cost basis is what you paid for the asset, plus any commissions or fees paid at purchase. For stocks bought in multiple lots at different prices, your broker tracks this for you, though you should verify it.
Step 2: Calculate Your Gain or Loss
Step 3: Determine Short-Term vs. Long-Term
Check your holding period. If you held more than one year, it is long-term. One year or less is short-term.
Step 4: Apply the Correct Rate
Use the tables above to find your rate based on your filing status and total taxable income for the year.
Worked Example: Three Investment Transactions
| Investment | Cost Basis | Sale Price | Held | Gain/Loss | Type |
|---|---|---|---|---|---|
| Tech Stock A | $12,000 | $20,000 | 26 months | +$8,000 | Long-term |
| Index ETF B | $8,000 | $11,000 | 9 months | +$3,000 | Short-term |
| Bond Fund C | $5,000 | $3,500 | 14 months | -$1,500 | Long-term loss |
| Net Result | $25,000 | $34,500 | +$9,500 | Mixed |
For a single filer with $80,000 in ordinary income, the tax calculation would be:
- Long-term gain: $8,000 minus $1,500 long-term loss = $6,500 net long-term gain taxed at 15% = $975
- Short-term gain: $3,000 taxed at 22% ordinary rate = $660
- Total capital gains tax: $1,635
Without the long-term loss to offset, the long-term tax would have been $1,200. Tax-loss harvesting saved $225 in this example alone.
Try Our Free Financial Calculators
Model your exact tax scenario with our net worth, compound interest, and retirement calculators. See how changing your holding period or income level affects your capital gains tax bill.
Capital Gains Tax: Real-World Examples
Abstract numbers mean little without context. Here are seven realistic scenarios showing exactly how capital gains tax works for different investor types in 2026.
Example A: Stock Investor (Long-Term)
Single filer, $95,000 in ordinary taxable income
- Bought 200 shares of a tech stock at $40/share ($8,000 total) in January 2024
- Sold all 200 shares at $70/share ($14,000 total) in February 2026 (held 25 months)
- Capital gain: $6,000 (long-term, since held over 1 year)
- Taxable income after deductions: $95,000 (within the 15% long-term bracket)
- Federal capital gains tax: $6,000 x 15% = $900
- Had they sold at 11 months instead: $6,000 x 22% = $1,320. That is $420 more tax for holding just one fewer month
Example B: Crypto Investor (Short-Term vs. Long-Term)
Married filing jointly, $130,000 in ordinary taxable income
- Bought 2 ETH at $2,800 each ($5,600 total) in August 2025
- Sold both in March 2026 (7 months later) at $4,100 each ($8,200 total)
- Capital gain: $2,600, short-term (held less than 1 year)
- Combined taxable income with gain: $132,600, taxed at 22% ordinary rate
- Federal tax on crypto gain: $2,600 x 22% = $572
- If held until September 2026 (13 months): same $2,600 taxed at 15% = $390, saving $182
- Note: Every crypto trade, swap, or exchange is a separate taxable event requiring Form 8949
Example C: Home Sale (Primary Residence Exclusion)
Married filing jointly, lived in home 6 years
- Bought home in 2019 for $350,000 (adjusted basis after $30,000 in improvements: $380,000)
- Sold in 2026 for $720,000
- Total gain: $720,000 - $380,000 = $340,000
- Married filing jointly exclusion under IRC Section 121: $500,000
- Taxable gain after exclusion: $0 (gain of $340,000 is fully below the $500,000 threshold)
- Federal capital gains tax: $0
- Key requirement: owned and used as primary residence for at least 2 of the last 5 years before sale
Example D: Rental Property (Depreciation Recapture)
Single filer, $120,000 in ordinary taxable income
- Bought rental property in 2018 for $200,000 (land value $40,000, depreciable basis $160,000)
- Claimed $32,000 in depreciation over 8 years ($160,000 / 27.5 years x 8 years)
- Adjusted basis at sale: $200,000 - $32,000 = $168,000
- Sold in 2026 for $310,000
- Total gain: $310,000 - $168,000 = $142,000
- Depreciation recapture: $32,000 taxed at 25% = $8,000 (Section 1250 recapture)
- Remaining long-term gain: $110,000 taxed at 15% = $16,500
- Total federal tax: $24,500
Example E: Retiree Using the 0% Rate
Married filing jointly, age 64, early retirement
- Ordinary taxable income (Social Security + Roth IRA withdrawals): $62,000
- Long-term capital gains from selling appreciated index funds: $30,000
- Combined income: $92,000, still below the 2026 MFJ 0% threshold of $98,900
- Federal capital gains tax on the $30,000 gain: $0
- This is called "capital gains harvesting," which means deliberately realizing gains in low-income years to reset cost basis tax-free
- Strategy note: Using Roth IRA withdrawals (not traditional IRA) keeps ordinary income low enough to stay in the 0% bracket
Example F: High-Net-Worth Investor (20% Rate + NIIT)
Single filer, $600,000 in ordinary taxable income
- Sold a diversified stock portfolio held for 4 years: cost basis $250,000, sale proceeds $620,000
- Long-term capital gain: $370,000
- Ordinary income of $600,000 exceeds the 20% threshold for single filers ($545,500 in 2026)
- Federal LTCG rate: 20%. Federal LTCG tax: $370,000 x 20% = $74,000
- Net Investment Income Tax (NIIT): income far exceeds $200,000 threshold, so 3.8% applies to all $370,000 of gain
- NIIT: $370,000 x 3.8% = $14,060
- Total federal capital gains tax: $74,000 + $14,060 = $88,060 (effective 23.8% combined rate)
- Mitigation options: charitable giving of appreciated shares avoids both the 20% and NIIT entirely; tax-loss harvesting can offset a portion; spreading the sale over two tax years can keep income below the 20% threshold
Example G: Collectibles (Rare Coin Collection at the 28% Rate)
Single filer, $85,000 in ordinary taxable income
- Bought a rare gold coin collection in 2019 for $18,000
- Sold in 2026 for $41,000 (held 7 years; clearly long-term)
- Capital gain: $23,000
- Asset type: Collectibles (physical gold coins are collectibles under IRC Section 408(m)(3))
- The standard 0%/15%/20% long-term rates do NOT apply to collectibles
- Federal collectibles rate: 28% regardless of holding period or income bracket
- Federal capital gains tax: $23,000 x 28% = $6,440
- Comparison: If this had been stock with the same $23,000 gain, the tax at 15% would be $3,450, saving $2,990
- Note: Gold ETFs that hold physical gold (such as GLD) are also subject to the 28% collectibles rate via pass-through rules. Gold ETFs structured as futures contracts may qualify for the 60/40 blended rate instead. Verify the fund structure before assuming the standard LTCG rate applies.
"The 0% long-term capital gains rate is one of the most powerful and underused tools in retirement planning. A couple in early retirement can potentially realize tens of thousands of dollars in gains each year completely tax-free with careful income management."
Asim Ahmad
Capital Gains on Stocks
Stocks are the most common source of capital gains for individual investors. The rules are straightforward but a few details trip up investors regularly.
How Stock Capital Gains Work
When you sell shares in a taxable brokerage account at a profit, you realize a capital gain. If you hold the shares for more than one year before selling, those gains are long-term and taxed at preferential rates. If you sell within one year, the gains are short-term and taxed as ordinary income.
Specific Share Identification
If you bought shares of the same stock at different prices over time (dollar-cost averaging), each lot has a different cost basis. When you sell, you can choose which lot to sell using the specific identification method, which lets you select the highest-cost shares first to minimize your gain. Your broker must support this method, and you must instruct them at the time of sale. Without specific instruction, most brokers default to FIFO (first in, first out), which may not be optimal for your taxes.
Dividend Reinvestment Plans (DRIPs)
If you automatically reinvest dividends, each reinvestment creates a new lot with its own cost basis and holding period. Over many years, this creates dozens of small lots to track. Your broker's cost basis tracking should handle this, but it is worth reviewing when you sell to ensure accuracy.
Stock Options and Employee Equity
Incentive Stock Options (ISOs) and Non-Qualified Stock Options (NSOs) have complex tax treatment that goes beyond standard capital gains rules. Generally, gains from ISO shares held more than two years from the grant date and one year from exercise qualify for long-term capital gains rates. NSOs generate ordinary income at exercise. Consult a tax professional if you have equity compensation.
Capital Gains on ETFs
Exchange-Traded Funds (ETFs) are among the most tax-efficient investment vehicles available, and understanding why helps you use them strategically.
Why ETFs Are Tax-Efficient
Most ETFs use an "in-kind creation and redemption" mechanism. When large institutional investors (called authorized participants) want to redeem ETF shares, they exchange their ETF shares for the underlying securities rather than forcing the fund to sell stocks for cash. This means the fund rarely has to sell appreciated positions to meet redemptions, which would otherwise trigger capital gains distributions that all shareholders would owe tax on.
Index ETFs had capital gains distributions of near zero in most recent years, compared to actively managed mutual funds which distributed significant taxable gains. For investors in taxable accounts, this difference in tax drag compounds significantly over decades.
When You Owe Tax on ETFs
You owe capital gains tax on ETFs when you personally sell your shares. The same short-term vs. long-term rules apply: held more than one year means long-term rates. Occasionally, even ETFs distribute capital gains (bond ETFs are more likely to do this), which appear on your Form 1099-DIV at year end.
Capital Gains on Mutual Funds
Mutual funds create a unique tax situation that surprises many investors: you can owe capital gains tax in a year when your fund went DOWN in value.
How Mutual Fund Capital Gain Distributions Work
Mutual funds must distribute at least 90% of their realized gains to shareholders annually. When a fund manager sells appreciated holdings during the year (to rebalance, meet redemptions, or pursue strategy changes), the realized gains flow through to all shareholders as a capital gains distribution, even if you personally did not sell any shares.
If you hold the fund at the distribution record date, you receive the distribution and owe tax on it, even if you bought into the fund days before the distribution. This is called "buying the dividend" and is a common mistake for investors purchasing mutual funds in taxable accounts in November or December when distributions typically occur.
How to Minimize Mutual Fund Tax Drag
- Hold actively managed mutual funds in tax-advantaged accounts (401(k), IRA) where distributions are not taxed
- Use index ETFs instead of index mutual funds in taxable accounts for superior tax efficiency
- Check a fund's historical capital gain distribution record before buying in a taxable account
- Avoid purchasing mutual funds immediately before the annual distribution date
Capital Gains on Crypto
The IRS issued guidance classifying cryptocurrency as property, not currency, in 2014. This means every crypto transaction that results in a gain or loss is potentially taxable. The rules are the same as stocks: short-term gains taxed as ordinary income, long-term gains at preferential rates.
What Counts as a Taxable Crypto Event
- Selling cryptocurrency for US dollars or another fiat currency
- Exchanging one cryptocurrency for another (Bitcoin to Ethereum is a taxable event)
- Using cryptocurrency to purchase goods or services
- Receiving cryptocurrency as payment for work (taxed as ordinary income at receipt, then as capital gain when sold)
- Receiving staking rewards or mining income (taxed as ordinary income at fair market value when received)
What Is NOT a Taxable Crypto Event
- Buying cryptocurrency with US dollars (no tax until you sell)
- Transferring cryptocurrency between your own wallets
- Holding cryptocurrency that has appreciated in value (unrealized gains)
Crypto Cost Basis Tracking
Tracking cost basis across hundreds of crypto transactions across multiple exchanges and wallets is genuinely complex. Crypto tax software like Koinly, CoinTracker, or TaxBit can automate this process. Starting with proper record-keeping when you begin investing in crypto is far easier than reconstructing records years later.
Capital Gains on Real Estate
Real estate generates capital gains when sold at a profit, but a powerful exclusion makes the family home one of the most tax-advantaged assets in America.
The Primary Residence Exclusion
Under IRS Section 121, qualifying homeowners can exclude substantial gains from the sale of their primary residence:
- Single filers: Exclude up to $250,000 in capital gains
- Married filing jointly: Exclude up to $500,000 in capital gains
To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale. You can use this exclusion once every two years. Gains above the exclusion threshold are taxed at long-term capital gains rates if the holding period exceeds one year.
Given the significant home price appreciation in recent years, more homeowners than ever may have gains that exceed these thresholds. See our detailed Home Sale Capital Gains Report for data on how many homeowners are at risk of exceeding the exclusion.
Rental Property Capital Gains
Rental properties do not qualify for the Section 121 exclusion unless you converted them to a primary residence and meet the two-year residency test. Gains from rental property sales are subject to:
- Long-term capital gains tax (0%, 15%, or 20%) on appreciation
- Depreciation recapture tax at 25% on the portion of gain attributable to prior depreciation deductions
The depreciation recapture portion is frequently overlooked by rental property owners and can result in a significant unexpected tax bill at sale. A CPA should model your rental property's tax exposure before you list it for sale.
1031 Exchange: Deferring Real Estate Capital Gains
A 1031 exchange (named after IRS Code Section 1031) allows real estate investors to defer all capital gains tax by rolling the proceeds from one investment property into a like-kind replacement property. Strict rules apply: you must identify the replacement property within 45 days of the sale and close on it within 180 days. A qualified intermediary must hold the funds between transactions.
"The largest mistake most investors make is selling profitable investments before long-term tax treatment applies. We have seen investors save $5,000 to $20,000 or more on a single transaction simply by waiting 30 to 60 additional days to cross the one-year threshold."
Asim Ahmad
How to Reduce Capital Gains Tax: 12 Legal Strategies
1. Hold Investments for More Than One Year
The single most impactful strategy. Converting a short-term gain to a long-term gain can reduce your tax rate from as high as 37% to as low as 0%, depending on your income. Before selling any profitable investment, check your holding period and consider whether waiting a few additional months is worthwhile.
2. Use Tax-Loss Harvesting
Sell underperforming investments at a loss to offset gains from winning investments. Losses first offset gains of the same type (short-term losses offset short-term gains, long-term losses offset long-term gains), then cross-offset the other type. Up to $3,000 in net losses can offset ordinary income annually, with remaining losses carried forward indefinitely. Learn the full strategy in our Tax-Loss Harvesting Guide.
3. Maximize Contributions to Tax-Advantaged Accounts
Investments inside 401(k)s and IRAs are never subject to capital gains tax when bought or sold within the account. Contributions to a traditional 401(k) up to the IRS annual contribution limit also reduce your current taxable income. The Roth IRA is even more powerful: investments grow tax-free, and qualified withdrawals in retirement are never taxed, including all accumulated gains.
4. Take Advantage of the 0% Rate
If your taxable income is below $49,450 (single) or $98,900 (married filing jointly) in 2026, you pay zero federal tax on long-term capital gains. Strategic income planning, especially in early retirement, can allow you to realize significant gains at 0%. This is sometimes called "Roth conversion harvesting" or "capital gains harvesting" and is a powerful planning tool.
5. Give Appreciated Assets to Charity
Donating appreciated stock, ETFs, or real estate directly to a qualified charity allows you to deduct the full fair market value while avoiding capital gains tax entirely on the appreciation. This is generally more tax-efficient than selling the asset, paying taxes, and donating the after-tax cash. For large charitable donations, a Donor-Advised Fund (DAF) allows you to bundle donations and take the deduction in a high-income year.
6. Gift Appreciated Assets Strategically
If you give appreciated assets to family members in lower tax brackets (such as adult children), those recipients may qualify for the 0% long-term capital gains rate when they sell. The annual gift tax exclusion is $19,000 per recipient per year in 2026 (per IRS Rev. Proc. 2025-32), and unlimited for direct tuition and medical payments made to qualifying institutions and providers. This does not avoid tax permanently but shifts it to someone in a lower bracket.
7. Use the Home Sale Exclusion
The $250,000/$500,000 primary residence exclusion is one of the largest tax breaks available to individual taxpayers. Planning your home sale timing to qualify (two years of ownership and residence) and avoiding the use of the exclusion more than once every two years maximizes its value.
8. Use a 1031 Exchange for Real Estate
Real estate investors can defer all capital gains tax indefinitely by continuously rolling proceeds into new like-kind properties through 1031 exchanges. This strategy allows wealth to compound on a pre-tax basis over decades. Combined with the step-up in basis at death, heirs can potentially inherit appreciated real estate and never pay the deferred gains.
9. Invest in Opportunity Zones
The Tax Cuts and Jobs Act created Qualified Opportunity Zones (QOZs) that allow investors to defer and potentially reduce capital gains by reinvesting gains into designated low-income communities. Investments held in Qualified Opportunity Funds for 10 or more years can eliminate all capital gains on the appreciation within the fund entirely. The rules are complex and the investment risk is real, so this strategy requires careful due diligence.
10. Consider Tax-Managed Funds
Some mutual funds are specifically designed to minimize capital gains distributions through strategies like loss harvesting within the fund, low portfolio turnover, and careful lot selection when selling holdings. Tax-managed funds are particularly useful for investors who prefer active management but hold assets in taxable accounts.
11. Time Your Income in Retirement
Retirees who can control when they receive income have significant power over their capital gains rate. By keeping total taxable income below the 0% long-term capital gains threshold in certain years (through Roth withdrawals rather than traditional IRA withdrawals, for example), retirees can sell appreciated assets tax-free.
12. Get a Step-Up in Basis for Heirs
When you inherit assets, the cost basis is "stepped up" to the fair market value on the date of death. This means all gains that accrued during the decedent's lifetime are effectively wiped out for tax purposes. For long-term investors with highly appreciated assets, this is a significant estate planning tool. Holding assets rather than selling and gifting them can preserve the step-up benefit for heirs.
State Capital Gains Taxes: The Second Tax Bill Most Investors Overlook
Federal capital gains tax is only half the picture. Most states also impose their own capital gains tax, and the differences between states are dramatic. Unlike the federal system, most states offer no preferential rate for long-term gains.
| State | Top Rate on Capital Gains | Treatment |
|---|---|---|
| California | Up to 13.3% | Taxed as ordinary income; no long-term preference |
| Hawaii | Up to 11% | Taxed as ordinary income |
| New Jersey | Up to 10.75% | Taxed as ordinary income |
| New York | Up to 10.9% | Taxed as ordinary income |
| Oregon | 9.9% | Taxed as ordinary income |
| Minnesota | 9.85% | Taxed as ordinary income |
| Vermont | Up to 8.75% | Taxed as ordinary income |
| Wisconsin | Up to 7.65% | Taxed as ordinary income |
| Washington | 7% (above $262,000) | Capital gains excise tax enacted 2022; applies to long-term gains above annual threshold |
| Virginia | 5.75% | Taxed as ordinary income |
| Massachusetts | 5% long-term / 8.5% short-term | One of the few states with a separate lower rate for long-term gains |
| North Carolina | 4.75% | Taxed as ordinary income; flat rate |
| Colorado | 4.4% | Taxed as ordinary income; flat rate |
| Arizona | 2.5% | Flat income tax rate enacted 2023; applies to all income including capital gains |
| Texas, Florida, Nevada, Wyoming, South Dakota, Alaska, Tennessee | 0% | No state income tax on individuals; no capital gains tax |
State rates are for general guidance only. Verify current rates with your state's department of revenue or a licensed CPA before making tax decisions based on state residency.
Combined Rate Example
A California resident in the top federal bracket could owe up to 20% federal + 3.8% NIIT + 13.3% California state = approximately 37.1% combined on long-term gains. A Texas resident with identical income owes only the 23.8% federal rate. Your state of legal residence at the time of sale (not where the asset is located) determines state tax liability for most investments.
Tax Forms Used to Report Capital Gains
Capital gains are not self-reported on a single line. The IRS requires specific forms depending on the type of income. Understanding which forms apply prevents errors and missed deadlines:
| Form | Purpose | Who Receives It |
|---|---|---|
| Form 1099-B | Reports proceeds from broker and barter exchange transactions; your broker sends this | Anyone who sold securities through a broker in a taxable account |
| Form 1099-DIV | Reports dividends and capital gain distributions from mutual funds and ETFs | Mutual fund and ETF shareholders receiving distributions |
| Form 8949 | Sales and other dispositions of capital assets; complete this using your 1099-B data | Anyone with capital asset sales to report |
| Schedule D | Summarizes all capital gains and losses from Form 8949 and flows to your Form 1040 | Anyone reporting capital gains or losses |
| Form 8960 | Calculates the Net Investment Income Tax (NIIT); required if your MAGI exceeds the threshold | High earners with investment income above $200K (single) or $250K (MFJ) |
| Form 4797 | Sales of business property, including depreciation recapture on rental real estate | Real estate investors selling rental or business property |
Sources: IRS Form 8949; Schedule D Instructions; Form 8960 Instructions
Common Capital Gains Tax Mistakes
1. Not Tracking Cost Basis Across Purchases
If you bought shares of the same stock over many years at different prices, each purchase creates a separate lot. Without tracking this carefully, you cannot accurately calculate your gain or choose which shares to sell. Your broker is required to report cost basis for securities purchased after 2011, but older holdings or transferred accounts may not have accurate basis records.
2. Selling Just Before the One-Year Mark
Many investors sell out of impatience without checking their holding period. A stock held for 11 months and 28 days triggers short-term rates. The same stock held two more days qualifies for long-term rates. Always check the exact date before selling a profitable position.
3. Violating the Wash-Sale Rule
If you sell an investment at a loss and buy the same or substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The loss is not permanently lost (it adjusts your cost basis in the new shares), but you cannot deduct it in the current year. This is the most common tax-loss harvesting mistake.
4. Buying Mutual Funds Before the Distribution Date
Purchasing a mutual fund in November or December without checking the upcoming capital gain distribution date can result in owing tax on gains you did not benefit from. Check fund companies' annual distribution estimates (usually published in October and November) before investing.
5. Forgetting About Crypto Transactions
Every cryptocurrency exchange, trade, or use-case is potentially a taxable event. Many investors who started with crypto in recent years have hundreds of unreported transactions. The IRS now requires taxpayers to answer whether they had any digital asset transactions on their Form 1040, and failure to report is a serious risk.
6. Ignoring State Capital Gains Tax
Many states tax capital gains at ordinary income rates, with no preferential treatment for long-term gains. California, New York, and New Jersey, for example, tax capital gains the same as ordinary income. In California, the combined federal and state rate can exceed 37% on long-term gains for high earners. State taxes should factor into any capital gains planning strategy.
7. Not Using Capital Losses Strategically
Investors sometimes avoid selling losing positions out of hope or pride. Every unrealized loss in a taxable account is a potential asset: it can offset current or future gains and reduce your tax bill. Periodic portfolio reviews specifically to identify harvestable losses are a standard practice among tax-savvy investors.
8. Confusing Adjusted Basis
Your cost basis is not always just what you paid. It can be adjusted for stock splits (basis per share changes), dividend reinvestments (each DRIP creates a new lot), return of capital distributions, property improvements (for real estate), and inherited assets (stepped-up basis). Using the wrong basis overstates or understates your gain.
9. Missing the NIIT Threshold
High earners frequently underestimate their exposure to the 3.8% Net Investment Income Tax. NIIT applies to the lesser of your net investment income or the amount by which your MAGI exceeds $200,000 (single) or $250,000 (married). A large capital gain can push you over this threshold unexpectedly, adding 3.8% to your effective rate.
10. Failing to Plan Before a Large Sale
The worst time to think about capital gains tax is after you have agreed to sell an asset. Tax planning before a major sale (of a business, rental property, or large investment position) can identify strategies that are unavailable after the fact: installment sales, opportunity zone investments, charitable vehicles, or timing adjustments. Once the sale closes, your options narrow significantly.
Quick Answers
What is capital gains tax?
A federal tax on the profit you earn when you sell an asset (stock, real estate, crypto, etc.) for more than you paid. The rate depends on how long you held the asset and your income.
How much is capital gains tax in 2026?
Short-term gains (held 1 year or less) are taxed as ordinary income at 10% to 37%. Long-term gains (held more than 1 year) are taxed at 0%, 15%, or 20% depending on your taxable income. High earners add 3.8% NIIT.
What is the 0% capital gains bracket for 2026?
Single filers with taxable income up to $49,450 pay 0% on long-term gains. Married filing jointly: up to $98,900. These thresholds apply to taxable income after deductions, per IRS Rev. Proc. 2025-32.
How do capital losses work?
Capital losses offset capital gains dollar for dollar. If losses exceed gains, up to $3,000 can offset ordinary income per year. Any remaining losses carry forward indefinitely to future tax years.
Are crypto gains taxable?
Yes. The IRS treats cryptocurrency as property. Every sale, exchange, or use of crypto to buy goods is a taxable event. Gains held over one year qualify for long-term rates; gains under one year are ordinary income.
Frequently Asked Questions About Capital Gains Tax
What is the capital gains tax rate for 2026?
For long-term capital gains (assets held more than one year), the federal rates are 0%, 15%, or 20%, depending on your taxable income and filing status. Short-term gains are taxed at your ordinary income rate, which ranges from 10% to 37%. High earners may also owe the additional 3.8% Net Investment Income Tax.
Do I owe capital gains tax if I reinvest the proceeds?
Yes. The taxable event is the sale, not what you do with the money afterward. Whether you reinvest in another stock, buy a car, or let the cash sit in your account, the capital gain is realized and owed at the time of sale. The only exceptions are tax-deferred exchanges like 1031 exchanges for real estate.
How do capital losses offset gains?
Capital losses first offset gains of the same type: short-term losses offset short-term gains, and long-term losses offset long-term gains. Remaining losses then offset the other type. If you still have net losses after all offsets, up to $3,000 can be deducted against ordinary income per year. Unused losses carry forward indefinitely to future tax years.
What is the 0% capital gains rate and who qualifies?
For 2026, single filers with taxable income up to $49,450 and married couples with taxable income up to $98,900 pay 0% federal tax on long-term capital gains (per IRS Revenue Procedure 2025-32). Taxable income is after deductions (including the standard deduction), so many middle-income households qualify. This rate is one of the most underused benefits in the tax code.
Are dividends taxed as capital gains?
Qualified dividends from most US corporations and qualified foreign corporations are taxed at the same preferential rates as long-term capital gains (0%, 15%, or 20%) if you hold the stock for more than 60 days around the ex-dividend date. Nonqualified dividends, including those from REITs, money market funds, and short-held positions, are taxed at ordinary income rates.
Does selling my home trigger capital gains tax?
Usually not for most homeowners. The primary residence exclusion allows single filers to exclude up to $250,000 in gains and married couples up to $500,000, provided you owned and lived in the home for at least two of the five years before the sale. Only gains exceeding these thresholds are taxed. The exclusion can be used once every two years.
How is cryptocurrency taxed?
The IRS treats cryptocurrency as property. Every sale, exchange, or use of crypto to purchase goods or services is a potentially taxable event. Gains are classified as short-term (held one year or less) or long-term (held more than one year) and taxed at the applicable rates. Crypto received as payment or from mining is taxed as ordinary income at the fair market value when received.
What is the wash-sale rule?
The wash-sale rule prevents investors from claiming a tax loss on a security they immediately repurchase. If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes. The disallowed loss is added to the cost basis of the new shares rather than being permanently lost.
Do I owe capital gains tax on a gift?
The recipient of a gifted asset takes on the donor's original cost basis and holding period. When they eventually sell, they will owe capital gains tax based on that original basis. The donor does not owe capital gains at the time of the gift. Annual gifts up to $19,000 per recipient (2026, per IRS Rev. Proc. 2025-32) do not require a gift tax return.
What happens to capital gains when I die?
Appreciated assets in a taxable account receive a "step-up in basis" at death, resetting the cost basis to the fair market value on the date of death. Heirs who inherit and immediately sell pay no capital gains tax on the appreciation that occurred during the decedent's lifetime. This is one of the most powerful estate planning benefits in US tax law.
Can capital gains push me into a higher tax bracket?
Long-term capital gains are taxed separately and do not directly push your ordinary income into a higher bracket. However, they are added to your income when determining which long-term capital gains rate applies. A large capital gain can push you from the 0% long-term rate to the 15% rate, or from the 15% rate to the 20% rate. Capital gains also count toward income thresholds for NIIT and certain phase-outs.
Do I owe capital gains tax on inherited investments?
Inherited investments receive a stepped-up basis to the fair market value on the date of death. If you sell inherited assets shortly after inheriting them, your gain is typically small (the difference between the stepped-up basis and the sale price), and any gain is automatically treated as long-term regardless of how long the decedent held the asset.
What is the Net Investment Income Tax?
The Net Investment Income Tax (NIIT) is a 3.8% surtax on investment income (including capital gains, dividends, interest, and rental income) for taxpayers above certain MAGI thresholds: $200,000 for single filers and $250,000 for married filing jointly. The NIIT applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. It is calculated separately on IRS Form 8960.
Is there capital gains tax on a 401(k) or IRA?
No. Investments inside traditional 401(k)s and IRAs can be bought and sold without triggering capital gains tax. Distributions from traditional accounts are taxed as ordinary income (not capital gains) when withdrawn in retirement. Roth accounts are even better: qualified withdrawals, including all investment gains, are completely tax-free.
What is tax-loss harvesting and how does it reduce capital gains?
Tax-loss harvesting is the practice of intentionally selling investments that are worth less than you paid for them to generate tax losses. Those losses can then offset capital gains you have realized elsewhere in your portfolio, reducing your taxable gain. The key is to avoid the wash-sale rule by not repurchasing the same security within 30 days. See our full Tax-Loss Harvesting Guide for detailed strategies.
Are there different capital gains rates for collectibles?
Yes. Gains from collectibles such as art, antiques, coins, stamps, and precious metals are taxed at a maximum federal rate of 28%, regardless of your income or holding period. This rate is higher than the maximum 20% rate on most other long-term capital gains. Gold and silver ETFs that hold physical metal are also subject to the 28% collectibles rate.
What is a 1031 exchange?
A 1031 exchange (named after IRS Section 1031) allows real estate investors to defer capital gains tax by rolling the proceeds from selling one investment property into a like-kind replacement property. The exchange must be structured properly with a qualified intermediary, and strict timelines apply: 45 days to identify the replacement property and 180 days to close. 1031 exchanges do not apply to stocks, bonds, personal property, or primary residences.
How does the capital gains tax rate compare to ordinary income tax?
For most investors, long-term capital gains rates are significantly lower than ordinary income rates. A single filer earning $100,000 in wages pays 22% on additional ordinary income but only 15% on long-term capital gains. At the highest income levels, the difference narrows: a top ordinary income rate of 37% compares to a top long-term capital gains rate of 23.8% (including NIIT), still a meaningful gap.
Can I offset capital gains with business losses?
Ordinary business losses from a sole proprietorship or pass-through entity can offset capital gains if they are deductible under the at-risk and passive activity rules. Net Operating Losses (NOLs) can be carried forward to offset future income including capital gains, subject to an 80% of taxable income limitation per year under current law. This area is complex and a tax professional should advise on specific situations.
What records do I need to keep for capital gains?
Keep records of: original purchase price and date for every investment, any commissions or fees paid, records of stock splits or dividend reinvestments, and sale proceeds and dates. For real estate, also keep records of any capital improvements made during ownership. The IRS recommends keeping investment records for at least three years after the date you file the return reporting the sale, though many advisors recommend seven years or longer.
Sources and References
This article is based on primary government sources and independent tax policy research. All tax brackets and thresholds are sourced directly from IRS Revenue Procedure 2025-32, the official 2026 inflation adjustment publication. We do not cite personal finance blogs or unverified secondary sources for regulatory figures.
- IRS Revenue Procedure 2025-32: 2026 inflation adjustments, capital gains brackets, gift tax exclusion
- IRS Topic No. 409: Capital Gains and Losses: foundational IRS guidance on capital gains taxation
- IRS Publication 550: Investment Income and Expenses: comprehensive guidance on reporting investment income
- IRS Publication 523: Selling Your Home: Section 121 primary residence exclusion rules
- IRS Form 8960 Instructions: Net Investment Income Tax calculation
- IRS Digital Assets Guidance: cryptocurrency as property; Notice 2014-21
- IRS Opportunity Zones: Qualified Opportunity Zone fund rules
- Tax Foundation: Historical Capital Gains Tax Data: $2.9 trillion in capital gains realized
- Tax Foundation: 2026 Tax Brackets: independent verification of IRS bracket data
- SEC Investor Education: investor guidance on investment taxation
Editorial Process
This article was researched using IRS publications, SEC investor education materials, FINRA guidance, and official government sources. Tax bracket figures are sourced directly from IRS Revenue Procedure 2025-32 (the official 2026 inflation adjustment document). Capital gains thresholds are verified against IRS Topic No. 409 and the Tax Foundation's independent analysis. Content is reviewed periodically to reflect changes in tax law and annual inflation adjustments. This article does not constitute legal or tax advice. Consult a qualified CPA or tax professional for personalized guidance.
Sources Reviewed
IRS (irs.gov) • SEC (sec.gov) • Tax Foundation (taxfoundation.org) • FINRA (finra.org)
Published: June 17, 2026 • Last Reviewed: June 17, 2026 • Next Scheduled Review: January 2027
Related Reading
Capital Gains Deep-Dive Guides
- Short-Term Capital Gains Tax 2026: Rates, Brackets & How to Reduce Them
- Long-Term Capital Gains Tax 2026: 0% Rate, Brackets & Strategies
- Tax-Loss Harvesting Complete Guide 2026 (With 6 Examples)
- How to Reduce Capital Gains Tax Legally: 9 Proven Strategies
- Capital Gains Tax by State 2026: All 50 States Compared
Frequently Asked Questions
What is the capital gains tax rate for 2026?
Do I owe capital gains tax if I reinvest the proceeds?
How do capital losses offset gains?
What is the 0% capital gains rate and who qualifies?
Are dividends taxed as capital gains?
Does selling my home trigger capital gains tax?
How is cryptocurrency taxed?
What is the wash-sale rule?
Do I owe capital gains tax on a gift?
What happens to capital gains when I die?
Put the guide into practice



