Coil spring rate calculator
Measure the wire and the outside diameter, and count the active coils (the ones free to move, not the closed ends).
The formula
k = G × d⁴ ÷ (8 × D³ × n), where d is the wire diameter, D the mean coil diameter (outside diameter minus one wire diameter), n the number of active coils and G the wire's shear modulus. With d and D in mm and G in N/mm² (GPa × 1,000), k is in N/mm.
The default G of 79.3 GPa is music wire: AJ Designer lists 11.5 × 10⁶ psi, which is 79.3 GPa. Other spring steels and stainless differ, so use your wire maker's figure. Rate rises with the fourth power of the wire diameter, so measure it carefully. Checked against AJ Designer's worked example (G 11.5 × 10⁶ psi, d 0.1 in, D 1 in, 10 coils gives 14.375 lbf/in).
Source: AJ Designer, suspension spring rate. Mountain-bike shock springs are usually chosen from rider weight and sag instead; this page is for a spring you can measure.
Tested: against AJ Designer’s worked example: G = 11.5 × 10⁶ psi, 0.1 in wire, 1 in coil and 10 active coils give 14.375 lbf/in (packages/mechanics/test/maker.test.ts).
Related: Spring–mass–damper · Check valve · Pendulum period