Is it worth paying capital gains tax to rebalance an overweight stock?

My portfolio is a mess right now. One tech stock grew so much that it's now about 55% of everything I own. I know I should rebalance but every time I look at selling some shares I freeze because most of them have been held over a year and the gain is huge — we're talking a lot of long-term capital gains tax if I trim it down to something reasonable. I've tried modeling this in a spreadsheet but I can never figure out if the tax hit now is actually worse than the concentration risk of just holding. I'm not in the highest bracket but I'm not in the lowest either. Is it ever actually worth paying the capital gains tax to rebalance an overweight stock, or are there ways to do this without triggering everything at once? Already maxed my 401k so I can't just move new contributions.

31 comments

I was in almost the same spot last year — one position had ballooned to nearly half my taxable account. What helped me think through it was separating the tax question from the risk question. The risk question is: how much would you lose, after tax, if that stock dropped 60%? Do that math first. For most people the answer reframes whether the tax bill feels big or small. On the actual tax side: I uploaded my 1099-B and my cost basis spreadsheet to taxr.ai and it broke out exactly which lots were short-term vs long-term, what the gain on each lot was, and what partial sales in each tax year would look like. Saved me from accidentally selling short-term lots first. Worth trying before you do anything.

Sean F.

Author

Thanks — I'll look at that. I hadn't even sorted my lots by holding period, I was just looking at the total gain. That's probably why my spreadsheet was giving me such a scary number.

The holding period thing is the first real lever you have. Shares held more than one year get long-term treatment; one year or less are short-term. For securities on an established market the holding period starts the day after the trade date you bought and ends on the trade date you sold — not the settlement date. If some lots are sitting at 11 or 12 months, waiting a few weeks before selling changes their treatment entirely.

Sean F.

Author

Two of my lots are right at that edge actually. Good to know it's the trade date and not the settlement date — I had assumed settlement.

Worth noting: short-term gains just stack on top of your ordinary income, so if you're already in a higher bracket from your salary the difference between selling a short-term lot now vs waiting it out can be enormous. The long-term rates are in the Schedule D instructions if you want to see the brackets.

Spreading sales across two tax years is something a lot of people overlook. If you sell some shares in December and some in January you've split the gain across two returns. Doesn't reduce the total tax but it can keep you from pushing into a higher bracket in a single year, which sometimes matters for things like NIIT or whether your other deductions phase out.

Sean F.

Author

This is actually really helpful — hadn't thought about splitting it across years. I'll check my other income for this year vs next before I do anything.

Does your employer offer a mega backdoor Roth or any kind of deferred comp? Those can absorb future income and effectively lower the bracket you're selling into. Also if you have any unrealized losses elsewhere in the portfolio, harvesting those in the same year offsets some of the gain on Schedule D before it flows to your return.

Loss harvesting in the same year is real. Capital losses offset capital gains dollar for dollar on Schedule D. Just watch the wash sale rules if you plan to rebuy the losing position — selling at a loss and buying substantially identical shares within 30 days before or after the sale disallows the loss.

Exactly, and the disallowed loss isn't gone forever — it gets added to the cost basis of the new shares. But it won't help you in the year you're trying to offset the gain from rebalancing, which is the whole point.

I dealt with this last year after my RSUs vested and pushed one position way over what I wanted. I ran the numbers a few different ways and kept second-guessing myself, so I pasted my brokerage summary and my lot detail into Taxr and asked it to draft a comparison of selling my highest-basis lots first vs my lowest-basis lots first across two tax years. It laid out the Form 8949 entries and the Schedule D totals for each scenario so I could see the actual difference. Ended up being less scary than I thought when I saw the specific lots.

Sean F.

Author

The RSU angle is different from mine but the lot-by-lot comparison is exactly what I need. Good to hear the numbers were less bad once you got specific.

Specific identification of lots is key here. If your broker lets you specify which lots to sell — most of them do now — you can target your highest-basis lots first and minimize the gain per share sold. You have to tell the broker before the sale settles which lots you're selling, not after. Keep the confirmation in writing.

This. And get the written confirmation from the broker. If you don't have an adequate confirmation that you identified the specific lots, the IRS can treat it as FIFO (first in, first out), which often means your oldest and lowest-basis shares — the worst outcome for taxes.

Sean F.

Author

Thanks — I'll double check that my broker supports specific ID. I think they do but I've never actually used it.

Qualified opportunity zone funds come up in this conversation a lot but they're complicated and the rules around deferral timelines and basis step-ups are specific to those structures. If the gain is large enough that you're seriously considering it, that's a CPA conversation, not a forum one.

One approach I used: I figured out how much gain I could recognize this year without crossing into the next long-term bracket, then sold exactly that many shares. It's slow but over three or four years you can meaningfully reduce concentration without a single painful tax year. The Schedule D instructions have the threshold amounts for each rate tier.

This is what I did too. It takes patience but it works and you're never paying more than you have to in any one year.

I'll add: charitable giving is worth at least knowing about if you donate anyway. Giving appreciated shares directly to a charity or a donor-advised fund instead of cash means you generally don't recognize the gain at all, and you get the deduction on the fair market value. That's not a tax strategy in a vacuum but if charitable giving is already in your budget it changes the math.

Sean F.

Author

I do give to a few charities annually. This is worth looking into more seriously — hadn't connected the two.

Something that tripped me up: I thought I could use losses from my Roth IRA to offset the gains in my taxable account. You can't. Losses inside an IRA stay inside the IRA — only losses in your taxable brokerage account flow to Form 8949 and Schedule D.

Correct. And buying substantially identical securities in an IRA or Roth IRA within the wash sale window can also disallow a loss you took in your taxable account — that one surprises people. The wash sale rules reach across account types in that direction.

Yeah I learned that one the hard way. The 1099-B showed the loss and the broker didn't flag anything, since box 1g only covers wash sales in the same account, but I had auto-reinvest on in my Roth and it had bought the same fund, so I had to report the wash sale myself.

To answer the original question directly: whether it's worth it depends on your time horizon for the stock, the size of the position relative to your net worth, and your current-year income. The tax is real but so is the risk of a 50% drawdown in a single name. Neither 'just hold it' nor 'sell everything now' is obviously right without those numbers.

If the position is large enough that a single bad earnings report could derail your financial plan, that's not really a tax question anymore — it's a risk management question. I'd talk to a fee-only CFP or CPA before making a big move either way. They can model the after-tax cost of rebalancing against the expected volatility of holding.

Sean F.

Author

Fair point. I think I've been treating it as purely a tax problem when it's really a risk problem that has a tax cost attached to it.

The wash sale rule won't be an issue if you're trimming a winner — wash sales only matter for losses. But if you're harvesting losses elsewhere to offset the gain, watch the 30-day window on both sides before and after the sale for substantially identical securities.

If you end up with a net capital loss after everything — say the market turns between now and when you sell — the most you can deduct against ordinary income in a single year is capped. The limit and the carryover rules are in Topic 409 on the IRS site at https://www.irs.gov/taxtopics/tc409. Worth knowing going in.

The carryover part is important — losses above the annual limit don't disappear, they carry forward to future years. So a down year isn't necessarily a total loss on the tax side.

Practically speaking: pull your lot detail from your broker, sort by acquisition date and basis per share, identify which lots are already long-term, estimate the gain on each, and then map out what two or three years of partial sales would look like on Schedule D. That's the actual work. Everything else is strategy layered on top of those numbers.

Sean F.

Author

This is the clearest to-do list I've gotten from this thread. Going to start there this weekend.