The glory of American screws and bolts is their low cost ubiquity, especially in our coarse thread (UNC = United National Coarse) sizes. Between 1/4 inch and 5/8″, they are sized in 1/16″ steps, and after that in 1/8″ steps. Below 3/16″, they are sized by wire gauges, and generally they have unique pitch sizes. All US screws and bolts are measured by their diameter and threads per inch. Thus, the 3/8-16 (UNC) has an outer diameter (major diameter) of 3/8″ with 16 threads per inch (tpi). 16 tpi is an ideal thread number for overall hold strength. No other bolt has 16 threads per inch so it is impossible to use the wrong bolt in a hole tapped for 3/8-16. The same is true for basically every course thread with a very few exceptions, mainly found between 3/16″ and 1/4″ where the wire gauges transition to fractional sizes. Because of this, if you stick to UTC you are unlikely to screw up, as it were. You are also less-likely to cross-thread.
US fine threads come in a variety of standards, most notably UNF = United National Fine. No version of fine thread is as strong as coarse because while there are more threads per inch, each root is considerably weaker. The advantage of fine treads is for use with very thin material, or where vibration is a serious concern. The problem is that screwups are far more likely and this diminishes the strength even further. Consider the 7/16″ – 24 (UNF). This bolt will fit into a nut or flange tapped for 1/2″- 24. The fit will be a little loose, but you might not notice. You will be able to wrench it down so everything looks solid, but only the ends of the threads are holding. This is a accident waiting to happen. To prevent such mistakes you can try to never allow a 7/6″-24 bolt into your shop, but this is uncomfortably difficult. If you ever let a 7/6″-24 bolt in, some day someone will grab it and use it, in all likelihood with a 1/2″ -24 nut or flange, since these are super-common. Under stress, the connection will fail in the worst possible moment.
Other UNF bolts and nuts present the same screwup risk. For example, between the 3/8″-24 and 5/16″-24 (UNF), or the #10-32 (UNF) and also with the 3/16″- 32, and the latter with the #8-32 (UNC). There is also a French metric with 0.9mm — this turns out to be identical to -32 pitch. The problem appears with any bolt pair where with identical pitch and the major diameter of the smaller bolt has a larger outer diameter (major diameter) than the inner diameter (minor diameter) of the larger bolt. If these are matched, the bolts will seem to hold when tightened, but they will fail in use. You well sometimes have to use these sizes because they match with some purchased flange. If you have to use them, be careful to use the largest bolt diameter that will fit into the threaded hole.
Where I have the option, my preference is to stick to UNC as much as possible, even where vibration is an issue. In vibration situations, I prefer to add a lock nut or sometimes, an anti-vibration glue, locktite, available in different release temperatures. Locktite is also helpful to prevent gas leaks. In our hydrogen purifiers, I use lock washers on the ground connection from the power cord, for example.
I try to avoid metric, by the way. They less readily available in the US, and more expensive. The other problem with metric is that there are two varieties (Standard and French — God love the French engineering) and there are so many sizes and pitches that screwups are common. Metric bolts come in every mm diameter, and often fractional mm too. There is a 2mm, a 2.3mm, a 2.5mm, and a 2.6mm, often with overlapping pitches. The pitch of metric screws and bolts is measured by their spacing, by the way, so a 1mm metric pitch means there is 1mm between threads, the the equivalent of a 24.5 pitch in the US, and a 0.9mm pitch = US-32. Thread confusion possibilities are endless. A M6x1 (6mm OD x 1mm pitch) is easily confused with a M5x1 or a M7x1, and the latter with the M7.5×1. A M8x1.25 is easily confused with a M9x1.25, and a M14x2 with an M16x2. And then there is confusion with US bolts: a 2.5mm metric pitch is nearly identical to a US 10tpi pitch. I can not rid myself of US threads, so I avoid metric where I can. As above, problems arise if you use a smaller diameter bolt in a larger diameter nut.
For those who have to use metric, I suggest you always use the largest bolt that will fit (assuming you can find it). I try to avoid bringing odd-size bolts into their shop, that is, stick to M6, M8, M10. It’s not always possible, but it’s a suggestion. I get equipment with odd-size metric bolts too. My preference is to stick to UNC and to avoid odd numbers.
Robert Buxbaum, January 23, 2024. Note: I’ve only really discussed bolt sizes between about #4 and 1″, and I didn’t consider UNRC or UNJF or other, odd options. You can figure these issues out yourself from the above, I think.