Hooke's Law Calculator – Spring Force, Energy and Oscillation
Hooke's Law is the rule that makes springs predictable. It states that the restoring force an ideal elastic element exerts is proportional to how far it has been pushed or pulled from its natural length, and always points back toward that natural length. In symbols, F = −k·x, where k is the spring constant in newtons per metre and x is the displacement from equilibrium. This calculator solves that relationship in every direction — give it any two of force, stiffness and displacement, and it returns the third along with the energy, work and oscillation results that follow from it.
Reading the minus sign
The minus sign is the part students most often drop, and it carries real physical content. It says the force and the displacement point in opposite directions. Stretch a spring to the right and it pulls left; compress it to the left and it pushes right. When a problem asks for the force you must apply to hold the spring in place, the answer is +k·x— equal in size, opposite in direction to the spring's own restoring force. This tool reports both the signed restoring force and the plain magnitude so the distinction never gets lost.
Why the stored energy is ½kx²
A spring is not a constant-force device. As you stretch it, the force you must supply climbs steadily from zero up to k·x. The work done is therefore the area under the force–displacement line, which is a triangle of area ½ · x · kx = ½kx². That is the elastic potential energy stored in the spring. The average force over the stretch is ½kx, and using that average does make the familiar W = F̄ · x work out correctly.
½ × 300 × (0.25² − 0.10²) = 7.875 J, but the naive 75 N × 0.15 m gives 11.25 J — about 43 percent too high.Because x is squared, compression and extension of the same size store exactly the same energy, and doubling the displacement quadruples the energy. That quadratic growth is why the last centimetre of travel on a stiff spring feels so much more expensive than the first.
Springs in series and in parallel
Real assemblies rarely contain one spring. Connected in series, end to end, every spring carries the same force while their extensions add, so the combination is softer than any individual spring: 1/k_eq = Σ 1/kᵢ. Connected in parallel, side by side, they all share the same extension while their forces add, making the combination stiffer: k_eq = Σ kᵢ. A 200 N/m spring and a 300 N/m spring give 120 N/m in series but 500 N/m in parallel — a four-fold difference from the same two components.
From stiffness to natural frequency
Attach a mass and the same spring constant sets how fast the system oscillates. The angular frequency is ω = √(k/m), the period is T = 2π√(m/k), and the frequency is f = 1/T. This is the single most useful step in suspension and vibration work: a stiffness specification converts directly into a natural frequency for a given sprung mass. Notably, the period depends on neither the amplitude nor gravity — pull the mass twice as far and it simply covers twice the distance in the same time.
Hang a mass from a vertical spring instead and it settles where the spring force balances the weight, at x = mg/k. A useful check on intuition: the gravitational energy released in reaching that point is exactly twice the energy stored in the spring. The missing half is carried off by whatever lowers the mass gently. Let go of it instead and it overshoots to twice the static extension before springing back.
Where the linear model runs out
Hooke's Law is a small-deformation approximation, and it is only as good as the elastic range of the material. Past the elastic limit a spring deforms permanently and the force–extension curve bends away from a straight line. Progressive and conical springs are deliberately nonlinear from the very first millimetre. Fit a measured dataset in this calculator and the reported R² tells you how straight your real spring actually is; anything below about 0.98 is a signal to stop treating k as a constant.
k = EA/L, which links spring stiffness to Young's modulus, cross-sectional area and length. It is also the working principle behind load cells, force gauges and mechanical scales, which all measure force by measuring a tiny, precisely calibrated deflection.Getting reliable answers
Enter values in whatever units your problem uses — the calculator normalises everything to SI before applying the formula and shows each conversion step. Keep an eye on the sign of the displacement, since that is the one input where a negative number is meaningful rather than an error. If you are determining k from measurements, take several readings across the working range rather than one, and fit them: a single point can hide curvature that a fitted line and its R² will expose immediately.