Start from the bearing points
The width of a shelf blank describes the physical part. Measure the distance between actual bearing points for a sag check, and use the finished depth and thickness. Accurately describe whether the shelf rests on pins or is fixed into the side panels.
Distinguish the load patterns
Evenly spread towels and a heavy bin centered on the same shelf can give different deflections. Material stiffness varies, and sustained loads can increase deflection. Use the expected worst storage pattern for a preliminary check, then confirm the panel and hardware are suitable for their intended duty.
Revise the support layout
If the span is too generous, split it with a properly supported upright, shorten the bay, or design a stiffer shelf with appropriate support. Recompute the width chain after adding a divider, because its thickness uses space even when its only purpose is to support shelves.