How do I figure capacity of a cupboard with shelves?

Measure the width and height of the shelves and compare to the sizes of whatever you want to put in them.