On this page
- Capital Gains Definition and Holding Periods
- Long-Term Capital Gains Tax Rates (2024)
- Tax Difference: Short-Term vs. Long-Term
- Short-Term Capital Gains Example
- Tax-Loss Harvesting
- Wash Sale Rule
- Worked Example: Tax-Loss Harvesting Portfolio
- Qualified Dividends vs. Ordinary Dividends
- Strategy: Avoiding Wash Sales While Harvesting
- Inherited Basis Step-Up
- Action Items: Minimize Capital Gains Taxes
Capital Gains Definition and Holding Periods
Capital gain is profit from selling an asset for more than you paid.
Example:
- Buy stock: $10,000
- Sell stock: $15,000
- Capital gain: $5,000
Holding period determines tax treatment:
Short-term capital gain: Asset held less than 1 year
- Taxed as ordinary income
- Rates: 10%, 12%, 22%, 24%, 32%, 35%, 37% (same as wage income)
Long-term capital gain: Asset held 1 year or more
- Preferential tax rates: 0%, 15%, or 20%
- Much lower than ordinary income rates
Long-Term Capital Gains Tax Rates (2024)
Single filer:
- 0% rate: Income up to $47,025
- 15% rate: Income $47,025 to $518,900
- 20% rate: Income over $518,900
Married filing jointly:
- 0% rate: Income up to $94,050
- 15% rate: Income $94,050 to $583,750
- 20% rate: Income over $583,750
Tax Difference: Short-Term vs. Long-Term
Scenario: $100,000 capital gain
Option A: Sell after 6 months (short-term)
- Capital gain: $100,000
- You're in 24% ordinary income bracket
- Tax owed: $100,000 × 24% = $24,000
- Net proceeds: $76,000
Option B: Hold 14 months, then sell (long-term)
- Capital gain: $100,000
- You qualify for 15% long-term rate
- Tax owed: $100,000 × 15% = $15,000
- Net proceeds: $85,000
Difference: $9,000 in tax savings by waiting 8 more months
The math: Waiting 8 months saved $9,000 in taxes, or $1,125/month. This is one of the highest-return strategies in investing.
Short-Term Capital Gains Example
Scenario: Day trader buys and sells stocks frequently
Year transactions:
- Buy IBM at $150, sell at $160: +$10 gain
- Buy Apple at $180, sell at $175: -$5 loss
- Buy Nvidia at $500, sell at $550: +$50 gain
- Repeat 100+ times/year
At year end:
- Total short-term gains: $45,000 (net)
- Taxed as ordinary income at 37% bracket: $16,650 tax
- After-tax gain: $28,350
Compare to buy-and-hold investor:
- Buy S&P 500 index fund: $100,000
- Hold 5+ years
- Appreciate 50%: $150,000
- Sell (long-term): $50,000 long-term gain
- Tax at 15%: $7,500
- After-tax gain: $42,500
Buy-and-hold earned $42,500 after-tax; day trader earned $28,350 after-tax on similar returns. Trading costs $14,150 in extra taxes.
Tax-Loss Harvesting
Tax-loss harvesting means intentionally selling losing positions to offset capital gains and reduce taxes.
How it works:
- You own stocks worth $50,000 with $30,000 in gains
- You also own stocks worth $20,000 (down from $25,000 purchase, -$5,000 loss)
- Sell the losing stock: Lock in $5,000 loss
- Buy similar (not identical) stock immediately
- Net capital gain for the year: $30,000 - $5,000 = $25,000
- Tax at 15%: $3,750
Without tax-loss harvesting:
- Capital gain: $30,000
- Tax at 15%: $4,500
- Savings from harvesting: $750
Over 10 years: Tax-loss harvesting can save $7,500-$15,000 in taxes.
Carrying forward unused losses:
You can deduct up to $3,000/year of capital losses against ordinary income.
Example: Year 1 losses: $20,000
- Offset $20,000 in gains: $0 net gain
- Deduct $3,000 against ordinary income
- Carry forward unused loss: $17,000 - $3,000 = $14,000
Year 2:
- Carry forward loss: $14,000
- New gains: $8,000
- Net: $8,000 - $14,000 = -$6,000
- Deduct $3,000 against ordinary income
- Carry forward: $3,000
You can keep carrying forward indefinitely until all losses are used.
Wash Sale Rule
Critical rule: If you sell a stock at a loss, you can't buy the same stock (or substantially identical stock) within 30 days before or after the sale.
If you violate the wash sale rule: The loss is disallowed (you don't get the tax deduction), but the loss is added to the basis of the new purchase.
Example of wash sale violation:
December 15: Sell Apple stock at $5,000 loss December 28: Buy Apple stock again
- Wash sale rule triggered (within 30 days)
- Loss is disallowed
- You don't get the $5,000 deduction
- Loss is added to new purchase basis
Correct tax-loss harvesting approach:
December 15: Sell losing Apple stock December 16: Buy similar tech stock (Microsoft, Google, etc.) instead January 15: (After 30-day window) Buy Apple stock again if desired
By buying a different stock, you avoid the wash sale and get the tax deduction.
Worked Example: Tax-Loss Harvesting Portfolio
Scenario: Portfolio with mixed positions
December portfolio:
Winning positions (long-term):
- Position A: Bought for $20,000, now worth $35,000 (+$15,000 gain)
- Position B: Bought for $30,000, now worth $42,000 (+$12,000 gain)
- Total gains: $27,000
Losing positions:
- Position C: Bought for $25,000, now worth $22,000 (-$3,000 loss)
- Position D: Bought for $15,000, now worth $11,000 (-$4,000 loss)
Without tax-loss harvesting:
- Realized gains: $27,000
- Tax at 15%: $4,050
With tax-loss harvesting:
- Sell positions C and D: Realize $7,000 in losses
- Net capital gain: $27,000 - $7,000 = $20,000
- Tax at 15%: $3,000
- Tax savings: $1,050
Plus, you bought replacement stocks (different companies, similar risk profile), so you maintained your portfolio exposure.
Qualified Dividends vs. Ordinary Dividends
Some dividends qualify for capital gains treatment (0%, 15%, or 20%), while others are taxed as ordinary income.
Qualified dividends: (Taxed at capital gains rates)
- Paid by US or foreign corporations
- You held stock for 60+ days around dividend payment date
Example: Qualified dividend
- Own 100 shares of Apple: Purchased 6 months ago, held continuously
- Apple pays $0.25/share dividend: $25 received
- Holding requirement met (60+ days): Qualified
- Taxed at 15% rate: $25 × 15% = $3.75 tax
- Net: $21.25
Ordinary dividends: (Taxed as ordinary income at 10-37%)
- Paid by REITs, master limited partnerships, foreign governments
- Or held for less than 60 days
Example: Ordinary dividend
- Own 100 shares of REIT: Purchased 2 weeks ago
- REIT pays $0.25/share dividend: $25 received
- Holding requirement not met (less than 60 days): Ordinary
- Taxed at 24% rate: $25 × 24% = $6 tax
- Net: $19
Same $25 dividend, but different tax treatment. The holding period matters.
Strategy: Avoiding Wash Sales While Harvesting
Goal: Get tax deduction while maintaining portfolio allocation
Approach: Buy substitute with same risk profile
Example:
- Losing position: Tech stock XYZ
- Sell XYZ at loss
- Buy tech ETF (QQQ) with same risk profile
- After 30 days: Can buy XYZ again
- Result: Got tax deduction, maintained tech exposure
Alternative categories for substitution:
- Instead of Apple: Buy tech ETF or other tech stocks
- Instead of small-cap growth: Buy different small-cap growth fund
- Instead of international: Buy different international fund
Inherited Basis Step-Up
Major tax benefit when inheriting appreciated assets:
Normally:
- Buy stock at $10,000
- Appreciate to $50,000
- Sell: $40,000 long-term gain, $6,000 tax
- Heirs receive: $44,000 after-tax
With inherited step-up:
- You die owning stock worth $50,000
- Heirs inherit stock
- New basis "steps up" to $50,000 (inherited value)
- Heirs sell immediately: $0 gain (sold at inherited basis)
- Heirs receive: Full $50,000 (no capital gains tax)
Tax savings: $6,000 (100% of gain is tax-free)
This is why holding appreciated assets until death is often the most tax-efficient strategy for wealth transfer.
Action Items: Minimize Capital Gains Taxes
- Hold positions 1+ year: Before selling for long-term rates
- Harvest tax losses annually: Especially in December
- Avoid wash sales: Wait 30 days before rebuying same security
- Use substitute funds: Same risk profile, avoids wash sale
- Track holding periods: Know when you cross 1-year threshold
- Prioritize long-term over short-term: Trade less frequently
- Keep records: Track purchase dates and cost basis
- Consider timing: Sell losers in down market years
Capital gains tax is one of the largest wealth drains. Strategic planning saves thousands.





