When do you pay taxes on a brokerage account?
Last updated August 2026
Short answer
The most common misconception is that tax follows the money leaving the account. It does not. It follows what happens inside it, which is why you can owe tax in a year you withdrew nothing.
What is and is not a taxable event
| Event | Taxable? | Treated as |
|---|---|---|
| Dividends and interest received | Yes, that year | Ordinary or qualified rates |
| Selling at a gain | Yes, that year | Long-term or short-term |
| Fund capital gains distributions | Yes, that year | Usually long-term |
| Investment rising in value, unsold | No | Nothing, gain is unrealized |
| Withdrawing cash to your bank | No | Not a taxable event |
| Transferring the account to another broker | No | Basis carries over |
The last two rows are the ones that surprise people. Moving money to your bank does not create a tax bill, because the tax was already settled when the dividend was paid or the sale was made. And transferring your holdings to a different broker is not a sale, so nothing is triggered.
Income: taxed every year, whether you see it or not
Dividends and interest are taxed in the year they are paid. Automatic reinvestment does not defer anything: it is treated as receiving the cash and immediately buying more shares with it.
Qualified dividends, which most US stock dividends are if you have held the shares long enough, are taxed at the lower long-term capital gains rates. Ordinary dividends, including most REIT distributions and bond fund interest, are taxed at your marginal income rate.
The practical consequence: an account full of high-yield holdings generates a tax bill every year regardless of whether the investments have gone up.
Gains: taxed only when you sell
A holding that goes from $10,000 to $25,000 owes nothing while you keep it. The gain is unrealized. Sell and the $15,000 becomes taxable, with the rate depending entirely on how long you held it.
More than one year gives a long-term gain, taxed at 0%, 15% or 20% depending on your taxable income. One year or less gives a short-term gain, taxed as ordinary income, which for many people is a materially higher rate.
Because you control the timing, you control the tax. Deferring a sale past the one-year mark, or into a year when your income is lower, are two of the few genuinely reliable ways to reduce an investment tax bill.
The one that catches fund holders out
Mutual funds distribute realized capital gains to shareholders, usually in December. You can owe tax on a distribution even if you bought the fund weeks earlier and it has fallen in value since.
ETFs are structurally better at avoiding this, which is a large part of why they are described as more tax-efficient than equivalent mutual funds. Inside a retirement account it makes no difference; in a taxable account it can.
Losses work in your favour
Selling at a loss creates a realized capital loss, which offsets realized gains dollar for dollar. If losses exceed gains, a limited amount can be deducted against ordinary income each year, and the remainder carries forward indefinitely.
The constraint is the wash sale rule: buy the same or a substantially identical investment within thirty days before or after the sale and the loss is disallowed for now, folded into the basis of the new position instead.
Try it in Walnut
Walnut reads your connected brokerage positions, so before selling you can see what you hold and how the sale changes your allocation.
What arrives in January
Your broker issues a consolidated 1099 covering dividends, interest and every sale with its cost basis and holding period. The same information goes to the IRS, so it needs to match your return.
Two things to check. Corrected 1099s are common in February and March, which is a good reason not to file the moment the first one arrives. And cost basis can be missing or wrong for holdings transferred in from another broker, where you may need your own records to establish it.
Sources
Capital gains rates and holding periods are in IRS Topic 409. Dividend classification, the wash sale rule and 1099 reporting are covered in IRS Publication 550. Walnut is informational and is not an investment adviser. This guide is educational and not personalized tax or investment advice; anything with a tax consequence is worth confirming with a tax professional.
FAQ
When do you pay taxes on a brokerage account?
+
When the account pays you income and when you sell at a profit. Dividends and interest are taxed in the year received, even if automatically reinvested. Capital gains are taxed in the year you sell. An investment that rises in value and is not sold creates no tax at all.
Do I pay tax if I do not withdraw the money?
+
Yes. Withdrawing is not a taxable event and has no bearing on what you owe. Tax follows the dividends and the sales inside the account, so you can owe tax in a year you took nothing out, and you can withdraw cash tax free if it came from money you already paid tax on.
How are long-term and short-term gains taxed differently?
+
Hold more than a year and the gain is long-term, taxed at preferential rates of 0%, 15% or 20% depending on income. Sell within a year and it is short-term, taxed as ordinary income at your marginal rate. For most people that difference is worth more than any single trading decision.
Are reinvested dividends taxed?
+
Yes. Automatic reinvestment is treated as receiving the cash and then buying with it, so it is taxable in that year. The upside is that the purchase increases your cost basis, which reduces the taxable gain when you eventually sell. Forgetting this leads people to pay tax twice on the same money.