TAXES

Tax-Efficient Investing

You cannot control the market, but you can control fees and taxes. For investors with taxable accounts, tax efficiency is worth as much as good fund selection, often more.

Intermediate17 min readUpdated 2026

Capital gains: short vs long

When you sell an investment in a taxable account for more than you paid, the profit is a capital gain, and the tax rate depends almost entirely on one thing: how long you held it.

  • Short-term gains (held one year or less) are taxed as ordinary income, at the same rates as your salary, up to 37 percent federally.
  • Long-term gains (held more than one year) get their own preferential brackets: 0, 15, or 20 percent.
RateShort-term (ordinary)Long-term
Lowest bracket10 to 12%0%
Middle brackets22 to 32%15%
Top brackets35 to 37%20%

The 0 percent long-term bracket is real and underused: a married couple with taxable income up to roughly $96,000 (recent figure, thresholds adjust yearly, check current IRS numbers) pays zero federal tax on long-term gains that fit under that line. High earners also pay an extra 3.8 percent Net Investment Income Tax (NIIT) on investment income above $200,000 single or $250,000 married, so the true top federal rate on long-term gains is 23.8 percent, and on short-term gains 40.8 percent.

Key idea The gap between short and long treatment is enormous. For a high earner, waiting one extra day past the one-year mark can cut the tax on a gain nearly in half. Before selling any winner in a taxable account, check the purchase date.

Two more mechanics matter. Your cost basis is what you paid, and choosing which tax lots to sell (specific identification rather than the default first-in-first-out) lets you sell the high-basis shares and minimize the reported gain. And capital losses first offset gains, then up to $3,000 of ordinary income per year, with the rest carried forward indefinitely.

Qualified dividends

Dividends come in two flavors:

  • Qualified dividends get the same 0/15/20 percent rates as long-term gains. Most dividends from US companies and established foreign companies qualify, provided you held the shares for more than 60 days around the ex-dividend date.
  • Ordinary (non-qualified) dividends are taxed as regular income. This bucket includes bond interest paid by bond funds, REIT dividends, and dividends from stocks you traded too quickly.

A broad US stock index fund typically pays around 90 to 95 percent qualified dividends. A REIT fund pays close to zero percent qualified. That difference drives asset location decisions below. Note that bond "dividends" from a bond fund are really interest and are always taxed as ordinary income, no matter how long you hold the fund.

Tax drag: a worked example

Tax drag is the annual haircut taxes take from a taxable portfolio even when you never sell. It comes from taxing dividends and fund distributions every year, which removes money that would otherwise have compounded.

Worked example

Two investors each put $100,000 into a fund earning 7 percent per year total, of which 2 percent arrives as taxable distributions. Investor A holds it in a Roth IRA (no tax). Investor B holds it in a taxable account and pays 15 percent federal plus 5 percent state on the distributions each year, a 20 percent combined rate on the 2 percent yield, which is a 0.40 percent annual drag.

Investor A (sheltered)Investor B (taxable)
Effective annual growth7.00%6.60%
Value after 30 years$761,000$681,000
Cost of tax drag$80,000

And Investor B still owes capital gains tax on the remaining unrealized appreciation when selling. A 0.40 percent drag sounds tiny, but it compounds exactly like an expense ratio. Tax-inefficient holdings (high-yield bonds, REITs, actively managed funds with heavy turnover) can produce drags of 1 to 2 percent per year, which over a career is catastrophic.

Key idea Think of tax drag as a hidden expense ratio you can manage. The tools: hold tax-efficient funds in taxable accounts, put tax-hogs in sheltered accounts, avoid unnecessary selling, and prefer ETFs and index funds over high-turnover active funds.

Asset location

Asset allocation is what you own. Asset location is which account each piece lives in. Given three account types, the logic is:

AccountTax treatmentBest suited for
Taxable brokerageDividends and realized gains taxed yearly; step-up in basis at death; foreign tax credit availableBroad stock index funds and ETFs, international stock funds, municipal bonds, individual stocks you buy and hold
Tax-deferred (traditional 401(k)/IRA)Everything taxed as ordinary income on the way out anywayTaxable bonds, REITs, TIPS, high-yield bonds, anything spinning off ordinary income
RothNever taxed againHighest expected-return assets: stock funds, especially aggressive tilts

The reasoning:

  • Bonds and REITs go in tax-deferred. Their income would be taxed at full ordinary rates in taxable, and they convert nothing to preferential rates. Sheltering them eliminates the worst drag. A side benefit: bonds grow slower, so keeping them in traditional accounts also restrains future RMDs.
  • Stock index funds tolerate taxable accounts well. Mostly qualified dividends, minimal distributions, gains deferred until you choose to sell, plus two perks only taxable accounts offer: the foreign tax credit on international funds and the step-up in basis for heirs.
  • Roth gets your rocket fuel. Every dollar of growth in Roth is a dollar the IRS never touches, so put the assets with the highest expected return there.
