Tax-Efficient Investing in the US: Capital Gains, Dividends, Tax-Loss Harvesting, and the Full Toolkit
How to legally minimize the taxes you pay on investments in the US β covering long-term vs short-term capital gains, qualified dividends, tax-loss harvesting, asset location, and the right account hierarchy.
Every dollar of investment return lost to tax is a dollar that does not compound. Over a 20-year investment horizon, the gap between a tax-efficient and tax-inefficient approach to the same underlying investments can amount to hundreds of thousands of dollars.
This guide covers the complete US toolkit for minimizing investment tax: how the key taxes work, the accounts that eliminate them, and the practical strategies to deploy them.
The Two Main Taxes on Investments
Capital Gains Tax
Capital gains tax applies when you sell an investment for more than you paid. The tax rate depends on how long you held the asset.
Short-term capital gains (assets held under 1 year): taxed as ordinary income β up to 37% for high earners.
Long-term capital gains (assets held 1 year or more): taxed at preferential rates.
| 2024 taxable income (single) | Long-term CGT rate |
|---|---|
| Under $47,025 | 0% |
| $47,025β$518,900 | 15% |
| Above $518,900 | 20% |
Additionally, the 3.8% Net Investment Income Tax (NIIT) applies on investment income for single filers above $200,000 MAGI ($250,000 married filing jointly).
The most important implication: Never sell investments held under one year if you can avoid it. The difference between a 22% short-term rate and a 15% long-term rate on a $50,000 gain is $3,500 in additional tax β simply by waiting past the one-year mark.
Dividend Tax
Qualified dividends β from US corporations and qualifying foreign corporations, held the required period β are taxed at the same preferential long-term capital gains rates (0%, 15%, or 20%).
Ordinary dividends β from REITs, money market funds, and certain foreign corporations β are taxed as ordinary income.
The dividend allowance is effectively the 0% rate bracket up to $47,025 of taxable income for single filers in 2024.
The Account Hierarchy
The most impactful tax decision is which account holds each investment.
| Account | Tax on gains | Tax on income | Contribution limit |
|---|---|---|---|
| Roth IRA | None (ever) | None (ever) | $7,000/year |
| Traditional IRA / 401(k) | Deferred until withdrawal | Deferred until withdrawal | $7,000 / $23,000/year |
| HSA | None (medical use) | None (medical use) | $4,150β$8,300/year |
| 529 (education) | None (education use) | None (education use) | State-dependent |
| Taxable brokerage | Long-term CGT rates | Dividend/interest tax applies | Unlimited |
Rule 1: Max tax-advantaged accounts before holding investments in a taxable brokerage. Rule 2: Place the most tax-inefficient assets (REITs, bonds, high-dividend funds) inside Traditional IRAs or 401(k)s. Rule 3: Place the most tax-efficient assets (growth ETFs with low turnover) in taxable accounts if space is exhausted.
Tax-Loss Harvesting
Tax-loss harvesting is the practice of selling investments at a loss to offset gains elsewhere. This is one of the most powerful tax tools available to investors in taxable accounts.
How it works:
- You have $15,000 of realized long-term gains this year
- You also have a position sitting at an $8,000 loss in your taxable account
- Sell the losing position, realizing the $8,000 loss
- Net taxable gain: $7,000 (instead of $15,000)
- Tax saving at 15% long-term CGT rate: $1,200
After harvesting the loss, you can immediately purchase a similar (but not substantially identical) investment to maintain market exposure. The IRS wash-sale rule prohibits repurchasing the same or substantially identical security within 30 days before or after the sale.
Example: Sell Vanguard Total Stock Market ETF (VTI) at a loss; immediately purchase iShares Core S&P Total US Stock Market ETF (ITOT) β similar exposure, different fund.
Capital losses first offset capital gains, then up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely.
Asset Location: What Goes Where
When you have both tax-advantaged and taxable accounts, placing assets strategically across them reduces your overall tax bill.
Place in Roth IRA or 401(k) first:
- REITs (high ordinary dividend distributions)
- Bond funds (interest taxed at ordinary income rates)
- High-turnover actively managed funds
- Dividend-heavy equity income funds
Place in taxable account (more tax-efficient):
- Broad market index ETFs (low turnover, mostly qualified dividends)
- Tax-managed funds
- Individual stocks you plan to hold long-term
- Municipal bonds (interest is federally tax-exempt)
Place in Traditional 401(k) / IRA:
- Bonds and bond funds
- REITs
- Assets with high expected ordinary income
Using Both Spouses' Accounts
Married couples can double effective tax-advantaged space:
- Combined Roth IRA: $14,000/year (2 x $7,000)
- Combined HSA (family plan): $8,300/year
- Combined 401(k): $46,000/year (2 x $23,000)
Transferring income-producing assets to a lower-income spouse (who may be in the 0% qualified dividend bracket) can eliminate tax on that income entirely.
The Step-Up in Basis
An often-overlooked benefit: assets inherited through an estate receive a "step-up in basis" to their fair market value at the date of death. All unrealized capital gains during the original owner's lifetime are forgiven for income tax purposes.
This makes it strategically valuable to hold appreciated investments in taxable accounts to death rather than selling them. By contrast, gifting appreciated assets during life transfers the original cost basis to the recipient β and the gain will eventually be taxed.
Annual Tax Checklist (December/Year-End)
| Action | Purpose |
|---|---|
| Max 401(k) contributions | Reduce current year taxable income |
| Fund Roth IRA (by April 15) | Shelter future growth |
| Harvest losses in taxable brokerage | Offset gains; reduce tax bill |
| Rebalance inside IRA/401(k) | No CGT on rebalancing inside tax-advantaged accounts |
| Review qualified charitable distributions | Satisfy RMD while avoiding income tax (age 70.5+) |
| Accelerate or defer income/deductions | Manage marginal bracket exposure |
The Bottom Line
Tax on investments is the most controllable cost in your portfolio. Market returns vary; fees are mostly set by your fund choice; but your account structure and tax strategy are entirely within your control.
The hierarchy is simple: fill tax-advantaged accounts first (Roth IRA, HSA, 401(k)), hold tax-inefficient assets inside those accounts, keep tax-efficient index ETFs in any taxable overflow, and harvest losses systematically every year. Execute this consistently and you keep meaningfully more of every dollar you earn on your investments.
Found This Useful?
Get more guides like this every week β free to your inbox.
Join the Free Newsletter