Length of needle needed for cardigan band?

I’m ready to pick up and knit the button band for an adult wool cardigan. Need a circular needle that will hold all the stitches left side, back, and right side. 24" doesn’t seem long enough. How long would you recommend? Going to order online & want to make sure it’s long enough but not too long. Thanks for your help!

I’d use at least a 40". For my own sweater I used a 60", but I tend to like them longer so the stitches don’t slide off the ends.