# Spring calculator > How hard does a spring pull back? Spring force, stored energy and bounce period from the spring constant, the stretch and the mass, with Hooke's law drawn live. Calculate a spring's force with Hooke's law, the energy it stores and how fast a mass bounces on it, and drag the stretch on the force–extension line. - Page: https://how.box/springs/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/springs/?k={k}&x={x}&lu={lu}&m={m}&mu={mu} - `k` (number 0 to 1e9): Spring constant in N/m. Example: `200`. - `x` (number 0 to 1e6): Stretch from the rest length in lu. Example: `10`. - `lu` (mm, cm, m or in): mm, cm, m or in. Example: `cm`. - `m` (number 0 to 1e9): Mass on the spring in mu. Example: `0.5`. - `mu` (g, kg or lb): g, kg or lb. Example: `kg`. Example answer: https://how.box/springs/?k=200&x=10&lu=cm&m=0.5&mu=kg A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `springs_calculate`: Hooke's law and the mass–spring oscillator: F = kx, E = ½kx², T = 2π√(m/k). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"springs_calculate","arguments":{"stiffness":200,"extension":10,"length_unit":"cm","mass":0.5,"mass_unit":"kg"}}}` - GET: https://how.box/mcp/run/springs_calculate?stiffness=200&extension=10&length_unit=cm&mass=0.5&mass_unit=kg ## How it works A spring pulls back harder the more you stretch it, in proportion: twice the stretch, twice the force. This is Hooke's law, F = k·x, where x is the stretch from the rest length and k the spring constant, the force per metre of stretch. A stiff car spring has k in the tens of thousands of N/m, a pen spring a few hundred. Stretching takes work, and the spring stores it: the energy is the area under the force line, a triangle, E = ½·k·x². A 200 N/m spring stretched 10 cm pulls with 200 × 0.1 = 20 N and stores ½ × 200 × 0.1² = 1 J. Let go with a mass m on it and it bounces with the period T = 2π·√(m ÷ k), the same for any stretch: 0.5 kg on that spring bounces every 2π × √(0.5 ÷ 200) ≈ 0.31 s. Real springs follow Hooke's law only up to their elastic limit; stretched further they bend permanently. The period assumes a spring much lighter than the mass and no damping. Formulas from OpenStax University Physics, volume 1, sections 15.1 and 15.2 (openstax.org). ## FAQ **How do I find the spring constant?** Hang a known mass on the spring and measure the stretch: k = m·g ÷ x. A 1 kg mass stretching it 5 cm gives 9.81 ÷ 0.05 ≈ 196 N/m. **What is the difference between hanging extension and oscillation amplitude?** Hanging extension is the static stretch caused by the mass’s weight. For a vertical spring’s oscillation, amplitude is the extra displacement from that hanging equilibrium, not from the unloaded length. **What happens with two springs?** Side by side they act like one spring with k₁ + k₂. One after another they are softer: 1 ÷ k = 1 ÷ k₁ + 1 ÷ k₂. **Should I enter compression as a negative extension?** No. Enter the positive size of the displacement. The tool reports the magnitude of force and stored energy rather than a signed force direction. **How do I enter a spring constant given in N/mm?** Multiply it by 1,000 to get N/m before entering it. For example, 2 N/mm is 2,000 N/m. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)