Watch out Do not let location distort allocation. Decide your overall stock/bond mix first, then place assets. And do not hold municipal bonds inside an IRA or 401(k): you would be accepting munis' lower yield to get a tax exemption the account already provides. Similarly, avoid holding REITs or taxable bond funds in a taxable account when you have sheltered space sitting in stock funds; swap them.

Location optimization is worth roughly 0.1 to 0.3 percent per year for a typical multi-account investor. Not life-changing on its own, but free money for a one-time setup decision.

Tax-loss harvesting

Markets drop regularly. Tax-loss harvesting turns those drops into tax deductions without changing your investment position. The move:

  1. A fund you hold in taxable is down. Sell it, realizing the loss on paper.
  2. Immediately buy a similar but not "substantially identical" fund, for example selling one S&P 500 fund and buying a total-market fund. Your market exposure barely changes.
  3. Use the realized loss to offset capital gains, then up to $3,000 of ordinary income per year, carrying any excess forward forever.

Worked example

You bought $50,000 of a total-market fund; it falls to $42,000. You harvest the $8,000 loss and swap into an S&P 500 fund. If you have $8,000 of gains elsewhere, you just erased their tax bill (worth $1,904 at 23.8 percent). With no gains, you deduct $3,000 against ordinary income this year (worth roughly $1,050 to $1,300 for a high earner) and carry $5,000 forward. Meanwhile you still own the same market.

Be honest about what harvesting does: it mostly defers tax rather than eliminating it, because the replacement shares have a lower basis, meaning a bigger gain later. The real benefits are the time value of the deferral, the rate arbitrage of deducting at ordinary rates now (via the $3,000) and repaying at long-term rates later, and the possibility that the deferred gain is never taxed at all if the shares are donated or held until death, when heirs receive a step-up in basis.

The wash sale rule

The IRS disallows a loss if you buy the same or a "substantially identical" security within 30 days before or after the sale, a 61-day window in total. The disallowed loss is not gone forever; it is added to the basis of the replacement shares, but your harvest failed for this year.

Watch out The three wash-sale traps that actually catch people:
1. Automatic dividend reinvestment. A reinvested dividend inside the 61-day window is a purchase and washes part of your loss. Turn off auto-reinvest in taxable accounts if you harvest.
2. Buying the same fund in your IRA or 401(k). The rule applies across all your accounts, and your spouse's. A wash triggered in an IRA is the worst case because the disallowed loss is permanently destroyed rather than added to basis.
3. Identical index, different wrapper. Two funds tracking the exact same index are risky ground for "substantially identical." Swap to a fund tracking a different index (S&P 500 vs total market, or one international index provider vs another). Correlation above 0.99, but different indexes.

Practical hygiene: keep a list of harvest partners for each core fund, wait 31 days before repurchasing the original if you want it back, and do not harvest a fund you bought within the last 30 days.

Tax-gain harvesting

The mirror-image strategy for low-income years. If your taxable income sits below the top of the 0 percent long-term gains bracket (roughly $48,000 single, $96,000 married, recent figures), you can sell appreciated shares, pay zero federal tax on the gain, and immediately buy them back. There is no wash sale rule for gains, so instant repurchase is fine. The result is a free basis step-up: same portfolio, higher cost basis, smaller future taxable gain.

Prime candidates: early retirees before Social Security and RMDs begin, students and residents, anyone in a sabbatical or low-income year. Each year, estimate the room left under the 0 percent threshold and harvest gains up to it. Watch the side effects: harvested gains still count as income for ACA premium subsidies and state taxes, and can push some Social Security into taxability. In a low-income year, tax-gain harvesting and Roth conversions compete for the same low-bracket space, so choose deliberately.

Mutual funds vs ETFs: the tax mechanics

ETFs are structurally more tax-efficient than traditional mutual funds in taxable accounts, and the reason is plumbing, not magic.

When mutual fund investors redeem, the fund may have to sell holdings, realizing capital gains that are then distributed to every remaining shareholder, who owes tax on them even if they personally sold nothing. Actively managed funds with high turnover regularly distribute gains equal to 5 or 10 percent of the fund's value in a year, taxable to you at year end.

ETFs redeem differently. Large institutions exchange ETF shares for baskets of the underlying stocks in kind, no sale occurs, and the fund can hand out its lowest-basis shares in the process, continuously flushing embedded gains out of the portfolio. The practical result: broad-market ETFs have gone decades without distributing any capital gains. You are taxed on dividends each year and on your own gains when you sell, and that is all.

