

Traditional IRA, Roth, 401(k), brokerage, pension, Social Security — each gets taxed differently in retirement. Here's the complete breakdown.

Learn how investments are taxed across every account type, from capital gains and dividends to IRAs and 401(k)s. Includes 2025-2026 rates and examples.

Portfolio rebalancing keeps your investment mix on target. Learn when to rebalance, the best strategies, and how to avoid unnecessary taxes and fees.

Founder of Arcanomy
Ph.D. engineer and MBA writing about wealth psychology, financial clarity, and why most money advice misses the point.
Subscribe for more insights, tips, and updates, straight to your inbox.
We respect your privacy and will never share your information.
The average American stock investor pays an effective federal tax rate on their gains somewhere between 0% and 23.8%. Where you land in that range depends on three things you can control and one you can't. The three you control: how long you hold, when you sell, and which account you use. The one you can't: Congress.
This guide covers every tax scenario a stock investor will face, from selling shares to collecting dividends to harvesting losses. No surprises at tax time.
The 30-Second Version: You owe tax on stocks when you sell for a profit or receive dividends. Hold over a year for long-term rates (0%, 15%, or 20%). Sell within a year and you're taxed at your ordinary income rate (up to 37%). Dividends follow similar rules. Losses can offset gains, saving you real money.
You only owe capital gains tax when you sell a stock for more than you paid. A stock sitting in your Schwab account that doubled in value? Zero tax. The moment you click "sell" and lock in the profit, the IRS gets involved.
The holding period is everything.
Short-term (held 1 year or less): Taxed at your ordinary income rate. If you're in the 24% bracket, your stock gain is taxed at 24%. In the 37% bracket, it's 37%.
Long-term (held more than 1 year): Taxed at preferential rates of 0%, 15%, or 20% depending on income.
| Rate | Taxable Income |
|---|---|
| 0% | Up to $48,350 |
| 15% | $48,351 - $533,400 |
| 20% | Over $533,400 |
Meet Jasmine, 29, a single marketing manager earning $75,000. She bought 100 shares of a tech company at $50 each ($5,000 cost basis). The stock hit $80 per share. She's sitting on a $3,000 gain.
If Jasmine sells at 11 months (short-term): $3,000 × 22% (her ordinary rate) = $660 tax
If Jasmine waits two more months (long-term): $3,000 × 15% = $450 tax
Waiting saved her $210. That's a 31% reduction in her tax bill on this trade, for doing literally nothing.
On a $30,000 gain, the savings would be $2,100. On $300k, it's $21,000. The math scales.
Stocks you hold generate no tax liability on appreciation. Your portfolio could grow from $50,000 to $500,000 and you'd owe nothing. These are "unrealized gains," and under current U.S. law, they're not taxed.
The exception: dividends. If a stock you hold pays dividends, those are taxable in the year received, whether you take the cash or reinvest via DRIP.
For the full breakdown of qualified vs. ordinary dividend rates and the 61-day holding rule, see our dedicated guide on how dividends are taxed. The short version: qualified dividends get the same 0%/15%/20% rates as long-term capital gains. Ordinary dividends are taxed as income.
Not every stock goes up. (If you've been investing for more than a year, you already know this viscerally.) The silver lining of a losing position is its tax value.
Capital losses offset capital gains dollar for dollar. Sold one stock for a $5,000 gain and another for a $5,000 loss? Net gain: zero. Tax: zero.
If your losses exceed your gains, you can deduct up to $3,000 per year against your ordinary income ($1,500 if married filing separately). Unused losses carry forward indefinitely.
Someone with $10,000 in stock losses and $4,000 in stock gains would first offset the gains (net: negative $6,000), then deduct $3,000 against salary income, then carry the remaining $3,000 forward to next year.
This isn't just a consolation prize. Tax-loss harvesting is a deliberate strategy. Late in the year, scan your portfolio for positions that are down. Sell them to realize the loss. Use that loss to offset gains elsewhere. Just watch out for the wash sale rule.
The IRS anticipated investors selling a stock for a loss and immediately buying it back. Their response: the wash sale rule.
If you sell a stock at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. It doesn't vanish entirely (it gets added to the cost basis of the replacement shares), but you lose the immediate tax benefit.
"Substantially identical" means the same stock or an extremely similar security. Sell Vanguard's S&P 500 ETF (VOO) at a loss and buy Schwab's equivalent (SCHX) within 30 days? The IRS has been vague on whether that counts, but most tax professionals advise caution.
One thing to know: the wash sale rule currently applies to stocks and securities but not to cryptocurrency, which the IRS classifies as property. Proposals to close this gap keep appearing in budget discussions, but as of February 2026, you can sell Bitcoin at a loss and rebuy immediately without triggering a wash sale. That could change.
High-income investors face the Net Investment Income Tax (NIIT): an additional 3.8% on investment income when modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).
This stacks on top of capital gains rates. A single filer earning $250,000 who sells stock for a $30,000 long-term gain would pay 15% + 3.8% = 18.8% instead of just 15%. That's $5,640 instead of $4,500.
The NIIT thresholds have not been adjusted for inflation since 2013. Every year, more middle-to-upper-income investors cross the line without realizing it.
Your broker sends Form 1099-B by mid-February, summarizing every sale: date bought, date sold, cost basis, proceeds, and gain or loss. You transfer this information to Schedule D and Form 8949 on your tax return.
For dividends, Form 1099-DIV arrives around the same time.
If you receive more than $1,500 in ordinary dividends, you'll also need Schedule B.
If you expect to owe more than $1,000 in taxes from stock gains, consider making quarterly estimated tax payments to avoid underpayment penalties. Our article on when you actually pay capital gains tax covers the timing and deadlines.
Check your holding periods before selling. Your brokerage's "tax lot" view shows exactly when each share was purchased. Wait for the one-year mark to switch from short-term to long-term rates.
Harvest losses in November and December. Scan for positions that are down and sell them to offset gains realized earlier in the year. Reinvest in a different (not substantially identical) fund.
Hold dividend stocks in tax-advantaged accounts when possible. If you own REITs or high-yield stocks, place them in your IRA or 401(k) to avoid annual dividend taxation. For tax-efficient index funds, a taxable account is fine.
Model your tax scenarios. Use our compound interest calculator to compare after-tax returns in different account types.
Know your bracket. If you're near the 0% capital gains threshold, timing a sale into a lower-income year could mean paying nothing.
For the bigger picture on how different account types affect your investment taxes, see how investments are taxed: a beginner's guide. For strategies on building a long-term investment portfolio, visit our fundamentals section.