Find a course

Module 4: Accounts and TaxesLesson 10 of 1212 min

How Investments Are Taxed

Learn how capital gains, dividends and interest are taxed, why holding periods matter, how tax-loss harvesting works, and where to hold each investment.

Step 1 of 13Learn

Eleven months or thirteen?

Two friends each buy $10,000 of the same stock and watch it rise to $15,000. One sells after eleven months; the other waits until thirteen months. Their $5,000 profits are identical, but in the US the first may owe roughly twice as much tax. The difference is the holding period.

When you sell an investment in a taxable account for more than you paid, the profit is a capital gain. What you paid, including any commissions, is your cost basis. If you sell for less than your basis, you have a capital loss.

US tax law splits gains into two kinds:

  • Short-term capital gains, on investments held one year or less, are taxed at your ordinary income tax rate, the same as your salary.
  • Long-term capital gains, on investments held more than one year, are taxed at lower rates: currently 0%, 15% or 20% depending on your taxable income, with an extra 3.8% for high earners.

For many middle-income investors, that's a 15% long-term rate versus 22% or more for short-term gains. For our friends, the difference on a $5,000 gain could be several hundred dollars.

Two key points. First, you owe capital gains tax only when you sell. A stock that has doubled but hasn't been sold has an unrealized gain and no tax yet. Second, none of this applies inside 401(k)s and IRAs; there, buying and selling creates no tax until withdrawal (traditional) or ever (qualified Roth).

Step 2 of 13Compare

Eleven months vs. thirteen

AspectShort-term gainLong-term gain
HeldOne year or lessMore than one year
Tax rateOrdinary income rate0%, 15% or 20% (+3.8% for high earners)
Typical middle-income rate22% or more15%
Tax on a $5,000 gainAbout $1,100 at 22%About $750 at 15%

Step 3 of 13Practice · Work it out

In a taxable account, you bought 50 shares at $80 each and sold them two years later at $110 each. If your long-term capital gains rate is 15%, how much tax do you owe on the gain, in dollars?

Step 4 of 13Learn

Dividends, interest and fund distributions

Capital gains aren't the only taxable events in a brokerage account. Income paid along the way is taxed in the year you receive it, even if you reinvest it automatically.

  • Qualified dividends, paid by most US companies and many foreign ones on shares held long enough, are taxed at the same lower rates as long-term capital gains.
  • Ordinary (nonqualified) dividends, including those from REITs and short holding periods, are taxed at your regular income tax rate.
  • Interest from bonds, bond funds, CDs and savings accounts is generally taxed as ordinary income. Municipal bond interest is usually exempt from federal income tax, and Treasury interest is exempt from state and local income tax.
  • Fund capital gains distributions: when a mutual fund sells holdings at a profit, it must pass those gains to shareholders, who owe tax even if they never sold a share. Actively managed funds that trade a lot can generate large distributions. Index funds, and especially index ETFs, usually distribute far less.

The ongoing tax cost of holding an investment in a taxable account is called tax drag. A high-yield bond fund paying 6% interest taxed at 24% loses about 1.4 percentage points of return to taxes every year. A broad stock index ETF with a 1.5% qualified dividend yield taxed at 15% loses only about 0.2 points. That difference shapes where smart investors hold each type of asset, as you'll see shortly.

Step 5 of 13Practice · Sort into groups

In a US taxable account, how is each item usually taxed?

Tap an item, then tap its group (or drag it there).

Step 6 of 13Learn

Tax-loss harvesting and the wash-sale rule

Losses have a silver lining in a taxable account. Tax-loss harvesting means selling an investment that has fallen below your cost basis to realize a capital loss, which can then offset taxes.

Here's how the US rules work. Capital losses first offset capital gains. If losses exceed gains, you can deduct up to $3,000 of the excess against ordinary income each year ($1,500 if married filing separately). Any remaining loss carries forward to future years indefinitely.

Example: you realize $5,000 of gains and $9,500 of losses this year. The losses wipe out the gains, leaving a net loss of $4,500. You deduct $3,000 against your salary this year and carry $1,500 forward.

