Savvy Nickel LogoSavvy Nickel
Ctrl+K

Capital Gains Tax

Tax Terms

Capital Gains Tax

Quick Definition

Capital gains tax is the tax you owe when you sell an asset for more than you paid for it. The tax rate depends on two factors: how long you held the asset (short-term vs. long-term) and your taxable income. Long-term gains (held over one year) are taxed at preferential rates of 0%, 15%, or 20%. Short-term gains (held one year or less) are taxed as ordinary income at rates up to 37%.

What It Means

The distinction between short-term and long-term capital gains is one of the most important tax rules for investors. Holding an investment for just one day past the one-year mark can dramatically change the tax owed on a profitable sale.

Why long-term rates are lower: The tax code intentionally incentivizes patient, long-term investing by taxing it more favorably. Short-term trading is treated like ordinary income — because regulators and economists view rapid trading as less economically productive than long-term capital formation.

Short-Term vs. Long-Term: The Critical Distinction

Holding PeriodTax ClassificationTax Rate
1 year or lessShort-term capital gainOrdinary income rates (10-37%)
More than 1 yearLong-term capital gainPreferential rates (0%, 15%, 20%)

Example: You buy 100 shares of a stock at $50/share and sell at $100/share:

ScenarioGainTax Rate (22% bracket)Tax Owed
Sold after 9 months (short-term)$5,00022% ordinary$1,100
Sold after 13 months (long-term)$5,00015% LTCG$750

Waiting four extra months saves $350 — a 32% reduction in tax on the same gain.

2024 Long-Term Capital Gains Tax Rates

Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 - $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 - $583,750Over $583,750
Head of HouseholdUp to $63,000$63,001 - $551,350Over $551,350

The 0% rate is powerful: A married couple with taxable income below $94,050 pays zero federal tax on long-term capital gains. For early retirees or those in low-income years, this creates significant planning opportunities.

The Net Investment Income Tax (NIIT)

High earners face an additional 3.8% Medicare surtax on net investment income (including capital gains):

Filing StatusNIIT Threshold
SingleOver $200,000 MAGI
Married Filing JointlyOver $250,000 MAGI

For top earners, the effective federal long-term capital gains rate reaches 23.8% (20% + 3.8% NIIT). Add state taxes and the combined rate can exceed 30-35% in high-tax states.

State Capital Gains Taxes

Most states tax capital gains as ordinary income:

StateCapital Gains TreatmentMax Rate
CaliforniaOrdinary income13.3%
New YorkOrdinary income (state + city)Up to 14.8%
Texas, Florida, NevadaNo state income tax0%
MassachusettsSpecial 12% short-term rate12% (short-term), 5% (long-term)
HawaiiOrdinary income11%

For a California resident in the top bracket selling a large long-term gain: 20% federal + 3.8% NIIT + 13.3% California = 37.1% effective rate on long-term gains.

Real Estate: The Section 121 Exclusion

One of the most powerful capital gains tax benefits: homeowners can exclude a substantial portion of home sale gains:

Filing StatusExclusion Amount
SingleUp to $250,000
Married Filing JointlyUp to $500,000

Requirements:

  • Owned the home for at least 2 of the last 5 years
  • Used it as a primary residence for at least 2 of the last 5 years
  • Have not used the exclusion within the past 2 years

Example: Married couple bought a home for $300,000; sold for $850,000 after 8 years. Gain = $550,000. After $500,000 exclusion: $50,000 taxable gain (vs. $550,000 without the exclusion).

Tax-Loss Harvesting: Offsetting Capital Gains

Capital losses offset capital gains dollar-for-dollar:

Harvesting rules:

  1. Short-term losses offset short-term gains first (both at ordinary rates)
  2. Long-term losses offset long-term gains first (both at preferential rates)
  3. Net losses in one category cross-apply to the other
  4. Up to $3,000 in net capital losses can offset ordinary income per year
  5. Unused losses carry forward indefinitely

Wash-sale rule: You cannot sell a security at a loss and immediately buy it back (or a "substantially identical" security) within 30 days before or after the sale. The loss is disallowed. You can buy a different ETF tracking a similar index immediately to maintain market exposure.

Key Investment Account Tax Treatment

Account TypeCapital Gains Treatment
Taxable brokerageShort-term or long-term rates apply
Traditional IRA/401(k)No capital gains tax during growth; all distributions taxed as ordinary income
Roth IRA/Roth 401(k)No capital gains tax ever (qualified distributions are tax-free)
529 planNo capital gains tax if used for qualified education expenses

This is why tax-inefficient investments (frequent traders, high-turnover funds) belong in tax-advantaged accounts, while buy-and-hold investments and tax-efficient ETFs belong in taxable accounts.

Key Points to Remember

  • Short-term gains (held ≤ 1 year) taxed as ordinary income at 10-37%; long-term gains (>1 year) at 0-20%
  • The 0% long-term rate applies to taxable income up to $47,025 single / $94,050 MFJ in 2024
  • The Net Investment Income Tax adds 3.8% for high earners (MAGI over $200K/$250K)
  • The Section 121 exclusion shelters up to $250K/$500K of home sale gains from tax
  • Tax-loss harvesting offsets gains with losses; carry-forward rules extend benefits across years
  • Assets in Roth IRAs grow and can be withdrawn tax-free — the ultimate capital gains shelter

Frequently Asked Questions

Q: Does the holding period reset if I add to a position over time? A: No. Each lot of shares has its own holding period based on its own purchase date. When selling, you can specify which lots to sell (using "specific identification" cost basis method) to optimize for either the 1-year threshold or tax basis.

Q: Are capital gains taxed when they occur inside a mutual fund? A: Yes, if the mutual fund sells holdings with gains, those gains are distributed to shareholders as capital gain distributions — taxable even if you didn't sell your fund shares. This is a significant tax drag of actively managed mutual funds vs. ETFs or index funds in taxable accounts.

Q: Do I owe capital gains tax if I inherit investments? A: Inherited investments receive a "step-up in basis" — your cost basis is reset to the fair market value on the date of the decedent's death. If you sell immediately, there is typically no capital gains tax owed. This is one of the most powerful estate planning tools available.

Back to Glossary
Financial Term DefinitionTax Terms