Compression spring rate
k = G d⁴ / (8 D³ Na)
G is the shear modulus of the wire, and d is the wire diameter. D is the mean diameter (the outside diameter minus the wire diameter), and Na is the number of active coils. The stress includes the Wahl factor, which adds the higher stress on the inside of the coil.