How to Measure a Baking Pan: Start Inside the Rim
For matching a baking recipe, measure the pan’s inside opening and its depth rather than including handles or the outer rim. A product listing may also show overall dimensions for storage or oven fit. Those measurements answer different questions.

Measure the usable opening
King Arthur’s cake guidance asks bakers to check the top inside diameter and depth; its loaf-pan guidance likewise measures the inside top. For a rectangular pan, record both inside length and width. For a round pan, measure across the center.
Write down the depth too
Pans with similar openings may have different depths or tapered walls. Do not assume equal usable capacity from the length alone. A shallower pan can leave less room for rising batter even if the familiar size name looks correct.
Separate fitting the oven from fitting the batter
Overall dimensions are useful when checking whether a tray fits a rack or cupboard. Internal measurements are more useful for comparing the baking cavity with the recipe. Read the manufacturer’s description to see which dimension it reports.
Avoid an automatic size swap
Changing the pan changes batter depth and can change baking behavior. Use the recipe’s recommended alternative or tested conversion guidance. Do not fill a smaller pan to its rim to accommodate all the batter; choose an appropriate recipe and pan combination.
Sources
King Arthur Baking — Cake Guide; King Arthur Baking — Loaf Pan Measurement.