How to avoid capital gains switching from managed taxable account to ETF portfolio

Been with a managed account for about four years and the advisor just told me my all-in cost is dragging returns. I want to move to a simple ETF portfolio — total market, international, bonds — but the managed account is sitting on a lot of embedded gains across probably 40 individual positions. Some I've held over a year, some less. When I look at the account the unrealized gains are significant and I don't want to trigger a massive tax bill in one year just to get to a cheaper portfolio. I already know I can't just transfer the positions in kind because the managed account holds fractional shares and odd lots that don't map cleanly to what I want to hold. Is there a way to do this without capital gains, or at least spread it out? What would you actually do here?

31 comments

Realistically there's no way to avoid capital gains entirely when you sell appreciated positions in a taxable account — that's the tradeoff. What you can control is the timing and the pace. The core move is to spread the liquidation across two or more tax years so the gains don't all stack in one year and push you into a higher bracket. Sell your short-term positions last or not at all until they age past the one-year mark, since long-term rates are lower for most people. The holding period for securities traded on an established market runs from the day after your trade date, not settlement, so watch those dates carefully before you sell anything close to the threshold.

Claire C.

Author

The short-term ones are the ones stressing me out most. A few positions I bought about 11 months ago. I'll count from trade date and wait on those.

One thing that gets overlooked: check whether any positions are sitting at a loss. If you have unrealized losers mixed in with the winners, you can harvest the losses and use them to offset the gains you realize on the same return. Net them on Schedule D — short-term against short-term first, then long-term against long-term, then net those two results against each other. Any remaining loss you can't use this year carries forward.

Worth adding: if you sell something at a loss to offset a gain, don't buy back the same ETF or a substantially identical fund within 30 days before or after, or the wash sale rule disallows the loss. The disallowed amount gets added to the cost basis of whatever you bought back instead, so you don't lose it forever, but you lose the offset for this year.

Claire C.

Author

I do have a few positions down. Hadn't thought of pairing those sales with the big winners. That changes the math a lot.

In kind transfer is worth at least asking your custodian about for the positions that are whole shares. If they can transfer individual stock lots directly to your new brokerage without selling, the transfer itself is not a taxable event. You only owe tax when you eventually sell. That doesn't get you into ETFs immediately but it shrinks the pile you need to sell right away and buys you time to liquidate gradually at your pace.

Transferring in kind preserves your original cost basis and holding period too. The new custodian should receive the lot-level detail from the old one for covered securities, but confirm that before you initiate the transfer — if the basis doesn't transfer you'll have to reconstruct it yourself.

Claire C.

Author

Partial in-kind transfer is something I hadn't considered. Going to ask the custodian which positions can move as whole shares.

I uploaded my account's unrealized gain/loss report to taxr.ai and had Taxr sort every position by holding period and gain size, then flag which ones were still short-term. It also drafted a simple schedule showing what the gain total would look like if I spread the sales across this year and next. Didn't file anything or contact anyone — just gave me a clear picture of the order to sell in. For a 40-position account that kind of sorted view is genuinely useful before you start clicking sell.

Claire C.

Author

Next step I'm on: pulling the full unrealized gain/loss export from the account. That sorted view sounds exactly like what I need before I do anything.

Charitable giving is another lever if you're charitably inclined. Donating appreciated shares directly to a donor-advised fund or a charity lets you avoid recognizing the gain entirely — the charity doesn't pay it either. You get a deduction for the fair market value at the time of the gift. It doesn't help if you're not planning to give anyway, but if you were going to write checks to charity this year, funding them with appreciated stock from the managed account first is more efficient than selling the stock, paying tax, and donating cash.

This is real. The deduction rules have limits based on your adjusted gross income and the type of asset and recipient, so check Publication 526 on irs.gov for the specifics before you count on a large deduction.

If you have a spouse or partner and you're filing jointly, make sure you're both looking at the full picture before you sell. Gains from liquidating the managed account get added to all your other income for the year. If one of you has a year with lower income — a career break, a year with large deductible losses elsewhere — that might be the better year to accelerate the sales.

Had almost this exact transition last year. I showed Taxr my 1099-B from the managed account alongside my draft Form 8949 and it walked through each lot, checked that the holding periods matched what the broker had coded, and flagged two positions where the basis looked off. Ended up catching a covered vs. noncovered classification issue before I filed. Useful step before you finalize which lots to sell and how to report them.

