Investing

Tax Optimization Strategies for Investors: Tax-Advantaged Accounts and More

A stack of blank forms with a binder clip, a calculator, reading glasses and a fountain pen on a desk

The main legal ways for US investors to reduce taxes are to use tax-advantaged accounts such as 401(k)s, IRAs and HSAs, hold investments long enough for long-term capital gains rates, offset gains with losses, and place each investment in the account type where it is taxed least. None of these makes taxes disappear, and the right mix depends on your income and situation. The figures below are for tax year 2026 in the US.

How investment income is taxed

  • Ordinary income (wages, interest, short-term capital gains on assets held one year or less) is taxed at your regular federal rates, which for 2026 range from 10% to 37%.
  • Long-term capital gains (assets held more than one year) and qualified dividends are taxed at 0%, 15% or 20%, depending on taxable income.
  • Marginal vs. effective rate: your marginal rate applies to your last dollar of income; your effective rate is total tax divided by total income. Your effective rate is usually lower than your marginal rate because income is taxed in layers.

For 2026, the IRS's Revenue Procedure 2025-32 sets the top of the 0% long-term capital gains bracket at $49,450 of taxable income for single filers and $98,900 for married couples filing jointly ($66,200 for heads of household). The 15% rate applies above those amounts up to $545,500 (single) and $613,700 (joint); 20% applies above that. Some higher-income investors also owe a separate net investment income tax.

Strategy 1: Use tax-advantaged accounts first

Tax-advantaged accounts are accounts the tax code rewards: you either get a deduction now (traditional), tax-free qualified withdrawals later (Roth), or, with an HSA, both for medical costs. The trade-off is that contributions are capped and withdrawals follow rules.

Account2026 limit (US)How it is taxed
401(k), 403(b), most 457 plans, Thrift Savings Plan$24,500; +$8,000 catch-up at 50+; +$11,250 instead at ages 60–63Traditional: contributions reduce taxable income now, withdrawals taxed later. Roth option: no deduction now, qualified withdrawals tax-free.
Traditional IRA$7,500 combined with Roth IRA; +$1,100 at 50+May be deductible. If you or your spouse are covered by a workplace plan, the deduction phases out at certain incomes (for example, $81,000–$91,000 for a covered single filer in 2026).
Roth IRASame combined $7,500 limitNo deduction; qualified withdrawals tax-free. Eligibility phases out at $153,000–$168,000 (single) and $242,000–$252,000 (joint) in 2026.
Health Savings Account (HSA)$4,400 self-only, $8,750 family HDHP coverage; +$1,000 at 55+Contributions deductible, earnings tax-free, withdrawals for qualified medical expenses tax-free.

Two details worth knowing:

  • Employer match: if your employer matches 401(k) contributions, contributing at least enough to get the full match adds money you would not otherwise receive. Check your plan's vesting schedule.
  • HSAs after 65: according to IRS Publication 969, HSA withdrawals not used for qualified medical expenses are taxable and may face an additional 20% tax, but that additional tax does not apply after you reach 65. You must be covered by a qualifying high-deductible health plan to contribute.

How much to put into these accounts at each stage of life is covered in retirement savings by age. Choosing between traditional and Roth accounts comes down to whether your tax rate is likely to be higher now or later. Our Roth vs. traditional IRA comparison works through the math.

Strategy 2: Hold for long-term rates

Gains on assets held more than one year are generally long-term, per IRS Topic 409, and qualify for the lower rates above. Selling a winner a few weeks early can turn a 15% tax into one at your ordinary rate. In years when your taxable income is unusually low, such as between jobs or early in retirement, some or all long-term gains may fall in the 0% bracket.

Example: a single filer with $40,000 of taxable income from wages in 2026 who realizes $8,000 of long-term gains has $48,000 of taxable income, below the $49,450 threshold, so those gains would be taxed at 0% federally. State taxes may still apply. This is an illustration, not tax advice for your situation.

Strategy 3: Tax-loss harvesting

Selling an investment at a loss in a taxable account can offset capital gains. According to the IRS:

  1. Capital losses first offset capital gains.
  2. If losses exceed gains, you can deduct up to $3,000 a year ($1,500 if married filing separately) against other income.
  3. Unused losses carry forward to later years.

