Your underwear size is usually the same as your pants size, but can depend on the style of underwear and your measurements.
Measuring yourself for underwear will mean measuring your hips. To do this you need to measure around the fullest part of your booty. If the underwear is waist-high, you might also like to measure your waist as well.