Covered vs. noncovered matters a lot here. Covered securities have basis reported to the IRS on the 1099-B; noncovered ones don't. On Form 8949 you check box A or D for covered (basis reported) and box B or E for noncovered (basis not reported). If the basis the broker shows is wrong for a covered lot, you still enter their number in column (e) and correct it in column (g) with an adjustment — you don't just put the right number in column (e).

Claire C.

Author

Next step I'm on: comparing lot dates and basis from the managed account's records against what shows on the 1099-B once I get it. Sounds like the classifications need a manual check.

Don't forget that if your capital losses for the year exceed your capital gains, the loss you can deduct against ordinary income is capped. Any excess carries forward to future years, figured using the Capital Loss Carryover Worksheet in the Schedule D instructions. So harvesting every loser in the account this year could be less useful than spreading the harvesting across years if you've already used up the offset capacity with gains.

Right, the net loss limit applies to what's left after gains and losses are netted on Schedule D. The carryover keeps its character — short-term carryover stays short-term, long-term stays long-term — which matters in future years.

Specific identification of lots is your friend throughout this. If your custodian supports it, you can tell them exactly which lots to sell — highest basis first, or the ones that have just crossed the long-term threshold — rather than defaulting to FIFO. Get written confirmation of which lots were sold before settlement, because the IRS requires that identification to be made at the time of sale, not after.

Claire C.

Author

I didn't know I had to confirm lot selection before settlement. Going to call the custodian and find out how they handle specific ID instructions.

The ETFs you're moving into — are they in a taxable account or do you have room in a 401(k) or IRA? One approach is to redirect new contributions and reinvested dividends into the ETFs inside tax-advantaged accounts while you slowly liquidate the managed account. You don't fix the embedded gain problem but you stop making it larger and you start building the ETF allocation without triggering anything.

If the managed account has positions in individual stocks, some of those might actually be ETF-eligible for a direct exchange if your new custodian offers a model portfolio service. Worth asking. The positions move in kind and the manager on the other side assembles them into something index-like. You'd still hold individual stocks but the ongoing cost drops and the embedded gains stay deferred.

Realized gains in a taxable account also affect your modified AGI, which can trigger the net investment income tax on top of the capital gains rate for higher-income filers. The thresholds and rates for that are in the Form 8960 instructions — worth running the numbers before you decide how much to realize in a single year.

Something that helped me think about this: the question isn't whether you pay the gains, it's when. Every year you stay in the managed account you're paying advisory fees on the full balance including the embedded gains. At some point the fee drag on the gain amount exceeds what you'd owe in tax, and you'd have been better off selling sooner. Running that break-even math — fee rate times the gain amount, compared to the tax cost of liquidating — can tell you whether going slow actually saves money or just feels safer.

This is the right frame. The tax deferral has real value but it isn't infinite. If the advisory fee is a meaningful percentage of a large embedded gain, the math sometimes favors biting the bullet in one or two years rather than dragging it out.

Claire C.

Author

That break-even framing is useful. I've been treating deferral as automatically good without actually comparing it to the ongoing fee cost on the unrealized amount.

For the actual reporting: each sale from the managed account goes on Form 8949 in Part I (short-term, held one year or less) or Part II (long-term, held more than one year). Totals flow to Schedule D. If your broker reports covered securities with no adjustments needed, those can go directly on Schedule D line 1a or 8a under Exception 1 without listing every lot on Form 8949 — that simplifies things considerably if most of your positions are clean.

One scenario that changes the answer entirely: if you have highly appreciated positions you plan to hold until death, stepped-up basis at death means your heirs inherit at fair market value on the date of death, so the embedded gain disappears. That argues for keeping the most appreciated, longest-held positions out of the liquidation and just moving everything else to ETFs now. Only worth doing if you genuinely intend to hold those positions for life, but it's a real option for a few concentrated lots.

Inherited property gets long-term treatment regardless of how long the heir holds it, per the holding period rules. And the basis is generally fair market value at the date of death. Worth factoring in if any single position has an enormous embedded gain.

Claire C.

Author

Two positions from early in the account actually have huge gains. Keeping those and liquidating around them might be the move. I'll run the numbers on those specifically.

To pull the reporting piece together: when you get your 1099-B at year end, the boxes to check on Form 8949 depend on whether each lot is covered or noncovered and whether you need any adjustments. The instructions for Form 8949 at irs.gov walk through the column (f) codes and column (g) adjustments. If you use specific identification and the basis the broker reports differs from your own records, that's where you make the correction — in column (g) with the right code, not by just changing column (e) for covered lots.