For male threads, measure the outside diameter. For female threads, measure the inside. Thread pitches can differ between metric threads and standard thread sizes.