Will I owe capital gains tax when I sell VTSAX in retirement?

Trying to plan ahead and I keep getting different answers depending on what I read. I hold VTSAX in three different accounts: a traditional IRA, a Roth IRA, and a regular taxable brokerage. I'm about 8 years from retirement. When I actually start selling shares to live on, will I owe capital gains tax? I know the answer is probably "it depends" but I'd love to know what it depends on, because right now I'm just guessing. I already understand that dividends get reinvested and that VTSAX distributes capital gains annually, but I'm asking specifically about when I sell shares in retirement. Does the account type completely change the answer or is there a base rate that applies regardless?

38 comments

Account type is basically everything here. The three buckets you described are taxed completely differently at sale. Taxable brokerage: you owe capital gains tax on the difference between your sale price and your cost basis. If you held more than 1 year, that's long-term. The rate depends on your taxable income that year — check the Schedule D instructions for the brackets, they update annually. Traditional IRA: no capital gains treatment at all. Withdrawals come out as ordinary income, reported on Form 1040. The fund could be pure long-term gains inside but the IRS doesn't care — it's all ordinary income when it leaves the account. Roth IRA: qualified distributions are tax-free, including any gains. The conditions for "qualified" matter, so check Publication 590-B for the rules on your specific situation. So yes, same fund, three totally different tax results depending on which account you sell from.

Sam W.

Author

This is exactly the breakdown I needed. So in my taxable account I'd actually get the preferential long-term rate, but in my traditional IRA I lose that and it's just ordinary income?

Correct. Lots of people are surprised by that. The traditional IRA conversion of gains to ordinary income is one reason some planners suggest holding your more tax-efficient funds in taxable and putting bonds or high-turnover funds in the IRA — but that's a planning conversation, not a tax rule.

Worth adding: in your taxable account, your cost basis for VTSAX matters a lot. If you've been reinvesting dividends for years, each reinvestment is a separate lot with its own purchase date and basis. When you sell, you need to know which shares you're selling and when you bought them. Vanguard should track this for you and it will show up on your 1099-B. The holding period for each lot — beginning the day after the trade date you bought and ending on the trade date you sell — determines whether the gain is short-term or long-term. Most people selling in retirement will be selling lots held well over a year, so long-term treatment usually applies, but verify lot by lot.

Went through this last year when I retired at 64. My taxable VTSAX sale produced a 1099-B from Vanguard with dozens of lots listed. I reported each one on Form 8949, then it flowed to Schedule D. The long-term gains were taxed at a rate that ended up being lower than my regular income rate because of how my total income worked out that year. What nobody told me was that those capital gains count toward your total income for things like Medicare surcharges, so the gross amount matters even if the tax rate is favorable.

Sam W.

Author

Did you use specific identification for the lots or just let it default to something?

Vanguard defaulted to average cost but I switched to specific ID before I sold so I could pick the highest-basis lots first. You have to tell them before the sale, not after. Worth looking into if you have lots with very different basis amounts.

I uploaded my brokerage year-end statement to taxr.ai and asked it to map out which lines on Form 8949 each lot would land on and whether anything triggered a wash sale concern. It went through every lot, flagged two dividend reinvestment lots that were under a year old as short-term, and drafted a column-by-column breakdown for Part I vs Part II. Really useful for seeing the whole picture before I actually sold anything. On your actual question: in a taxable account the rate turns on your total taxable income for the year, not just the gains. If your income is low enough in early retirement before Social Security or RMDs kick in, your effective rate on long-term gains could be zero. The Schedule D instructions have the threshold table. That window is worth planning around.

Sam W.

Author

Wait, there's literally a zero percent bracket for long-term gains? I had no idea that existed.

Yes. It's not a loophole, it's just the bottom bracket for long-term capital gains rates. The threshold changes each year so I won't quote the number, but the Schedule D instructions list it. Some people intentionally harvest gains in early retirement specifically to use that bracket.

The Roth piece is worth its own comment. Qualified distributions from a Roth IRA are completely tax-free — gains, basis, all of it. The main conditions are that the account has to be at least 5 years old and you generally need to be 59½ or older. Publication 590-B has the full qualified distribution rules. So if your Roth IRA has been open for years already, selling VTSAX inside it in retirement and taking distributions will likely produce zero federal tax on the gain. That's very different from the taxable account even with a favorable rate.

Does the 5-year clock restart if you roll money into the Roth from somewhere else?

The 5-year rule for qualified distributions runs from the first year you made any contribution to any Roth IRA, not per account. But conversion money has its own separate 5-year clock for the 10% early withdrawal penalty question. It gets complicated — Publication 590-B breaks it down by type of distribution.

Traditional IRA point again because I see people get this wrong: when you sell VTSAX inside a traditional IRA, you are not triggering a capital gains event. The sale happens inside the account with no tax. The taxable event is the withdrawal — the distribution — not the sale. And when that distribution comes out, it's ordinary income at whatever your marginal rate is that year. No Form 8949, no Schedule D for that money. It just goes on Form 1040 as income.

And don't forget required minimum distributions from the traditional IRA once you hit the applicable age. You don't get to choose whether to withdraw — the IRS sets a minimum based on your account balance and life expectancy tables. Those forced distributions are ordinary income whether you need the cash or not. Can push you into a higher bracket in some years if the account is large.

Sam W.

Author

Is there a way to get ahead of that by doing Roth conversions before the RMD age?

Yes, that's the basic idea behind a Roth conversion ladder in the years between retirement and RMD age. You pay ordinary income tax on the converted amount in the year of conversion, but reduce future RMDs. Whether the math works depends on your bracket now vs. expected bracket later. A CPA or enrolled agent who does retirement tax planning can model it out for your specific numbers.