The wash sale rule: IRS Publication 550 explains that a wash sale occurs when you sell stock or securities at a loss and, within 30 days before or after the sale, you buy substantially identical stock or securities (or acquire a contract or option to buy them). A wash sale disallows the loss for now. Whether two funds are "substantially identical" is not defined by a simple test, so be cautious about swapping between funds that track the same index, and remember that purchases in an IRA can also matter.

Harvesting only helps in taxable accounts. Gains and losses inside an IRA or 401(k) are not reported year to year.

Strategy 4: Asset location

Asset location means choosing which account holds which investment. The general idea:

  • Tax-deferred or Roth accounts are a natural home for investments whose income is taxed at ordinary rates, such as taxable bond funds and REITs. Investor.gov notes that REIT dividends are generally taxed as ordinary income rather than at qualified-dividend rates.
  • Taxable accounts can suit broad stock index funds, which tend to distribute fewer capital gains, and municipal bonds, whose interest is often exempt from federal tax.
  • Roth accounts never tax qualified withdrawals, so some investors prefer to hold the investments they expect to grow most there. Higher expected growth also means higher risk.

Asset location is a refinement. Your overall mix of stocks and bonds matters more; see How to Build an Investment Portfolio from Scratch.

Strategy 5: Give appreciated investments instead of cash

If you give to charity and itemize deductions, donating shares you have held more than a year can avoid the capital gains tax you would owe if you sold them first. Deduction limits and rules apply; check IRS guidance or ask a tax professional before giving.

Frequently asked questions

What are tax-advantaged accounts?

They are accounts with special tax treatment, such as 401(k) and 403(b) plans, traditional and Roth IRAs, HSAs and 529 education savings plans. Each has its own contribution limits, eligibility rules and withdrawal rules, and penalties can apply if money is taken out for non-qualified purposes or too early.

Which tax-advantaged account should I fund first?

A common order is to contribute enough to a workplace plan to get any employer match, then consider an HSA if you are eligible and an IRA, then add more to the workplace plan. The best order depends on your plan's fees and investment choices, your tax bracket and when you will need the money.

What happens if I withdraw from a retirement account early?

Withdrawals from traditional IRAs before age 59½ are generally taxable and the IRS says a 10% additional tax generally applies, with some exceptions. Roth IRA contributions (not earnings) can generally be withdrawn without tax. Check the specific rules before taking money out.

Is tax optimization legal?

Yes. Using the accounts, rates and rules the tax code provides is legal tax planning. Hiding income or claiming deductions you are not entitled to is tax evasion, which is illegal.

Do I need a professional?

Simple situations are often handled well with tax software. Self-employment income, rental property, large gains, stock compensation or multiple states are good reasons to talk to a CPA or enrolled agent.

Will these limits change?

Yes. Most limits are adjusted each year. The IRS has already announced some 2027 retirement-plan figures, including a $25,500 401(k) limit and an unchanged $7,500 IRA limit. Check IRS.gov each year.

Try it yourself

Take 15 minutes with your latest pay stub and account statements. Write down how much you contribute to each account this year, your employer's match formula, and how much room is left under the 2026 limits above. If you have a taxable brokerage account, list any positions currently showing a loss and the date you bought each. That one page shows you where the easiest tax savings may be.

Sources

  1. 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500 (IR-2025-111) — Internal Revenue Service
  2. Revenue Procedure 2025-19 (2026 HSA limits) — Internal Revenue Service
  3. Revenue Procedure 2025-32 (2026 inflation adjustments) — Internal Revenue Service
  4. IRS releases tax inflation adjustments for tax year 2026 — Internal Revenue Service
  5. Topic No. 409, Capital Gains and Losses — Internal Revenue Service
  6. Publication 550, Investment Income and Expenses — Internal Revenue Service
  7. Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans — Internal Revenue Service
  8. Real Estate Investment Trusts (REITs) — U.S. Securities and Exchange Commission (Investor.gov)
  9. Publication 590-B, Distributions from Individual Retirement Arrangements (IRAs) — Internal Revenue Service

This article is general education, not personal financial, tax or investment advice. Figures were checked on the date shown above and can change. Spotted an error? Report a correction — see our editorial standards.