How to Measure a Pouch: Width, Height, Gusset
Updated
The short answer
To measure a pouch, lay it flat and take the width across the top, then the height from the bottom seal to the top. If it has a gusset, give the depth of that fold as an extra number; where it sits in the size depends on the pouch type.

Why are pouch sizes written in different orders?
A flat pouch, also called a three-side seal pouch, has no gusset, so its size is two numbers: 4 x 6 in is 4 inches wide and 6 inches tall.
A stand-up pouch adds a third number for its bottom gusset, the fold at the base that opens into the standing foot when the pouch is filled. In 5 x 8 x 3 in, the 3 is the depth of that gusset.
A side-gusset bag folds in at each side instead of at the base. Its size puts the gusset in the middle, W x G x H, and the gusset figure is the depth of each side fold. Read the order before you compare two sizes, because the same three numbers describe a different bag in each order.
Why doesn't a 5 x 8 in pouch hold a 5 x 8 in block?
The usable fill area is always smaller than the flat size. The side seals and the top seal each take a band at the edge, and a zipper takes more space below the top seal.
A filled pouch also bulges, so the product settles into a rounded shape and the faces draw in as the pouch fills. A 5 x 8 in pouch holds that rounded shape with a margin lost to seals, not a 5 by 8 in block. To avoid the mistake, measure your product and compare it with the area inside the seals and below the zipper, not with the flat size.
Check your artwork file
Upload a print-ready PDF and the artwork check lists what to fix in the file.