Pick a fastener, build the stack it clamps, enter the loads. You get safety factors for the bolt and its threads, and the lowest torque that keeps the joint from gapping.
Set by:
Worst case with scatter:
Target at least:
For friction alone to carry the shear:
Safety factor = strength ÷ load. Above 1.0 it holds, below 1.0 it fails.
Movement is exaggerated so you can see it. These numbers assume the parts slip and the bolt carries all the shear, which is the safe assumption.
F = T / (K × d)
Bolt's share of tension load: C = kb / (kb + km)
Bolt tension: Fb = F + C × P, or just P once the joint opens
Clamp force: Fc = F − (1 − C) × P
Minimum torque, no gap: K × d × (1 − C) × P
Shear stress: V / A, shear strength taken as 0.6 × Sut
Bending moment: V × gap / 2 (both ends square) or V × gap (cantilever)
Combined: 1 / √(Rt² + Rs²) with Rt = (tension + bending) / Sut
Thread pull-out: 0.6 × Sut × shear area of the threads, weaker of bolt and hole threads
0.5 × π × pitch dia × Le for the bolt threads and 0.68 × π × d × Le for the hole threads. With a nut, a standard nut of matching grade is assumed.