Engineering · Mechanical Engineering · Machine Elements
Spring Constant Calculator
Calculates the spring constant (stiffness) of a coil spring using Hooke's Law or the physical coil geometry formula.
Calculator
Formula
In Hooke's Law: F is the applied force (N), x is the deflection or displacement (m), and k is the spring constant (N/m). In the coil geometry formula: G is the shear modulus of the wire material (Pa), d is the wire diameter (m), D is the mean coil diameter (m), and N is the number of active coils.
Source: Shigley's Mechanical Engineering Design, 10th Edition — Chapter 10: Mechanical Springs; ASTM A228 Wire Standards.
How it works
A spring's stiffness, also called the spring rate or spring constant, describes how much force is required to compress or extend it by a unit length. Defined by Hooke's Law as F = kx, the spring constant k (measured in N/m or N/mm) is the slope of the linear portion of the force-deflection curve. A stiffer spring has a higher k value and requires more force to achieve the same deflection. Spring constants are critical in vibration isolation, suspension tuning, precision instruments, and any mechanical system requiring controlled elastic behavior.
Two methods are provided. The Hooke's Law method is experimental: you measure the force applied to the spring and the resulting deflection, then compute k = F/x. This is ideal when you have a physical spring to test. The Coil Geometry method uses the material and dimensional properties of the spring: k = Gd⁴ / (8D³N), where G is the shear modulus of the wire material, d is the wire diameter, D is the mean coil diameter (center-to-center of wire across the coil), and N is the number of active coils (those free to deflect under load). This formula is derived from torsion theory applied to the helical wire geometry and is standard in mechanical engineering design references such as Shigley's.
The calculator also outputs the Spring Index (C = D/d), which is a key dimensionless ratio governing stress distribution in the coil wire. A spring index between 4 and 12 is generally preferred in practice — values below 4 are difficult to manufacture and exhibit high stress concentrations, while values above 12 may buckle or tangle. The Wahl Correction Factor (K_W) accounts for curvature and direct shear stress in the wire, and is used when computing the maximum shear stress in the spring wire under load.
Worked example
Example 1 — Hooke's Law Method:
A compression spring is loaded with a force of 150 N and deflects by 25 mm (0.025 m). The spring constant is:
k = F / x = 150 N / 0.025 m = 6,000 N/m (6.0 N/mm)
This spring requires 6 N of force for every millimeter of compression — a moderate stiffness typical of automotive valve springs and industrial machinery.
Example 2 — Coil Geometry Method:
A music wire helical spring has the following properties: wire diameter d = 3 mm, mean coil diameter D = 25 mm, number of active coils N = 10, and shear modulus G = 80 GPa (typical for steel music wire).
k = G d⁴ / (8 D³ N)
k = (80 × 10⁹ × (0.003)⁴) / (8 × (0.025)³ × 10)
k = (80 × 10⁹ × 8.1 × 10⁻¹¹) / (8 × 1.5625 × 10⁻⁵ × 10)
k = 6.48 / 0.00125 = 5,184 N/m ≈ 5.18 N/mm
Spring Index: C = D/d = 25/3 = 8.33 — well within the preferred range of 4–12.
Wahl Factor: K_W = (4×8.33 − 1)/(4×8.33 − 4) + 0.615/8.33 ≈ 1.184
Limitations & notes
The coil geometry formula k = Gd⁴/(8D³N) applies specifically to close-coiled helical compression or extension springs and assumes the helix angle is small (typically below 10°). It does not apply to torsion springs, leaf springs, Belleville washers, or variable-pitch springs. The formula assumes the spring wire is loaded purely in torsion — bending effects are accounted for only through the Wahl correction factor. Material nonlinearity is not captured; if the spring is loaded beyond its elastic limit, permanent set occurs and Hooke's Law no longer applies. The shear modulus G must be accurate for the specific alloy and temper — using a generic steel value for specialty alloys (e.g., Inconel or titanium) will produce significant error. Active coil count excludes inactive (dead) coils at the ends, which must be identified correctly per the spring's end condition (open, closed, ground). For dynamic applications, fatigue analysis and the Wahl factor must be applied to assess wire stress and service life. Always verify results against physical prototypes or FEA for safety-critical applications.
Frequently asked questions
What is the spring constant (k) and what are its units?
The spring constant k, also called the spring rate or stiffness coefficient, measures how much force a spring exerts per unit of deflection. Its SI unit is N/m (Newtons per meter), though N/mm is commonly used in mechanical engineering because spring deflections are typically measured in millimeters. A higher k value means a stiffer spring that requires more force to compress or extend.
What is the difference between the Hooke's Law method and the coil geometry method?
The Hooke's Law method is experimental — you apply a known force and measure the spring's deflection, then divide F/x to get k. It works for any spring type and accounts for real-world behavior. The coil geometry method is analytical — it uses the wire diameter, coil diameter, material shear modulus, and coil count to predict k from first principles. Use the geometry method during the design phase, and the Hooke's Law method to verify an existing spring.
What shear modulus should I use for steel springs?
For music wire (ASTM A228) and hard-drawn wire, G ≈ 79–80 GPa is standard. For stainless steel springs (302/304 SS), G ≈ 69 GPa. For chrome-vanadium alloy steel (ASTM A231), G ≈ 79 GPa. Always check the material specification for your specific alloy, as the shear modulus varies with alloy composition and heat treatment and directly affects the calculated spring rate.
What is the spring index and why does it matter?
The spring index C = D/d is the ratio of the mean coil diameter to the wire diameter. It governs the curvature of the wire as it wraps into the coil, which affects stress concentration and manufacturability. A spring index between 4 and 12 is preferred: below 4, the wire is difficult to bend and exhibits very high stress concentrations; above 12, the spring may buckle under load or become unstable during coiling.
What is the Wahl correction factor and when do I need it?
The Wahl correction factor K_W accounts for the combined effects of wire curvature and direct shear stress in helical springs, both of which increase the actual maximum shear stress above the simple torsion estimate. It is used when calculating the maximum shear stress in the wire: τ_max = K_W × (8FD)/(πd³). You need it whenever you are checking whether a spring will yield or fatigue — it is especially important for springs with a low spring index where curvature effects are pronounced.
Last updated: 2025-01-15 · Formula verified against primary sources.