Investment Taxes: How Your Investments Are Taxed

Last updated July 2026

Short answer

Investments are taxed in two main ways: on the income they pay out (dividends and interest) each year, and on the gain when you sell for more than you paid (a capital gain). Sell within a year and the gain is taxed at ordinary income rates; hold longer and it is a long-term capital gain taxed at lower rates (0, 15, or 20 percent for most filers). Qualified dividends get those lower rates too; ordinary dividends and bond interest do not. You can reduce the drag by holding in tax-advantaged accounts, favoring low-turnover ETFs, harvesting losses, and holding winners past one year. This is general information, not tax advice; consult a tax professional.

Taxes are one of the few investing costs you can influence without predicting the market, and they are the reason many people hire an advisor in the first place. These guides explain how your investments are actually taxed, one topic at a time, so you can have a more informed conversation and know which questions to ask. Everything here is descriptive and educational, not tax advice.

The two ways investments get taxed

Almost every investment tax question comes back to one of two events. The first is income: while you hold an investment, it may pay you dividends (from stocks and funds) or interest (from bonds and cash), and that income is generally taxable in the year you receive it, even if you reinvest it. The second is a capital gain: when you sell an investment for more than you paid, the profit is a taxable gain. Both are covered in how stocks are taxed and, for the payout side, how dividends are taxed.

The single most important variable on the gains side is time. A gain on something you held one year or less is a short-term capital gain, taxed at your ordinary income rate. Hold longer than a year and it becomes a long-term gain, taxed at the lower long-term rates. That distinction, and the current rate brackets, is the subject of the capital gains tax and capital gains tax rates guides. To calculate the gain in the first place you need your cost basis.

Short-term vs long-term: the one-year line

If you remember one thing about investment taxes, make it this: how long you held before selling usually matters more than what you sold. Sell an investment you held for one year or less and any profit is a short-term capital gain, taxed at your ordinary income rate, the same schedule as your paycheck, which can run well above 30 percent for higher earners. Hold for longer than a year and the same profit becomes a long-term capital gain, taxed at the preferential long-term rates of 0, 15, or 20 percent for most filers depending on income.

That gap is large enough to change the after-tax outcome of an otherwise identical trade, which is why many long-term investors are deliberate about crossing the one-year mark before selling a winner. Qualified dividends follow the same logic and get the same lower rates if they meet a holding-period test, while ordinary dividends and bond interest do not. The mechanics, the current brackets, and the holding-period rules are laid out in capital gains tax, capital gains tax rates, and how dividends are taxed. None of this is a reason to hold or sell any particular position; it is context, and your actual rate depends on your income, so treat it as general information rather than tax advice.

Taxes and your accounts: what gets sheltered

The same investment can generate a very different tax bill depending on which account holds it. Inside tax-advantaged accounts like a 401k, a traditional or Roth IRA, or an HSA, the yearly dividends, interest, and capital-gains distributions simply are not taxed as they happen. A traditional account defers the tax until you withdraw in retirement; a Roth is funded with after-tax dollars and then grows and comes out tax-free. In a regular taxable brokerage account, by contrast, you can owe tax every year on the income your holdings throw off, plus tax on the gain whenever you sell.

That difference is the reason the tax questions on this page and the account questions in the retirement accounts guide are really two halves of the same decision. Which fund you hold in which account, an idea called asset location, is one of the highest-leverage moves most investors have, and it is covered in tax-efficient investing. Broad, low-turnover ETFs also help, because their structure means they rarely pass a taxable capital-gains distribution down to you, as explained in how ETFs are taxed.

How different investments are taxed, at a glance

The tax treatment changes with what you hold and what it does. The table below sketches the common cases; every row has a fuller guide, and the details depend on your account and income, so read this as orientation rather than a rule for your situation.

What you hold or doHow it is generally taxed
Sell a stock or ETF held 1 year or lessShort-term capital gain, taxed at your ordinary income rate
Sell a stock or ETF held over 1 yearLong-term capital gain, taxed at 0, 15, or 20 percent for most filers
Qualified dividendsTaxed at the lower long-term rates if the holding-period test is met
Ordinary (non-qualified) dividends and bond interestTaxed at ordinary income rates each year
Broad stock ETF distributionsRarely any capital-gains distribution, thanks to the in-kind mechanism
RSUs at vestingOrdinary income (wages) on the vesting-date value, reported on your W-2
Anything inside a 401k, IRA, Roth, or HSANot taxed year to year; traditional taxed at withdrawal, Roth tax-free

A pattern runs through it: income that arrives every year (interest, non-qualified dividends) tends to be taxed at the higher ordinary rates, while gains you choose to realize after holding more than a year get the lower long-term rates, and anything inside a tax-advantaged account is sheltered as it happens. That is the whole game in one sentence, and it is why holding period and account choice do so much of the work. This is general information, not tax advice; verify the specifics with the IRS or a tax professional.

Common investment-tax mistakes

A few avoidable errors come up again and again. The first is paying tax twice on vested equity comp: your RSUs were already taxed as income when they vested, so your cost basis is the vesting-date value, not zero, even though some brokers report a zero basis on your 1099-B. The second is tripping the wash-sale rule while harvesting a loss, by rebuying the same security within 30 days and having the loss disallowed. The third is forgetting that reinvested dividends add to your cost basis, so leaving them out overstates your gain and overpays the tax.

The fourth is selling a winner a few weeks short of the one-year mark and turning a long-term gain into a short-term one taxed at a much higher rate. None of these require aggressive strategies to avoid, just an accurate picture of what you own and when you bought it. Because the specifics depend on your situation and the rules are genuinely intricate, confirm anything with real dollars attached with a qualified tax professional before acting.

Where Walnut fits

Walnut is an AI investing app, not a tax adviser. What it can do is read your connected brokerage accounts so you can see, in plain words, which of your funds are income-heavy, how concentrated you are, and where each holding sits, which is exactly the context a tax conversation needs. You can ask through Claude, ChatGPT, or its built-in AI, build baskets around a plan, and track every position against the S&P 500. It reads your accounts by default and only places trades you approve. Walnut does not tell you what to buy or how to file, and nothing here is tax advice; for an actual tax plan, consult a qualified professional.

FAQ

How are investments taxed?

Two ways: on income they pay out each year (dividends, interest) and on the capital gain when you sell for more than you paid. Short-term gains (held a year or less) are taxed at ordinary income rates; long-term gains and qualified dividends get lower rates. This is general information, not tax advice.

How much tax do I pay on stock gains?

It depends on how long you held and your income. A gain on stock held one year or less is taxed at your ordinary rate; held longer than a year it is a long-term gain taxed at 0, 15, or 20 percent for most filers. See the capital gains tax rates guide, and consult a tax professional for your situation.

How can I pay less tax on my investments?

Common levers are holding tax-inefficient assets in tax-advantaged accounts, favoring low-turnover ETFs, harvesting losses in taxable accounts, and holding winners past one year for lower long-term rates. None of this is tax advice; verify with a professional.

Does Walnut give tax advice?

No. Walnut is not a registered investment adviser or a tax adviser. It can read your connected accounts so you can see which of your funds are income-heavy and where they sit, which is useful context for a tax conversation, but any tax plan should come from a qualified professional.

Walnut is informational and is not a registered investment adviser or tax adviser. These guides explain how investments are taxed; nothing here is a recommendation to buy, sell, or hold any security, and nothing here is tax advice. Tax rules, rates, brackets, and limits change and depend on your individual circumstances; verify current details with the IRS or a licensed tax professional before making any decision.

Explore more guides

    Investment Taxes Explained (2026): Capital Gains, Dividends & More, Walnut