Had a similar three-account setup and before I filed last spring I ran my 1099-B through Taxr — it compared what Vanguard reported in box 1e against my own records and caught one lot where the cost basis looked off because of a corporate action adjustment years ago. Since my account was covered and the basis was reported to the IRS, I entered the basis shown on the 1099-B in column (e) of Form 8949, even though it was wrong, with code B in column (f), then put the correction in column (g) as a negative number because the correct basis was higher. Without that check I'd have overpaid. For the IRA side you asked about: you won't see a 1099-B at all for trades inside the IRA. You'll see a 1099-R when you take distributions. Different form, different line on your 1040.

Sam W.

Author

The 1099-R vs 1099-B distinction is something I hadn't thought through. So my traditional IRA withdrawals won't even touch Form 8949?

Right. 1099-R income from a traditional IRA goes straight to Form 1040 as ordinary income. Form 8949 is only for sales of capital assets in taxable accounts. Your IRA custodian won't send a 1099-B for trades that happen inside the account.

State taxes also matter and vary a lot. Some states exempt retirement income or IRA distributions entirely, others tax them the same as wages. A few states don't have income tax at all. The federal answer is one thing; your state answer could be very different. Worth checking your state's revenue department rules alongside the federal picture.

Sam W.

Author

Good point, I hadn't even started thinking about state. I'm in a state with income tax so I should probably look into how they treat IRA distributions vs capital gains separately.

One scenario people miss: if you're selling VTSAX in your taxable account and you recently bought more shares — say through dividend reinvestment — and you sell at a loss within 30 days of that reinvestment, you could have a wash sale issue. The wash sale rules apply when you sell at a loss and buy substantially identical securities within 30 days before or after. The disallowed loss gets added to the basis of the new shares instead of being deductible now. In retirement when you're systematically drawing down it usually doesn't come up, but if you're selling losers while still reinvesting dividends in the same fund it can.

This is a real trap with dividend reinvestment. Turning off automatic reinvestment in the taxable account before you start harvesting losses avoids most of it.

Exactly. And it's not just the same account — if you bought substantially identical shares in an IRA within that 30-day window, the wash sale rules still apply, but the disallowed loss doesn't get added to the IRA basis. It's just gone. That's the worst outcome.

The holding period rule for capital gains is worth spelling out: more than 1 year held means long-term, 1 year or less means short-term. The count starts the day after you buy and ends on the day you sell. For exchange-traded securities the relevant dates are the trade dates, not settlement dates. So if you bought on March 5 of one year, March 6 of the following year is your first day of long-term treatment.

Sam W.

Author

Does that apply to VTSAX specifically even though it's a mutual fund and not an ETF?

Mutual fund shares held in a taxable account are capital assets and the same holding period rules apply. The settlement mechanics differ from ETFs but the tax holding period is still measured from trade date to trade date.

If your gains in the taxable account are large enough, you might owe the net investment income tax on top of regular capital gains rates. It applies to investment income above certain thresholds based on your modified AGI and filing status. The thresholds and rates are in the Form 8960 instructions — that's the form you'd file if it applies. It's a separate calculation from the regular capital gains rate.

Before my first year of retirement distributions I uploaded my year-end statements and IRA paperwork to Taxr and had it walk through the difference between how my Roth distributions and my traditional IRA distributions would each appear on the 1040 — which lines, which forms, what box on the 1099-R triggered which treatment. It basically built a roadmap for me so I wasn't surprised at filing time. The short answer to your question: for taxable VTSAX, yes you likely owe capital gains tax on the appreciation, long-term rate if held over a year. For traditional IRA, ordinary income at withdrawal, no capital gains treatment. For Roth, potentially zero if distributions are qualified. Three accounts, three answers.

Sam W.

Author

This is a great summary. The Roth being potentially zero is the part that makes me want to shift more contributions there in the years I have left.

Something that affects the taxable account calculation: if you inherited any of these shares or received them as a gift, the basis rules are different. Inherited shares generally get a stepped-up basis to fair market value at the date of death. Gifted shares carry the donor's basis. If all your VTSAX was purchased by you directly, this doesn't apply, but it's worth knowing if any shares came from elsewhere.

Sam W.

Author

All purchased by me, so my basis is just what I paid including reinvested dividends. But good to know for other situations.

The practical filing flow for a taxable VTSAX sale in retirement: Vanguard sends a 1099-B in February. Each lot sold appears with proceeds in box 1d, cost basis in box 1e, and the holding period indicated. You report each lot on Form 8949, Part I for short-term or Part II for long-term. Under Exception 1 in the Form 8949 instructions, if basis was reported to the IRS and there are no adjustments needed, those transactions can go directly on Schedule D line 1a or 8a instead of listing every lot on 8949. Schedule D then flows to Form 1040. That's the mechanical path.

Worth double-checking: if you're doing systematic withdrawals from the taxable account in retirement, make sure your cost basis method is set at Vanguard before you start. Once you've sold using one method, switching to specific identification mid-stream is complicated. Average cost is simple but specific identification usually gives you more control, especially if you want to manage your taxable income year by year by choosing which lots to sell.

Net of all this: the account that gives you the most flexibility in retirement is probably the taxable one, because you can control the timing and amount of gains, potentially stay in a lower bracket or the zero-rate tier, and you're not forced to take anything. The traditional IRA forces ordinary income through RMDs. The Roth is the most tax-efficient at distribution but you've already paid tax to get money in. All three together give you a lot of levers to pull.

Sam W.

Author

So having all three account types is actually an asset for tax planning in retirement, not just a complication. That reframes how I think about this.

Exactly the idea. Tax diversification. You want options for which bucket to pull from each year based on your income situation that year. Early retirement when income is low, draw from taxable or do Roth conversions. Once RMDs start, traditional IRA forces your hand more. Having all three keeps options open.