Why pay tax on capital gains if I never withdrew the money?

So my broker reinvested everything automatically — dividends, any gains from funds rebalancing inside my taxable account. I never saw a dollar of it hit my bank account. Then I get a 1099-B and a 1099-DIV in the mail showing hundreds of dollars of gains and dividends, and my tax software is telling me I owe tax on all of it. I didn't withdraw the money, it just stayed in the account and got reinvested. That feels like getting taxed on something I never actually had. I tried Googling it and got a bunch of conflicting answers. Is this actually how it works, or is my brokerage reporting something wrong? Do I really owe this even though the money never left the investment account?

32 comments

Have you checked whether your account is a taxable brokerage account or a tax-advantaged one like an IRA? Because the answer is completely different depending on which one it is.

Paul V.

Author

It's a regular taxable brokerage account, not an IRA or anything like that. Just a standard individual account I opened to invest in index funds.

Yeah unfortunately this is exactly how it works for a taxable account. The tax event is the sale or the dividend payment itself, not the withdrawal. When your fund sells holdings and distributes capital gains, or pays dividends, that's income in the year it happened even if the cash immediately got reinvested. I uploaded my 1099-B and 1099-DIV to taxr.ai last year when I had the same confusion and it walked me through which lines on Schedule D and Form 8949 each entry mapped to. The reinvestment part does raise your cost basis in the new shares though, which matters when you eventually sell.

Paul V.

Author

Wait so the reinvested dividends actually raise my cost basis? So I won't get double-taxed on that amount when I sell later?

Exactly right. Each reinvested dividend creates a new lot of shares with a purchase date and a cost basis equal to what was reinvested. Keep good records of those lots — your broker should track them but it's worth verifying.

Does your 1099-DIV show amounts in box 2a? That's the capital gain distributions box. Mutual funds and ETFs pass those through to you when they sell holdings inside the fund, and you owe tax on them whether or not you reinvested.

Paul V.

Author

Yes there's definitely something in box 2a. I didn't even know that box existed before this.

The concept that tripped me up early on is that "realizing" a gain just means a sale happened — it doesn't mean you personally received cash in hand. The fund realized the gain when it sold the security. That gain flows to you on the 1099.

Is any of this inside a 401k or similar? Because inside a 401k, 403b, or traditional IRA, gains and dividends aren't taxed until you take distributions. In a taxable account there's no such shelter — every realized gain and every dividend is a taxable event in the year it occurs, full stop.

Paul V.

Author

Nope, purely a taxable account. I wish someone had explained this to me before I opened it and started putting money in.

To be fair, it has an upside — long-term capital gains (assets held more than 1 year) are taxed at preferential rates compared to ordinary income. The holding period for each lot starts the day after you buy, and the trade date is what counts, not settlement.

Are the gains on your 1099-B marked as short-term or long-term? That changes where they go on Form 8949 and Schedule D and can change the rate significantly.

Paul V.

Author

Mix of both I think. The index fund has been rebalancing internally so some of the distributed gains might be short-term at the fund level.

Something people miss: even if you owe tax on the distributed gains this year, your basis in the fund goes up by the amount of the distribution (for capital gain distributions). So yes, it stings now, but you're not being taxed twice on the same dollars — once when the fund distributes and again when you sell.

The Form 8949 and Schedule D piece is worth understanding before you file. Short-term gains go in Part I of Form 8949, long-term in Part II. If your 1099-B shows basis reported to the IRS and you have no adjustments to make, those transactions can go directly on Schedule D line 1a or 8a without listing every trade on Form 8949 separately — that's Exception 1 in the Form 8949 instructions. I ran my 1099-B through Taxr this past filing season and it checked each transaction to see which ones qualified for that exception and which needed their own 8949 line, saved me a lot of manual work.

Paul V.

Author

Oh that exception is useful, I had no idea you could skip listing every single trade. My 1099-B has probably 30 lines on it.

Exactly, and if box A or D is checked (basis reported to IRS, no adjustments needed) those can aggregate. The ones that need a code in column (f) or an adjustment in column (g) have to be listed individually.

Does your fund distribute capital gains once a year at a set date? Because if you buy shares right before the distribution date you get hit with tax on gains that accrued before you even owned the fund. It's a known gotcha with mutual funds in taxable accounts.

Paul V.

Author

That might actually be part of what happened — I bought in October and the distribution came in December.

Classic timing issue. Some investors check the fund's distribution calendar before buying in a taxable account specifically to avoid this. Nothing you can do about it now for last year, but worth knowing going forward.

To be clear on cost basis tracking: each reinvested dividend or capital gain distribution creates a separate lot with its own acquisition date. When you eventually sell, your broker may default to FIFO (first in, first out) unless you specify a different method. The method you use can affect whether a given sale is short- or long-term.

What tax software are you using? The reason I ask is some default settings can double-count reinvested dividends if you manually entered anything. Worth cross-checking your 1099-DIV entries against what's auto-imported. I had a messy draft return last year and used Taxr to compare the numbers on my 1099-DIV and 1099-B against what had been entered on Schedule D and Form 8949 — it flagged two lots where the basis looked wrong before I filed.

Paul V.

Author

Using one of the major online ones, it auto-imported from the broker. I'll double check the reinvested dividend lots to make sure nothing's been counted twice.

Publication 550 on the IRS site (irs.gov/publications/p550) covers investment income and expenses in detail, including how distributions from mutual funds are taxed. Worth a read if you want the full picture from the source.

Is your fund an ETF or a mutual fund? ETFs tend to be more tax-efficient in taxable accounts because of how they handle creations and redemptions — they generally distribute fewer capital gains than mutual funds do. Might be worth considering for future purchases.

Paul V.

Author

It's a mix — I have one mutual fund and a couple ETFs. The mutual fund is the one generating the big capital gain distribution.

That tracks. Many investors hold mutual funds in tax-advantaged accounts and use ETFs for their taxable accounts for exactly this reason. No obligation to change, just something to weigh.

Do you know if any of the gains on the 1099-B are from wash sales? If you sold a fund at a loss and bought a substantially identical one within 30 days before or after, the loss is disallowed and gets a code W in column (f) of Form 8949 with the disallowed amount as a positive number in column (g). The disallowed loss adds to the basis of the new shares instead.

Paul V.

Author

I don't think I sold anything at a loss but I'll check box 1g on the 1099-B. Good to know about the code W rule.

To answer your original question directly: Congress designed the tax to attach at the point of realization, not at the point of withdrawal. It's a policy choice, not a paperwork error. The flip side is that unrealized gains — paper gains on shares you still hold and haven't sold — are not taxed at all yet. Only the sales and distributions that actually happened in the tax year show up on your forms.

One follow-up worth flagging: if your losses from any sales exceed your gains this year, you can use the net loss to offset other income up to the annual limit the IRS sets, with anything beyond that carrying forward. The carryover worksheet is in Publication 550 or the Schedule D instructions. Losses on personal-use property don't count though.

Worth adding that losses carried forward keep their character — short-term carry forward as short-term and long-term as long-term. It matters when you apply them in future years.