Traditional mutual fundETF
Dividends taxed yearlyYesYes
Capital gains distributionsCommon, especially active fundsRare to none for broad index ETFs
Other investors' redemptions affect your taxesYesEffectively no
Control over when you realize gainsPartialFull
Key idea In taxable accounts, prefer broad index ETFs (or index mutual funds from providers whose structure shares the ETF tax advantage). Inside IRAs and 401(k)s the distinction is irrelevant because nothing is taxed year to year, so use whatever is cheapest on the menu. Never hold a high-turnover active mutual fund in a taxable account; that is the single most common self-inflicted tax wound.

Charitable strategies: DAFs and QCDs

If you give to charity anyway, the tax code lets you give the same amount at a much lower personal cost.

Donate appreciated shares, not cash

Donating long-term appreciated stock to charity deducts the full market value and permanently erases the capital gain. If you own shares worth $10,000 with a $4,000 basis, donating them instead of cash avoids up to $1,428 of gains tax (23.8 percent of $6,000) on top of the same charitable deduction. If you like the stock, repurchase it with the cash you would have donated; you now own it with a fresh, higher basis.

Donor-advised funds (DAFs)

A DAF is a charitable holding account: you contribute cash or appreciated shares, take the full deduction immediately, invest the balance, and recommend grants to charities on any schedule for years afterward. Two big use cases:

  • Bunching. With a large standard deduction, modest annual gifts often produce no tax benefit. Contribute five years of giving to a DAF in one high-income year, itemize that year, take the standard deduction the other four, and keep granting to charities annually as usual.
  • Windfall years. Big bonus, equity vesting, business sale: a DAF contribution in that year deducts at your highest-ever marginal rate.

Qualified charitable distributions (QCDs)

Once you are 70.5 or older, you can send money directly from an IRA to charity, up to roughly $108,000 per year (recent figure, indexed, check current IRS limits). A QCD counts toward your RMD but never appears in your adjusted gross income, which beats taking the RMD and deducting a donation: it works even if you take the standard deduction, and it keeps AGI down, which protects Medicare premiums and Social Security taxation. For charitable retirees past RMD age, QCDs should almost always be the first dollars given.

State taxes and municipal bonds

Federal tax is only part of the bill. State income tax on investment income ranges from zero (Texas, Florida, Washington, and others) to over 13 percent (California). A few state-specific points:

  • Treasury interest is state-tax exempt. Interest from Treasuries and Treasury funds is exempt from state income tax. In a high-tax state, a Treasury money market fund often beats a regular one after tax.
  • Most states tax capital gains as ordinary income, with no preferential long-term rate. Your true long-term rate in California can approach 37 percent combined.
  • Moving states matters. Realizing large gains after relocating from a high-tax to a no-tax state can save enormous sums, though states scrutinize residency changes around large transactions.

Municipal bonds

Interest from municipal bonds is exempt from federal tax, and from state tax too when you buy bonds issued in your own state (or a single-state muni fund). Munis yield less than comparable taxable bonds, so they only make sense when your tax rate is high enough. Compare using tax-equivalent yield: divide the muni yield by (1 minus your marginal rate).

Worked example

A muni fund yields 3.2 percent. A taxable bond fund of similar risk yields 4.4 percent. For an investor in the 35 percent federal bracket, the muni's tax-equivalent yield is 3.2 / (1 - 0.35) = 4.92 percent, so the muni wins. For an investor in the 22 percent bracket, it is 3.2 / 0.78 = 4.10 percent, so the taxable bond wins. Munis belong in taxable accounts of high-bracket investors, never inside retirement accounts, and note that some muni interest still counts for the alternative minimum tax and for ACA subsidy income calculations.

A practical checklist

  1. Fill tax-advantaged accounts before investing in taxable (see the waterfall in the retirement accounts guide).
  2. In taxable, hold broad index ETFs or tax-efficient index funds; keep bonds, REITs, and active funds sheltered.
  3. Never sell a winner held less than a year without checking the calendar.
  4. Use specific-lot identification when selling; turn off dividend reinvestment in taxable if you harvest losses.
  5. Harvest losses in downturns, respecting the 61-day wash window across all household accounts.
  6. In low-income years, harvest gains at 0 percent or do Roth conversions.
  7. Give appreciated shares, bunch via a DAF, and use QCDs after 70.5.
  8. In high-tax states and high brackets, compare munis and Treasuries on tax-equivalent yield.
Every dollar of tax you legally avoid is a risk-free, guaranteed return. There are very few of those in investing, so collect all of them.

This page is education, not tax advice. Thresholds and limits change annually and interact with your full return, so verify current IRS figures and consider professional help for large or unusual situations.