THE BENCH NOTES / QUICK READ
Diameter is only half the story.
Learn to read a metric thread description before you look for a matching nut or replacement screw.
Read the whole label
In the example M6 × 1.0 × 20, M6 describes the nominal metric thread diameter, 1.0 is the pitch in millimetres, and 20 is the length in millimetres. The length reference depends on the head.
Pitch is a distance
Metric thread pitch is the distance along the axis from one thread crest to the next. A smaller pitch means the crests are closer together. Inch threads often use threads per inch, or TPI, instead.
Matching means more than looking alike
The thread system, nominal diameter and pitch all need to agree. Use a thread gauge or a known specification. Do not force an uncertain fit.
The quick calculation
This is a unit conversion, not a way to identify a thread standard. Numerically similar metric and inch fasteners are not interchangeable.
Further reading: Bolt Depot · Fastener type chart and Identifying fasteners.