Capital Gains Tax
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 Period | Tax Classification | Tax Rate |
|---|---|---|
| 1 year or less | Short-term capital gain | Ordinary income rates (10-37%) |
| More than 1 year | Long-term capital gain | Preferential rates (0%, 15%, 20%) |
Example: You buy 100 shares of a stock at $50/share and sell at $100/share:
| Scenario | Gain | Tax Rate (22% bracket) | Tax Owed |
|---|---|---|---|
| Sold after 9 months (short-term) | $5,000 | 22% ordinary | $1,100 |
| Sold after 13 months (long-term) | $5,000 | 15% 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 Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,026 - $518,900 | Over $518,900 |
| Married Filing Jointly | Up to $94,050 | $94,051 - $583,750 | Over $583,750 |
| Head of Household | Up to $63,000 | $63,001 - $551,350 | Over $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 Status | NIIT Threshold |
|---|---|
| Single | Over $200,000 MAGI |
| Married Filing Jointly | Over $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:
| State | Capital Gains Treatment | Max Rate |
|---|---|---|
| California | Ordinary income | 13.3% |
| New York | Ordinary income (state + city) | Up to 14.8% |
| Texas, Florida, Nevada | No state income tax | 0% |
| Massachusetts | Special 12% short-term rate | 12% (short-term), 5% (long-term) |
| Hawaii | Ordinary income | 11% |
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 Status | Exclusion Amount |
|---|---|
| Single | Up to $250,000 |
| Married Filing Jointly | Up 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:
- Short-term losses offset short-term gains first (both at ordinary rates)
- Long-term losses offset long-term gains first (both at preferential rates)
- Net losses in one category cross-apply to the other
- Up to $3,000 in net capital losses can offset ordinary income per year
- 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 Type | Capital Gains Treatment |
|---|---|
| Taxable brokerage | Short-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 plan | No 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.
Related Terms
Capital Gains
Capital gains are the profits earned when you sell an asset for more than you paid for it, taxed at either short-term rates (ordinary income) or preferential long-term rates depending on how long you held the asset.
Estate Tax
The estate tax is a federal tax on the transfer of wealth at death, applying only to estates above the exemption threshold — $13.61 million per individual in 2024 — affecting less than 0.2% of all estates.
Kiddie Tax
The Kiddie Tax is a rule that taxes a child's unearned income above a threshold at the parent's higher tax rate — preventing parents from shifting investment income to children to take advantage of their lower tax bracket.
Taxable Income
Taxable income is the portion of your income subject to federal income tax after subtracting all allowable deductions from your AGI — the number your tax bracket rates are actually applied to.
Tax Deduction
A tax deduction reduces your taxable income, lowering the amount of income subject to federal tax — with the actual tax savings equal to the deduction amount multiplied by your marginal tax rate.
IRS
The IRS is the US federal agency responsible for administering and enforcing the tax code — collecting individual and business taxes, processing returns, and auditing compliance with federal tax laws.
Related Articles
When Should You Sell a Stock or Fund?
Knowing when to sell is the hardest skill in investing. Here are the specific conditions that justify selling - and the common emotional triggers that masquerade as rational reasons.
How to Rebalance Your Portfolio (And When to Bother)
Rebalancing keeps your portfolio aligned with your target allocation — but doing it wrong, or too often, costs you money. Here's the right approach, how often to do it, and the tax-smart way to execute it.
How to Open a Brokerage Account Step by Step
Opening a brokerage account is easier than most people expect. Here's a complete walkthrough — what to choose, what you'll need, and exactly what to do once it's open.
How Teens Can Use a Custodial Account to Start Building Wealth
A custodial account lets a teenager invest in stocks and funds years before turning 18. Here's how they work, the tax rules, and why opening one early can be worth tens of thousands by adulthood.
Student Loans vs. Investing: Pay Off Debt or Build Wealth First?
One of the most debated questions in personal finance for your 20s. The answer depends on your interest rates, account types, and one key mathematical principle.