To stay invested, harvesters usually buy a similar but not substantially identical investment right away, for example selling one total market index fund and buying a fund that tracks a different but similar index.

The catch is the wash-sale rule: if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now (it's added to the basis of the new shares instead). The rule also applies if you buy the identical security in your IRA, so watch automatic reinvestments across accounts.

Harvesting doesn't erase taxes forever. Buying the replacement at a lower price lowers your cost basis, so you may owe more when you eventually sell. The value comes from deferring tax and from deducting losses against income taxed at higher rates.

Step 7 of 13Practice · Work it out

This year you realize $5,000 of capital gains and $9,500 of capital losses. Under the US rules described, how much of the net loss carries forward to next year, in dollars?

Step 8 of 13Diagram

Following a $9,500 loss through the rules

Following a $9,500 loss through the rulesProcess diagram: $9,500 of losses → Offset $5,000 of gains → $4,500 net loss left → Deduct $3,000 → Carry $1,500 forward.$9,500 of lossesOffset $5,000 ofgains$4,500 net loss leftDeduct $3,000Carry $1,500forward

Tap a shape with to see more.

$9,500 of losses
Offset $5,000 of gains

Gains taxed: $0.

$4,500 net loss left
Deduct $3,000

Against ordinary income this year.

Carry $1,500 forward

Use it in future years, indefinitely.

Step 9 of 13Learn

Asset location: the right investment in the right account

If you have both taxable and tax-advantaged accounts, where you hold each investment can raise your after-tax return without changing your overall allocation. This is called asset location.

The general principle: put the least tax-efficient investments in tax-advantaged accounts, and the most tax-efficient in taxable accounts.

  • Better in tax-advantaged accounts (401(k), IRA): taxable bond funds, whose interest is taxed as ordinary income every year; REITs; actively managed funds with high turnover.
  • Better in taxable accounts: broad stock index funds and ETFs, which produce mostly qualified dividends and few capital gains distributions; municipal bonds, whose interest is already tax-exempt at the federal level; individual stocks you plan to hold for many years.
  • Roth accounts are especially valuable for assets with the highest expected growth, since that growth will never be taxed.

Other simple ways to reduce tax drag in a taxable account:

  • Hold investments longer than a year before selling, when practical.
  • Prefer index ETFs or index funds with low turnover.
  • Avoid buying a mutual fund just before its annual capital gains distribution.
  • When rebalancing, use new contributions instead of selling.

Taxes shouldn't override good investing. Don't keep an investment you no longer want just to avoid a modest tax bill, and don't buy a poor investment for a tax break. But when two choices are otherwise equal, the more tax-efficient one wins.

Step 10 of 13Practice · Diagram

Asset location at a glance

Where should a taxable bond fund usually go?

Tap the shape that answers the question, then press Check.

Asset location at a glanceVenn diagram: Tax-advantaged, Taxable, Tax-advantaged only, Tax-advantaged + Taxable (overlap), Taxable only.Tax-advantagedTaxable• Taxable bond funds• REITs• High-turnover active funds• Broad stock index funds• Stock index ETFs• Municipal bonds
Tax-advantaged

401(k), IRA: no yearly tax on income inside.

Taxable

Brokerage account: yearly tax on dividends, interest and realized gains.

Tax-advantaged only
  • Taxable bond funds
  • REITs
  • High-turnover active funds
Tax-advantaged + Taxable (overlap)

Fine anywhere; most tax-efficient in taxable accounts.

  • Broad stock index funds
Taxable only
  • Stock index ETFs
  • Municipal bonds

Step 11 of 13Practice · True or false

If you sell a fund at a loss and buy the exact same fund 10 days later, the wash-sale rule disallows the loss for now.

Step 12 of 13Practice · What would you do?

What would you do?

Omar bought shares in a taxable account 11 months ago and has a $12,000 gain. He no longer needs the money urgently and still likes the investment. He is in the 24% ordinary income bracket and would pay 15% on long-term gains. What is the most tax-aware choice, assuming he would sell soon either way?

Step 13 of 13Practice · Choose one

Which investment is generally the best candidate to hold in a tax-advantaged account rather than a taxable one?