How are metric pipe sizes measured?

Metric pipe sizes are measured by their outside diameter (OD) in millimeters. The OD is the distance across the outside of the pipe, from one side to the other. The inside diameter (ID) is the distance across the inside of the pipe, from one side to the other.