Investing in Stocks & ETFs in the United States
2026 U.S. Tax Rules & Portfolio Strategy Guide
A practical reference covering capital gains rates, dividend classification, wash sale rules, cost basis tracking, tax-advantaged accounts, and year-end planning strategies for U.S. investors under 2026 IRS rules.
Overview
Stocks and exchange-traded funds (ETFs) are core investment vehicles for U.S. taxpayers seeking long-term growth, diversification, and tax efficiency. This guide explains how stocks and ETFs are taxed, how gains and losses are reported, and what investors must track under 2026 IRS rules.
Readers will learn the difference between qualified and ordinary dividends, how capital gains holding periods affect tax rates, how the wash sale rule limits loss harvesting strategies, and how to manage taxable and tax-advantaged accounts for maximum after-tax returns.
Why This Matters
Investment income is subject to specific IRS rules that affect tax liability, reporting obligations, and long-term wealth accumulation. Misunderstanding capital gains rules, wash sale restrictions, or dividend classifications can lead to incorrect filings, disallowed losses, or unnecessarily high taxes.
2026 Capital Gains Rate Tables
The applicable capital gains rate depends on the taxpayer's taxable income — not gross income — and filing status. Capital gains are added on top of ordinary income when determining which bracket applies.
Long-Term Capital Gains (Assets Held > 1 Year)
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,750 |
| 15% | $49,451 – $545,500 | $98,901 – $613,700 | $66,751 – $580,050 |
| 20% | Above $545,500 | Above $613,700 | Above $580,050 |
| +3.8% NIIT | MAGI > $200,000 | MAGI > $250,000 | MAGI > $200,000 |
Short-Term Capital Gains (Assets Held ≤ 1 Year)
Short-term gains are taxed as ordinary income at the taxpayer's marginal rate — up to 37% in 2026. There is no preferential rate regardless of how the underlying asset performed. Holding an asset for one additional day past the one-year mark can shift the entire gain from ordinary rates to capital gains rates.
Capital Loss Netting and the $3,000 Deduction
- Capital losses must first be netted against capital gains of the same character — short-term losses offset short-term gains; long-term losses offset long-term gains. Net losses of one character may then offset the other.
- If total capital losses exceed total capital gains, taxpayers may deduct up to $3,000 of net capital loss per year against ordinary income. This limit has not been adjusted for inflation since 1977.
- Unused capital losses carry forward indefinitely to future tax years and retain their character (short-term or long-term).
- Net capital losses are reported on Form 8949 and Schedule D; carryforward amounts are tracked on Schedule D and carried to the next year's return.
Dividends — Qualified vs. Ordinary
Not all dividends are taxed the same. IRS distinguishes between qualified dividends — taxed at long-term capital gains rates — and ordinary dividends — taxed at the taxpayer's full marginal rate. The classification depends on both who pays the dividend and how long the investor held the stock.
Holding Period Requirement for Qualified Dividends
- Common stock: The investor must hold the stock for more than 60 days during the 121-day period that begins 60 days before the ex-dividend date. Days during which the position is hedged (e.g., with a protective put) do not count.
- Preferred stock: The holding period is extended to more than 90 days during the 181-day period beginning 90 days before the ex-dividend date.
- Short-term traders who buy a stock immediately before the ex-dividend date to capture the payment — without meeting the holding period — will receive the dividend as ordinary income. This is a common error among dividend investors.
- Dividend reinvestment plans (DRIP): Reinvested dividends are taxable in the year received — the same as cash dividends. Each reinvested amount also becomes a new cost basis lot with a new holding period clock.
Dividends Inside Tax-Advantaged Accounts
- Dividends inside a Traditional IRA or 401(k) grow tax-deferred — they are not taxed when received. All withdrawals are eventually taxed as ordinary income regardless of whether they originated as qualified dividends.
- Dividends inside a Roth IRA grow tax-free — no tax upon withdrawal in a qualified distribution. The qualified/ordinary dividend distinction is irrelevant inside a Roth.
ETFs vs. Mutual Funds — Tax Efficiency
ETFs and mutual funds both provide diversified exposure to a basket of securities, but they differ significantly in how gains are distributed to investors — with real tax consequences even for investors who did not sell any shares.
Wash Sale Rule — IRC §1091
The wash sale rule prevents taxpayers from claiming a tax loss on a security while maintaining substantially the same investment position. IRS disallows the loss when a taxpayer sells at a loss and repurchases a substantially identical security within a 61-day window — 30 days before through 30 days after the sale date.
How the Rule Works
- If a wash sale occurs, the disallowed loss is not permanently forfeited — it is added to the cost basis of the replacement shares, preserving it for a future sale.
- The holding period of the replacement shares includes ("tacks onto") the holding period of the sold shares — which can affect whether a future gain or loss is short-term or long-term.
- The rule applies across all accounts the taxpayer controls, including: multiple taxable brokerage accounts, IRAs, Roth IRAs, spousal accounts, and accounts of corporations the taxpayer controls.
- Automatic dividend reinvestment can trigger a wash sale if the reinvestment occurs within 30 days of selling the same security at a loss.
IRA Wash Sales — Permanent Loss
"Substantially Identical" — What Triggers the Rule
- Same stock: Selling Apple and buying Apple back within 30 days — clearly identical.
- Different but similar ETFs: Selling an S&P 500 ETF (e.g., SPY) and buying a different S&P 500 ETF (e.g., IVV) within 30 days may be substantially identical given they track the same index. Selling SPY and buying a total market ETF is generally not identical.
- Cryptocurrency: As of the 2026 tax year, the wash sale rule under IRC §1091 applies to stock and securities only — not cryptocurrency. Because the IRS classifies most crypto as property rather than securities, selling Bitcoin at a loss and immediately rebuying it does not trigger the wash sale rule under current law. However, proposals to extend §1091 to crypto have been introduced in Congress; the gray area may not last.
Reporting Wash Sales
- Brokers report wash sales on Form 1099-B, but only within the same account. Cross-account wash sales — between a taxable account and an IRA, or between a taxpayer's account and a spouse's account — are not caught by broker reporting. The investor is responsible for identifying them.
- Disallowed wash sale losses are reported on Form 8949 with code "W" in Column (f).
Cost Basis Tracking
Cost basis is the investor's original purchase price adjusted for commissions, reinvested dividends, return-of-capital distributions, and wash sale adjustments. Accurate basis tracking is essential for correct gain/loss calculation and determines whether tax results are short-term or long-term.
Cost Basis Accounting Methods
- Brokers must report cost basis on Form 1099-B for "covered" securities (purchased after applicable effective dates). For "uncovered" securities, basis may not be reported — the investor is responsible for maintaining their own records.
- Reinvested dividends create new cost basis lots — each reinvestment is a separate lot with its own purchase price and holding period clock. Failure to include reinvested dividends in basis results in double taxation of that income.
- Wash sale adjustments increase the basis of replacement shares — investors must ensure their records reflect these adjustments, particularly for cross-account wash sales that brokers do not capture.
Tax-Advantaged Accounts
Asset location — the decision about which investments to hold in which account type — can significantly reduce lifetime tax liability. The general principle: place high-tax investments in tax-sheltered accounts; place tax-efficient investments in taxable accounts.
| Account Type | Tax Treatment | Best For | Key Limitation |
|---|---|---|---|
| Taxable Brokerage | Gains and dividends taxed annually when realized/received | Tax-efficient ETFs, long-term buy-and-hold, tax-loss harvesting | No tax deferral; NIIT applies above thresholds |
| Traditional IRA / 401(k) | Contributions pre-tax; growth tax-deferred; withdrawals taxed as ordinary income | High-dividend stocks, REITs, actively managed funds, bonds | Required Minimum Distributions (RMDs) at age 73; all withdrawals ordinary income |
| Roth IRA / Roth 401(k) | Contributions after-tax; growth and qualified withdrawals tax-free | High-growth assets, long-horizon positions; wash sale treatment applies | Income limits for Roth IRA contributions; no tax deduction on contributions |
| HSA (Health Savings Account) | Triple tax advantage: pre-tax contributions, tax-free growth, tax-free withdrawals for qualified medical expenses | Invest contributions for long-term growth; use as supplemental retirement account after age 65 | Must have qualifying high-deductible health plan; annual contribution limits |
Step-by-Step Guidance
- Use broad-market ETFs for core holdings — they provide diversification and generate minimal taxable distributions compared to actively managed mutual funds.
- Allocate across U.S. stocks, international stocks, and fixed income based on risk tolerance and time horizon.
- Apply asset location: place tax-inefficient investments (REITs, bonds, high-dividend stocks) in tax-deferred accounts; hold broad ETFs in taxable accounts.
- IRS requires taxpayers to track the acquisition date for every lot. Selling one day before the one-year mark converts a potential 15%–20% gain into ordinary income taxed at up to 37%.
- Avoid unnecessary short-term trades in taxable accounts — transaction costs and short-term tax treatment compound to significantly reduce net returns.
- Monitor dividend ex-dividend dates — purchasing shares shortly before the ex-date without meeting the 60-day holding period results in an ordinary dividend rather than a qualified one.
- Harvest losses throughout the year by selling positions that are below cost basis — use the proceeds to reinvest in a similar (but not substantially identical) security to maintain market exposure.
- Net harvested losses against realized gains before year-end to reduce taxable income; carry forward any excess losses to future years.
- Use specific identification when selling partial positions — select the highest-basis lots to minimize the current year's gain.
- Monitor all accounts — including IRAs and spousal accounts — for wash sale violations before executing loss harvests in taxable accounts.
- Maximize employer 401(k) match first — it is an immediate 100% return before any investment performance.
- Consider Roth accounts for investments with high long-term growth potential — tax-free growth compounds significantly over decades.
- Do not hold tax-efficient broad-market ETFs inside an IRA unnecessarily — they are already tax-efficient in a taxable account, and the deferral benefit is minimal compared to tax-inefficient assets.
- Form 1099-DIV: Reports total dividends (Box 1a) and qualified dividends (Box 1b). Verify that qualified dividends reflect only dividends for which you met the holding period.
- Form 1099-B: Reports proceeds and cost basis for securities sales. Review for wash sale adjustments and confirm basis accuracy — especially for older positions or cross-account transfers.
- Form 8949 and Schedule D: Report all individual sales; carry net results to Schedule D. Separate short-term (Part I) from long-term (Part II) transactions.
- Review year-to-date realized gains and losses in early December. Identify positions with unrealized losses that could be harvested to offset gains before December 31.
- Check mutual fund scheduled distribution dates — avoid buying into a mutual fund shortly before a large distribution that would create immediate taxable income.
- Evaluate whether realizing additional long-term gains at 0% or 15% makes sense before year-end — for example, taxpayers near the top of the 0% bracket can realize gains tax-free by "resetting" basis.
- Confirm estimated tax payments are sufficient to avoid underpayment penalties — capital gains are not subject to withholding and must be covered by quarterly payments.
Practical Examples
An investor purchases 100 shares of a broad-market ETF for $10,000 in January 2024 and sells all shares in March 2026 for $15,000. The holding period is over 2 years — qualifying for long-term capital gains treatment. The investor's total taxable income (including the $5,000 gain) is $120,000 (single filer).
| Sale proceeds | $15,000 |
| Cost basis (purchase price) | $10,000 |
| Long-term capital gain | $5,000 |
| Applicable LTCG rate (taxable income $120,000 — 15% bracket) | 15% |
| NIIT (MAGI $120,000 < $200,000 threshold) | Not applicable |
| Federal tax on gain | $750 |
- Reported on Form 8949 (long-term; Part II) and Schedule D
- Compare to short-term: if sold at 11 months, same $5,000 gain taxed at 22% ordinary rate = $1,100 — a $350 difference from holding one additional month
In November 2026, an investor sells 100 shares of a technology company stock at a $4,000 loss, intending to harvest the loss to offset earlier gains. Ten days later, the investor repurchases 100 shares of the same stock because they still like the company. The wash sale rule disallows the loss.
| Realized loss on sale | ($4,000) |
| Loss disallowed (repurchase within 30 days) | ($4,000) → $0 deductible |
| Cost basis of replacement shares (purchase price) | Original basis + $4,000 |
| Form 1099-B reporting | Code "W" in Column (f) |
| Net tax benefit in 2026 | $0 (loss deferred, not lost) |
- The $4,000 is not permanently lost — it is added to the cost basis of the replacement shares and will reduce gain at the future sale
- If the repurchase had been inside an IRA, the $4,000 would be permanently lost (no basis carryover into the IRA)
An investor receives $1,500 in dividends from a U.S. stock portfolio during 2026. Of the total, $1,100 meets the 60-day holding period requirement and is reported in Box 1b of Form 1099-DIV as qualified. The remaining $400 is from a stock purchased 20 days before the ex-dividend date — reported as ordinary in Box 1a only.
| Qualified dividends ($1,100 × 15%) | $165 |
| Ordinary dividends ($400 × 22%) | $88 |
| Total federal tax on dividends | $253 |
If all $1,500 were ordinary: $330 in tax. Qualified treatment saves $77 on this example — proportionally significant over a large dividend-income portfolio.
Common Mistakes
- 1 Selling before the one-year holding period to lock in profits. Short-term gains can be taxed at nearly double the long-term rate. Holding one additional day past the one-year anniversary of purchase qualifies the entire gain for long-term treatment.
- 2 Triggering wash sales by repurchasing within 30 days — especially across accounts. Brokers only report within-account wash sales on Form 1099-B. Cross-account violations (taxable account → IRA, joint account → individual account) are the investor's responsibility to identify and report.
- 3 Repurchasing securities in an IRA after a taxable account loss sale. This permanently destroys the loss deduction — the basis adjustment does not carry into the IRA. The loss is gone forever, not just deferred.
- 4 Not tracking cost basis accurately across multiple lots and accounts. Incorrect basis produces either understated gains (an IRS compliance risk) or overstated gains (the investor pays more tax than required). Reinvested dividends, wash sale adjustments, and stock splits must all be reflected in basis records.
- 5 Assuming all dividends are qualified. REIT distributions, money market dividends, dividends from non-qualifying foreign corporations, and dividends received from positions held less than 60 days are not qualified. The classification appears on Form 1099-DIV Box 1b — it should be verified each year, not assumed.
- 6 Ignoring mutual fund year-end capital gain distributions. Buying a mutual fund in late November or December can result in a taxable distribution within weeks — the investor inherits the fund's gains from the entire year without having held the shares during that appreciation.
- 7 Over-trading in taxable accounts and compounding the tax cost. Each sale is a taxable event. Frequent rebalancing in a taxable account generates short-term gains, transaction costs, and ongoing basis tracking complexity — all of which compound against long-term returns.
- 8 Forgetting to report reinvested dividends as taxable income. Dividend reinvestment plans are taxable in the year the dividends are received — not when the shares are eventually sold. Omitting them from income understates tax in the year received; failing to add them to basis results in double taxation at sale.
Hanmi CPA Insight
Stocks and ETFs are among the most tax-efficient investment vehicles available to U.S. taxpayers — but only when held properly. The difference between a 15% long-term capital gains rate and a 37% short-term rate on the same dollar of gain is entirely a function of the holding period. That gap compounds significantly over a lifetime of investing.
The most common and costly errors are behavioral: selling slightly before the one-year mark, harvesting losses without accounting for all account types, and assuming dividend classifications without verifying Form 1099-DIV. The wash sale rule in particular is underestimated — the IRA purchase scenario that permanently destroys a loss is a real and recurring mistake that no broker software catches for the investor.
The OBBBA's confirmation of the current rate structure through 2030 provides meaningful planning certainty. Investors can model multi-year strategies — including Roth conversions, gain realization at the 0% bracket, and asset location decisions — with confidence that the rules will remain stable for the near term. That stability is an opportunity to plan, not a reason to stop paying attention.

