Matching container sets look great until half of them do not fit the shelf. Enter the shelf space and the container size to see how many fit, and how much of the shelf they use.

Pantry Container Fit Calculator

How many food containers fit on a pantry or cabinet shelf.

Common pantry container sizes

ContainerFootprintHeightGood for
Small square4 x 4 in6 to 7 inSpices, nuts, seeds
Medium square4 x 4 in9 to 10 inRice, pasta, lentils
Tall square4 x 4 in12 to 13 inSpaghetti, cereal
Large rectangle6 x 4 in10 to 12 inFlour, sugar

Small pantry tips

  • Square containers waste less space than round ones.
  • Keep tall containers at the back and short ones in front.
  • A shelf riser doubles the space for cans and jars.
  • No pantry? See cheap pantry alternatives.

Frequently asked questions

How many 4 inch containers fit on a 24 inch shelf?

Five across on a 24 in shelf with a small gap, and two rows deep on a 12 in deep shelf: ten in total.

Are square or round containers better?

Square containers fit more on a shelf because they leave no gaps between them.

How much space should I leave above containers?

About 1 to 2 in so you can tip them out and lift the lids.

Free to use and share

Bloggers, landlords, movers and housing offices are welcome to link to or embed this tool. It is free, needs no sign-up, and works on phones.

More free tools: room planner · paint calculator · flooring calculator · rug size calculator · storage box fit calculator · room makeover budget · all free tools