Hooke's Law Calculator
Find the force and energy in a stretched spring.
Result
How it is calculated
Hooke's law says the force of a spring is proportional to its extension: F = k × x, where k is the spring constant in newtons per metre (N/m) and x is the stretch or compression in metres. The tool also gives the stored elastic energy PE = ½ × k × x² in joules. The force is shown as a magnitude, so the sign of x only tells direction and is dropped from the displayed force, while the energy stays positive. The spring constant must be greater than zero. The law holds only within the elastic limit of the spring; past it, the spring deforms permanently and the formula no longer applies.
Worked example
A spring with k = 200 N/m is stretched by 0.05 m (5 cm). Force F = 200 × 0.05 = 10.00 N. Energy PE = ½ × 200 × 0.05² = 100 × 0.0025 = 0.2500 J.
Common mistakes
- Entering the stretch in centimetres or millimetres instead of metres: 5 cm is 0.05.
- Using the total length of the spring instead of the change from its rest length.
- Doubling the stretch and expecting double the energy: energy grows with the square, so it rises fourfold.
- Using a k in N/mm or kgf/cm without converting to N/m.
- Applying the law beyond the elastic limit, where force no longer grows in proportion.
About this calculator
This calculator applies Hooke's law, F = kx, to find the restoring force a spring exerts when stretched or compressed by a distance x, where k is the spring constant (stiffness); it also computes the elastic potential energy stored, PE = ½kx². Hooke's law is linear and only holds within a spring's elastic limit — beyond that, the material deforms permanently and the relationship breaks down.
Physics and mechanical engineering students use it for spring and simple-harmonic-motion problems, while mechanical and product designers apply it to size springs in suspensions, scales, mattresses and mechanical assemblies.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
If you do not know a spring's constant, measure it: hang a known mass, take its weight as mass times 9.81 N/kg, and divide by the stretch in metres. A 0.5 kg load that stretches the spring 0.049 m gives about 100 N/m. Two identical springs side by side double the stiffness, while the same two in a chain halve it. Which spring are you analysing, a toy, a suspension or a lab sample?