When you buy a stock or fund in a taxable investment account, seeing your portfolio grow is exciting. However, the moment you sell those investments for a profit, the Internal Revenue Service (IRS) classifies that return as a capital gain. The amount of tax you owe depends on two factors: your holding period and your overall taxable income.
Unlike tax-sheltered accounts such as a 401(k) or Roth IRA vs. Traditional IRA, standard taxable brokerage accounts require you to report realized trades annually. If you recently finished opening a taxable brokerage account, understanding these rules is essential to protecting your real investment returns.
The Realization Rule: Paper Gains vs. Realized Gains
Under Internal Revenue Code (IRC) Section 1001, capital gains taxes apply only when an asset is sold. If your shares appreciate from $5,000 to $9,000, that $4,000 increase is an unrealized gain (a paper gain) and generates zero current tax liability. Once you execute the sale, it becomes a realized gain reportable on IRS Form 8949 and Schedule D.
This realization rule makes buy-and-hold investing highly tax-efficient. As covered in our guide to index funds vs. actively managed funds, broad-market index funds rarely trade underlying shares, generating far fewer forced capital gain distributions than active funds.
Short-Term vs. Long-Term: The 365-Day Threshold
According to IRS Topic No. 409 (Capital Gains and Losses), holding periods are measured strictly from the day after acquisition to the date of disposal:
- Short-Term Capital Gains: Assets held for 365 days or less. These gains are taxed as ordinary income at standard federal rates (10% to 37%), exactly like wages or interest.
- Long-Term Capital Gains: Assets held for 366 days or more (over one year). These gains benefit from preferential federal rates of 0%, 15%, or 20%.
| Feature | Short-Term Capital Gains | Long-Term Capital Gains |
|---|---|---|
| Holding Period | 365 days or less (1 year or less) | 366 days or more (Over 1 year) |
| Federal Tax Rate | Ordinary income rates (10% to 37%) | Preferential rates (0%, 15%, or 20%) |
| IRS Reporting | Form 8949 (Part I) & Schedule D | Form 8949 (Part II) & Schedule D |
| Netting Order | Offsets short-term losses first | Offsets long-term losses first |
For most middle-income earners, waiting past day 365 cuts their federal tax rate from 22% or 24% down to 15%, saving $700 to $900 on every $10,000 of profit.
Official IRS Capital Gains Tax Brackets for 2025 and 2026
Long-term capital gains tax brackets use three statutory tiers: 0%, 15%, and 20%. Income thresholds are adjusted annually for inflation under IRC Section 1(h). Below are the official numbers published in IRS Revenue Procedure 2024-40 (for 2025) and IRS Revenue Procedure 2025-32 (for 2026):
| Filing Status | Tax Year | 0% Rate Threshold | 15% Rate Threshold | 20% Rate Threshold |
|---|---|---|---|---|
| Single | 2025 | Up to $48,350 | $48,351 – $533,400 | Over $533,400 |
| Single | 2026 | Up to $49,450 | $49,451 – $545,500 | Over $545,500 |
| Married Filing Jointly | 2025 | Up to $96,700 | $96,701 – $600,050 | Over $600,050 |
| Married Filing Jointly | 2026 | Up to $98,900 | $98,901 – $613,700 | Over $613,700 |
| Head of Household | 2025 | Up to $64,750 | $64,751 – $566,700 | Over $566,700 |
| Head of Household | 2026 | Up to $66,200 | $66,201 – $579,600 | Over $579,600 |
Remember that these limits apply to taxable income, not gross earnings. Because you subtract the standard deduction ($15,000 for singles and $30,000 for married couples in 2025, per Rev. Proc. 2024-40), a single filer can earn up to $63,350 in gross income before owing any long-term capital gains tax.
The 3.8% Net Investment Income Tax (NIIT) and State Taxes
Beyond federal brackets, two additional tax layers may apply:
- Net Investment Income Tax (NIIT): Under IRC Section 1411, a 3.8% surtax applies to investment income if Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers or $250,000 for married couples filing jointly. This brings the top federal rate to 23.8%.
- State Income Taxes: Most states tax capital gains as ordinary income, adding 3% to 13.3% in state tax. Nine states (including Florida, Texas, and Nevada) levy no broad personal income tax on investment gains.
To reduce total tax exposure, investors often combine taxable accounts with tax-free vehicles like Health Savings Accounts (HSA) to shield high-growth assets from annual taxation.
Worked Example: Calculating Your Real Tax Liability
To see how capital gains stack on ordinary income, consider David, a single filer in tax year 2025:
- W-2 salary: $55,000. He takes the $15,000 standard deduction, leaving $40,000 in ordinary taxable income.
- Sold an ETF held for 2 years: $10,000 long-term capital gain.
- Sold an individual stock held for 6 months: $2,000 short-term capital loss.
Here is how the IRS calculates his liability step-by-step per IRS Publication 550:
- 1. Net Capital Positions: The $2,000 short-term loss directly offsets part of the $10,000 long-term gain, leaving a net long-term capital gain of $8,000.
- 2. Stack on Ordinary Income: Adding the $8,000 gain to his $40,000 salary baseline results in $48,000 in total taxable income.
- 3. Apply 2025 Brackets: For singles, the 0% bracket ceiling is $48,350. Because $48,000 is below $48,350, his entire $8,000 gain falls in the 0% tax tier.
- Outcome: David pays $0 in federal capital gains tax, paying only normal tax on his $40,000 salary.
Tax-Loss Harvesting and the Wash-Sale Rule
Market declines offer an opportunity: tax-loss harvesting. Selling losing investments allows you to offset realized capital gains and lower your tax bill under IRC Section 1211:
- Gains Offset: Losses first offset matching gains (short-term against short-term, long-term against long-term), then cross-offset remaining gains.
- $3,000 Ordinary Income Offset: Excess net losses up to $3,000 per year ($1,500 if married filing separately) can reduce ordinary wage income.
- Indefinite Carryforward: Unused losses carry forward to future tax years indefinitely under IRC Section 1212(b).
Watch the Wash-Sale Rule: Under IRC Section 1091, if you repurchase a ‘substantially identical’ security within 30 days before or after selling at a loss (a 61-day window), the loss is disallowed and added to the new shares’ cost basis. To maintain market exposure without triggering a wash sale, investors often swap into a comparable broad-market fund during annual portfolio rebalancing.
Decision Framework: When to Sell vs. When to Hold
Use this rule-of-thumb before executing trades in any taxable brokerage account:
- Under 365 Days: Avoid realizing gains unless your fundamental investment thesis has failed. Ordinary income tax rates (up to 37%) create a severe hurdle to compounding.
- Over 365 Days: Sell when rebalancing or taking profits at preferential 0% or 15% rates. If your taxable income falls below the 0% threshold ($48,350 single in 2025; $49,450 in 2026), consider tax-gain harvesting to step up your cost basis tax-free.
- Unrealized Losses: Harvest losses in volatile years to cancel out realized gains and unlock the $3,000 ordinary income deduction.
Common Capital Gains Mistakes Beginners Make
- Wash Sales in Retirement Accounts: Selling at a loss in a taxable account and repurchasing in a Roth IRA within 30 days permanently forfeits the loss per IRS Revenue Ruling 2008-5.
- Confusing AGI with Taxable Income: Overlooking your standard deduction causes investors to mistakenly assume they are pushed into higher tax tiers.
- Ignoring Mutual Fund Distributions: Year-end capital gains distributions from active mutual funds trigger unexpected tax liabilities, even if you never sold shares.
- Miscalculating Reinvested Dividends: Forgetting that automatic dividend reinvestments (DRIP) increase your cost basis leads to paying tax twice on the same dollars.
Frequently Asked Questions
Do trades inside a 401(k) or Roth IRA trigger capital gains tax?
No. Trades inside tax-advantaged retirement accounts are exempt from capital gains taxes. You can rebalance or sell at a profit without triggering any IRS reporting until withdrawal.
Does the 30-day wash-sale rule apply when selling at a profit?
No. Under IRC Section 1091, the wash-sale rule applies solely to sales executed at a loss. You can sell appreciated stock to lock in gains and immediately repurchase it.
How are inherited stocks taxed?
Inherited assets receive a ‘step-up in basis’ under IRC Section 1014, resetting the cost basis to the asset’s fair market value on the date of death and automatically qualifying for long-term treatment.
How do unused capital losses carry forward?
Net losses beyond the $3,000 annual limit carry forward indefinitely to offset future capital gains and ordinary income until completely depleted.
Key Takeaways
- 366 Days for Preferential Rates: Holding assets longer than one year drops your federal rate from ordinary levels to 0%, 15%, or 20%.
- The 0% Bracket Is Accessible: In 2025, singles earning under $48,350 ($49,450 in 2026) and couples earning under $96,700 ($98,900 in 2026) in taxable income pay zero federal capital gains tax.
- Harvest Losses Systematically: Losses offset unlimited gains plus $3,000 of ordinary income annually, carrying forward indefinitely.
- Respect the 61-Day Wash-Sale Window: Avoid repurchasing substantially identical securities within 30 days before or after realizing a loss.
Important Disclaimer
The content on WealthPath Guides is provided for general educational and informational purposes only. It is not financial, investment, tax, or legal advice, and it does not take into account your personal circumstances, objectives, or risk tolerance. Investing involves risk, including the possible loss of principal; past performance does not guarantee future results. Figures, tax rules, and product details can change – always verify current information with official sources and consult a qualified professional before making financial decisions. WealthPath Guides accepts no liability for actions taken based on this content. Read our full Disclaimer.


