Hooke's Law Calculator
- F = k × x = 200 N/m × 0.15 m = 30.00 N.
- The extension is 15.0 cm; the force is a restoring force, pulling or pushing back toward the spring's natural length.
- Elastic potential energy = ½ × k × x² = ½ × 200 × 0.15² = 2.25 J.
- Hooke's law holds only up to the spring's limit of proportionality; stretch beyond the elastic limit and the spring deforms permanently.
Our Hooke's law calculator applies the fundamental spring equation F = kx, where F is the restoring force, k is the spring constant, and x is the extension from equilibrium. Enter any two of these three values and the tool returns the third instantly. It also calculates the stored elastic potential energy using the formula E = 0.5 x k x x^2, which represents the triangle under the force-extension graph. For example, a spring with k = 200 N/m stretched 0.15 m exerts 30.00 N and stores 2.25 J, while a stiffer spring with k = 1,200 N/m needs only 0.05 m of stretch to push back with 60.00 N, storing 1.50 J.
Hooke's law is the accepted standard for spring calculations because it directly describes the linear relationship between force and extension that governs elastic behavior, and it holds reliably up to the spring's limit of proportionality. Beyond the elastic limit the spring deforms permanently, so staying within this range ensures dependable results. The method also reveals why a softer spring with k = 50 N/m stretched 0.40 m exerts 20.00 N but stores more energy, 4.00 J, than a stiffer spring pushing harder: the longer stretch increases the stored energy. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every calculation the hookes law calculator produces.
Worked examples
Thirty newtons
Primary result: 30.00 N — and 2.25 J of elastic energy stored at 15.0 cm of stretch. (200 N/m · 0.15 m)
| Spring force | 30.00 N |
| Elastic potential energy stored | 2.25 J |
| Extension in centimetres | 15.0 cm |
Soft but stretched further
Primary result: 20.00 N — the longer 40.0 cm stretch stores more energy (4.00 J) despite the smaller force. (50 N/m · 0.4 m)
| Spring force | 20.00 N |
| Elastic potential energy stored | 4.00 J |
| Extension in centimetres | 40.0 cm |
A stiff spring barely moves
Primary result: 60.00 N — 1,200 N/m needs only 5.0 cm to push back this hard. (1200 N/m · 0.05 m)
| Spring force | 60.00 N |
| Elastic potential energy stored | 1.50 J |
| Extension in centimetres | 5.0 cm |
Hooke's law: F = kx
Hooke's law is written as F = kx, where F is the restoring force in newtons, k is the spring constant in newtons per meter, and x is the extension from equilibrium in meters. The restoring force always points back toward the spring's equilibrium position. If you stretch a spring to the right, the restoring force pulls back to the left. If you compress it to the left, the restoring force pushes back to the right. This is why the force is called a restoring force: it opposes the displacement and tries to return the spring to its resting length.
To see how the formula works, consider a spring with a spring constant k = 200 N/m stretched 0.15 m from equilibrium. Plugging into F = kx gives F = 200 N/m times 0.15 m, which equals 30.00 N. That 30.00 N is the magnitude of the restoring force the spring exerts. A hookes law calculator applies this same multiplication for any combination of k and x you enter, so you can solve for force, spring constant, or extension as long as you know the other two values.
The restoring force is only half the story. A spring that is stretched or compressed also stores elastic potential energy. That stored energy equals the area of the triangle under the force-extension graph, given by the formula E = 0.5 x k x x^2. For the 200 N/m spring stretched 0.15 m, the stored energy is 0.5 times 200 times 0.15 squared, which equals 2.25 J. Notice that energy depends on the square of the extension, so stretching a spring twice as far stores four times the energy, even though the force only doubles.
Comparing a few springs shows why force and energy do not always track together. A softer spring with k = 50 N/m stretched 0.40 m exerts 20.00 N but stores more energy, 4.00 J, because of the longer stretch. A stiff spring with k = 1,200 N/m needs only 0.05 m of stretch to push back with 60.00 N, storing 1.50 J. The stiff spring produces a larger force over a tiny distance, while the soft spring produces a smaller force over a much longer distance. Because energy depends on both force and distance traveled, the soft spring can store more energy even though its peak force is lower.
- F = restoring force (N), always directed back toward equilibrium
- k = spring constant (N/m), a measure of stiffness
- x = extension from equilibrium (m), stretch or compression distance
- E = 0.5 x k x x^2 = stored elastic potential energy (J)
Finding the spring constant experimentally
The most reliable way to determine a spring's stiffness is to measure it directly. Hang the spring vertically from a fixed support, record its unstretched length, then add known masses one at a time. Each added mass produces a measurable, repeatable force, and the spring stretches a corresponding amount. Because Hooke's law states that F = kx, where F is the restoring force, k the spring constant and x the extension from equilibrium, the relationship between load and extension is linear under ideal conditions.
After collecting several force and extension pairs, plot the data on a graph with force on the vertical axis and extension on the horizontal axis. If the spring remains within its limit of proportionality, the points form a straight line passing through the origin. The gradient of that line gives the spring constant directly: k equals the change in force divided by the change in extension. This graphical method averages out small measurement errors far better than a single calculation from one data pair, which is why it remains the standard approach in classroom and laboratory settings alike.
A Hooke's law calculator can then apply that experimentally determined k to predict force or stored energy for any extension within the spring's elastic range. The stored elastic potential energy is the triangle under the force-extension graph, calculated as E = 0.5 x k x x^2. Understanding how k, extension, and energy interact helps you interpret the results of the experiment and compare different springs.
Keep in mind that Hooke's law holds only up to the spring's limit of proportionality; beyond the elastic limit the spring deforms permanently. During the experiment, watch the graph for any downward curve or flattening, which signals that the linear relationship has broken down. Any k value obtained from data collected past that point will not describe the spring's true elastic behavior.
| Spring type | k (N/m) | Extension x (m) | Restoring force F (N) | Stored energy E (J) |
|---|---|---|---|---|
| Stiff spring | 1,200 | 0.05 | 60.00 | 1.50 |
| Standard spring | 200 | 0.15 | 30.00 | 2.25 |
| Soft spring | 50 | 0.40 | 20.00 | 4.00 |
Elastic potential energy
The elastic potential energy stored in a stretched or compressed spring comes directly from the force-extension relationship. Because Hooke's law states that F = kx, where F is the restoring force, k the spring constant and x the extension from equilibrium, the force rises linearly from zero up to its maximum value as the spring stretches. On a force-extension graph, that line and the horizontal axis form a triangle. The area of a triangle equals one-half base times height, so the stored energy equals one-half times the extension times the maximum force: E = 0.5 x x x F. Substituting kx for F gives E = 0.5 x k x x^2.
A hookes law calculator applies this formula quickly. Consider a spring with k = 200 N/m stretched 0.15 m. The restoring force reaches 30.00 N, and the stored energy is 0.5 x 200 x 0.15^2 = 2.25 J. A stiffer spring with k = 1,200 N/m needs only 0.05 m of stretch to push back with 60.00 N, yet it stores just 1.50 J because the small extension keeps the triangular area small.
The softer spring example surprises many people. A spring with k = 50 N/m stretched 0.40 m exerts only 20.00 N, which is less force than either of the two cases above, but it stores 4.00 J. The reason is that energy depends on both force and distance, and the longer stretch more than makes up for the weaker push. The triangular area under the softer spring's force-extension line is wider, so it covers more total area even though its peak force is lower.
One important boundary applies to every calculation here. Hooke's law holds only up to the spring's limit of proportionality. Beyond the elastic limit the spring deforms permanently, the force-extension line stops being straight, and the triangular area formula no longer gives a valid energy value. A reliable hookes law calculator should only be used within the proportional range where F = kx remains accurate.
Springs in series and parallel
When you connect multiple springs together, the way they combine depends on whether they are arranged in series (end to end) or in parallel (side by side). Understanding these combination rules is essential when using a Hooke's law calculator, because the effective spring constant of the system changes based on the arrangement. Hooke's law states that F = kx, where F is the restoring force, k the spring constant and x the extension from equilibrium, so getting the combined value of k right directly determines the force you calculate.
For springs connected in series, the reciprocals of the individual spring constants add together. If you have two springs with constants k1 and k2, the equivalent spring constant is found by taking 1 divided by the sum of 1/k1 and 1/k2. This means the combined spring constant is always smaller than the weakest individual spring in the chain. As an example, suppose you link a stiff spring with k = 1,200 N/m and a softer spring with k = 50 N/m in series. The reciprocals add: 1/1,200 plus 1/50 equals 0.000833 plus 0.02, which totals 0.020833. Taking the reciprocal gives an equivalent constant of about 48 N/m, which is slightly less than the softer spring alone because the stiff spring still contributes a small amount of additional stretch.
For springs connected in parallel, the constants simply add together. Two springs with constants k1 and k2 arranged side by side produce an equivalent spring constant of k1 plus k2. The combined constant is always larger than the stiffest individual spring, because both springs push back together against the same displacement. Using the same two springs from above, placing them in parallel yields an equivalent constant of 1,200 N/m plus 50 N/m, which equals 1,250 N/m. If this parallel combination is stretched 0.05 m, it exerts a force of 62.50 N, compared with the 60.00 N that the stiff spring alone would produce at that same stretch.
These combination rules assume every spring still behaves within its elastic range. Hooke's law holds only up to the spring's limit of proportionality, and beyond the elastic limit the spring deforms permanently. The stored elastic potential energy also depends on the correct combined constant, since that energy equals the triangle under the force-extension graph: E = 0.5 x k x x^2. A series arrangement stretches more under the same load and can store more energy, while a parallel arrangement stretches less and feels stiffer overall.
Limits of Hooke's law
A hookes law calculator is a useful tool, but it relies on a key assumption: the spring or elastic material stays within its limit of proportionality. Hooke's law, expressed as F = kx, where F is the restoring force, k is the spring constant, and x is the extension from equilibrium, describes a perfectly linear relationship between force and extension. Double the stretch and you double the force. This clean, predictable relationship only holds up to a specific point on the force-extension graph.
The limit of proportionality marks the point where this linear relationship breaks down. Up to this limit, the graph of force versus extension is a straight line, and the stored elastic potential energy forms a clean triangle under that line, calculated as E = 0.5 x k x x^2. Beyond the limit of proportionality, the graph begins to curve. The material still returns to its original shape when the force is removed, but the relationship between force and extension is no longer a simple multiplication. The spring constant k is no longer a fixed value, and calculations using F = kx or E = 0.5 x k x x^2 become inaccurate.
Further along the force-extension curve sits the elastic limit. This is the critical threshold that separates temporary and permanent deformation. Up to the elastic limit, a spring returns to its original length and shape once the load is removed. Beyond this point, the internal structure of the material has been stretched or compressed too far. The spring will not return to its starting length, and it retains a new, permanent shape. This is permanent deformation, and it means the spring has been damaged or altered in a way that cannot be reversed by simply removing the force.
In practical terms, permanent deformation changes how a spring behaves going forward. A spring that has been stretched past its elastic limit will have a different resting length and may have a different stiffness. The original spring constant k no longer applies. For example, a spring with k = 200 N/m stretched 0.15 m exerts 30.00 N and stores 2.25 J under Hooke's law. If that same spring is stretched far beyond its elastic limit, it may never exert exactly 30.00 N at 0.15 m of stretch again, because its physical properties have changed. The same applies to a softer spring with k = 50 N/m stretched 0.40 m, which normally exerts 20.00 N and stores 4.00 J, or a stiff spring with k = 1,200 N/m that needs only 0.05 m of stretch to push back with 60.00 N and stores 1.50 J. Once any of these springs exceeds the elastic limit, the numbers from a calculation no longer match real-world behavior.
Understanding the distinction between the limit of proportionality and the elastic limit helps you know when calculations are valid. Between these two points, the material still recovers but no longer follows the simple linear rule. Past the elastic limit, the material is permanently changed. Always keep applied forces well below the elastic limit to ensure predictable, repeatable spring performance.
FAQs
What is Hooke's law?
Hooke's law states that the force a spring exerts is proportional to its extension, expressed as F = kx. This relationship holds true only within the limit of proportionality. The force equals the spring constant multiplied by the distance the spring is stretched or compressed from its resting position.
How do you calculate spring force?
To calculate spring force, multiply the spring constant by the extension. For example, using a spring constant of 200 N/m and an extension of 0.15 m, the calculation is 200 N/m x 0.15 m = 30.00 N. This gives you the force the spring exerts at that specific extension.
How do you find the spring constant?
To find the spring constant, rearrange the Hooke's law formula to k = F / x. Hang a known force on the spring and measure the resulting extension. Dividing the applied force by the measured extension gives you the spring constant, which indicates how stiff the spring is.
How much energy does a stretched spring store?
A stretched spring stores elastic potential energy according to the formula E = 0.5kx^2. For a spring with k = 50 N/m stretched to 0.40 m, the calculation is 0.5 x 50 x 0.16 = 4.00 J. This represents the energy stored in the spring at that extension.
What are the units of the spring constant?
The units of the spring constant are Newtons per metre (N/m). A stiffer spring has a larger k value. The examples used on this page span from 50 to 1,200 N/m, showing the range of spring stiffnesses you may encounter in calculations.
When does Hooke's law stop working?
Hooke's law stops working past the limit of proportionality, where the extension is no longer proportional to the applied force. Beyond the elastic limit, the spring will not return to its original length when the force is removed, meaning the linear relationship breaks down completely.