Traditional vs Roth 401k to stay in the 0% long-term capital gains bracket
Trying to figure out the right 401k contribution strategy for next year and the long-term capital gains bracket question is making my head spin. I have a decent amount of taxable brokerage investments I want to start harvesting over the next few years. The 0% long-term capital gains rate only applies when your taxable income stays under a certain threshold, and I keep going back and forth on whether traditional pre-tax contributions or Roth after-tax contributions get me there more efficiently. My situation: salaried job, filing single, contributing to a brokerage account separately. I already tried running rough numbers in a spreadsheet but I'm not accounting for the interaction between ordinary income and the capital gains stacking rules correctly. Does traditional 401k lower my AGI enough to push me into the 0% bracket, or is the Roth approach better here for some reason I'm missing?