Measure the clear opening
Set the backpack upright on a table and unzip it as far as it normally opens. Hold the sides in their natural open position. Lay a rigid ruler across the mouth from left to right, with its zero mark at the inside edge of one zipper tape. Read the mark at the other inside edge. Repeat near the back, through the middle and near the front wherever the box’s edges would pass. Use the shortest clear span along that path.
Turn the ruler so it runs from the back panel toward the front lip. Measure that front-to-back gap in the center and near each end of the usable width. Keep the ruler in the plane where the lid will cross the zipper. A flexible tape can sag into the bag and give you a larger reading.
Make room for rounded corners
A wide midpoint and a deep midpoint can describe a rectangle that clips the corners. Cut a piece of stiff cardboard to the box’s outside footprint. Keep it level and guide it through the mouth, first as measured and then turned a quarter turn. If a corner brushes the zipper or the bag has a curved lip, use the cardboard test to verify that the measured width and depth are available together. Leave the box level throughout if the contents could spill.
Measure the box and what sits below the zipper
Close the lid and latch it. Put the box on the table and hold the ruler horizontally beside the outermost parts. Measure across any projecting clips or hinges. For height, stand the ruler beside the box and read to the top of the lid or handle in its packed position. If a handle will stay raised, include it.
Inside the bag, measure width from side to side at the intended packing level and depth from the back lining to the front lining. Measure upward from the floor to the lowest point beneath the closed zipper. Load the laptop first if its sleeve pushes into the compartment. If the bottle goes inside, make room for its widest point beside the box and its cap under the closed zipper.