For pistol length, 11.5 is the sweet spot.
Carbines at 14.5 + attached muzzle device makes it legal
Rifles are 20” for me.
I have one pistol, a couple carbines and a couple rifles.
The pistol, a piston 11.5” with a can, covers just about everything, though.