Hooke's Law Calculator

This calculator applies Hooke's law to find the force in a stretched or compressed spring and the elastic potential energy it stores. Hooke's law is one of the first quantitative laws students meet in physics, and it is beautifully simple: the force a spring exerts is proportional to how far it has been stretched or compressed from its natural length. Written F equals k times x, the force equals the spring constant, a measure of stiffness, multiplied by the displacement. A stiff spring has a large spring constant and pushes back hard for a small stretch; a soft spring has a small one. The law explains the behaviour of springs, elastic materials, suspension systems, scales and countless mechanisms, and it holds as long as you do not stretch the material so far that it deforms permanently. This tool calculates both key quantities. You enter the spring constant in newtons per metre and the displacement in metres, and it returns the restoring force in newtons, the force the spring exerts to return to its natural length. It also computes the elastic potential energy stored in the spring, which is one half of the spring constant times the displacement squared, the energy that would be released if the spring were let go. The results update as you type, so you can see how the force grows in proportion to the stretch while the stored energy grows with its square. Use it for physics homework, for designing or understanding spring systems, or to build intuition for elasticity. The calculations use SI units and standard formulas, rounded for display, and assume the spring stays within its elastic limit.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner
20
spring force (newtons)
Elastic energy stored1 J
Force in kg-force2.04 kgf
Displacement10 cm

Force = spring constant x displacement. Elastic energy = half x spring constant x displacement squared. Valid within the elastic limit. Rounded for display.

How it works

Hooke's law states the spring force equals the spring constant multiplied by the displacement from the natural length. The elastic potential energy stored is one half of the spring constant times the displacement squared, equal to the area under the force-displacement line. The force grows in proportion to stretch, while the stored energy grows with its square.

Worked example

A spring with a constant of 200 newtons per metre, stretched by 0.1 metres, exerts a force of 200 times 0.1, which is 20 newtons. The energy stored is half of 200 times 0.1 squared, which is half of 200 times 0.01, equals 1 joule. Stretching it twice as far would double the force but quadruple the stored energy.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.