Skip to main content
Virtual Laboratory
Physics Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Hooke's Law: Spring Force and Extension

Inside a spring's elastic limit, Hooke's law gives a restoring force proportional to extension (F = kx), so the slope of an F–x graph equals the spring constant k and the triangular area beneath it gives elastic potential energy Eₚ = (1/2)kx². Hang weights, swap springs, toggle an F–L axis, and test yield in this free 3D simulation below.

Hooke's Law: Spring Force and Extension — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Explain how a vertical spring's own weight causes initial self-extension, calibrate the vertical natural length L₀ = 11.00 cm (equipment setting), and take eye-level millimeter ruler readings to 0.01 cm.
  • Plot and fit F–x and F–L graphs from multiple hanging-weight trials to find the spring constant k = ΔF/Δx, distinguishing the physical meanings of slope and x-intercept.
  • Derive the factor of 1/2 in elastic potential energy Eₚ = (1/2)kx² from variable-force work integration, and recognize nonlinear bending and permanent plastic deformation beyond the elastic limit.

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Hooke's Law: Spring Force and Extension

What You Will Investigate
Goal 01

Explain how a vertical spring's own weight causes initial self-extension, calibrate the vertical natural length L₀ = 11.00 cm (equipment setting), and take eye-level millimeter ruler readings to 0.01 cm.

Goal 02

Plot and fit F–x and F–L graphs from multiple hanging-weight trials to find the spring constant k = ΔF/Δx, distinguishing the physical meanings of slope and x-intercept.

Goal 03

Derive the factor of 1/2 in elastic potential energy Eₚ = (1/2)kx² from variable-force work integration, and recognize nonlinear bending and permanent plastic deformation beyond the elastic limit.

If you measure a spring's natural length lying flat on a bench, then hang it vertically to load weights and plot F against x, why does the line miss the origin even though its slope stays identical?

In automotive suspension tuning and mechanical force-gauge calibration, engineers never set the zero point while a spring lies flat. Every real metal spring has mass: once suspended vertically, the upper coils support the weight of the lower coils and stretch slightly before any load is added. Ignoring those few millimeters of self-weight extension shifts the zero point, while overloading past the wire's elastic boundary permanently deforms the metal lattice so the spring never returns to its original length.

Within the elastic limit, Hooke's law F = kx links restoring force linearly to extension rather than total spring length. The graph slope locks in the spring constant k, and the triangular area beneath the line stores the elastic potential energy transferred by variable-force work.
Vertical Zeroing & Eye-Level Reading3×50 g = 1.47 NL₀=11.0016.88 cmx = L − L₀ = 5.88 cm (k₁=25 N/m)Two-Spring F–x Graphs & Elastic LimitExtension x (cm)F (N)k₂ = 50 N/m (stiff)k₁ = 25 N/mPlastic yield (model)Linear zone (origin): F = kxVariable-Force Work & EnergyBox area F·x = kx²Eₚ = ½kx²Area = avg force (½kx) × xWire shear torsion energy (model)
2D Visual Guide & Diagram — Hooke's Law: Spring Force and Extension

Cause-and-Effect Chain

01 · Vertical Zeroing
Condition: Hang the spring freely on the stand with 0 weights attached

Removes the systematic self-weight extension bias and locks the reference length at L₀ = 11.00 cm (equipment setting)

→ Establishes the true extension baseline x = L − L₀
02 · Stepwise Loading
Condition: Add 50 g chrome slotted weights one by one (equipment setting, 0.49 N each)

At rest, upward restoring force balances total hanging weight while helical wire cross-sections undergo linear torsional shear strain

→ Read total length L at eye level through the 3D magnifier and log multiple (x, F) pairs
03 · Slope & Stiffness
Condition: Fit 4 to 5 data points collected within the elastic limit to a straight line

Inside the elastic limit, ΔF is strictly proportional to Δx, and summing infinitesimal work elements yields the triangular area (1/2)kx²

→ Measure the spring constant accurately from the slope: k₁ = 25.0 N/m or k₂ = 50.0 N/m (equipment settings)
04 · Yield Limit
Condition: Overload weights past the wire's elastic limit (2.5 N setting for k₁)

Maximum surface shear stress τ_max exceeds the yield threshold, causing lattice dislocation slip (illustrative model)

→ The F–x tail bends toward the horizontal axis and permanent plastic extension remains after unloading

Core Formulas & Quantitative Relations

Hooke's Law (Magnitude & Axis Shift)
F = k·x = k·(L − L₀)

Within the elastic limit, restoring force magnitude is directly proportional to extension x. Plotting total length L on the horizontal axis keeps the slope equal to k (in N/m), while the x-intercept equals the vertical natural length L₀.

Vertical Equilibrium & Graph Slope
F = n·m₀·g , k = ΔF / Δx

Each slotted weight has an equipment-setting mass m₀ = 0.050 kg, using standard gravity approximated as g = 9.80 m/s² (NIST g_n = 9.806 65 m/s², giving 0.49 N per weight). Computing slope from two widely spaced points on the fitted line reduces single-reading random error.

Elastic Potential Energy (Variable-Force Work)
Eₚ = W = (1/2)·k·x²

As the spring stretches from 0 to x, applied force increases linearly from 0 to kx. The average force is (1/2)kx, matching the right-triangle area beneath the F–x line.

Geometry of F–x, F–L, and Flat-Zero Error Lines in One Diagram

Match the Graph axis and Zero ref toggles in the 3D bench: changing the reference length shifts the line horizontally along the x-axis without changing the slope k inside the elastic limit.

  • Blue standard line (F–x with vertical zero L₀ = 11.00 cm, equipment setting): follows F = kx strictly through the origin (0, 0) with slope ΔF/Δx = 25.0 N/m.
  • Teal total-length line (F–L using pointer reading L directly): follows F = kL − kL₀, shifted right by L₀ so the x-intercept equals 11.00 cm while the slope stays 25.0 N/m. Never divide a single point F/L to find k.
  • Amber error line (using flat-bench length L₀′ = 10.20 cm as zero, equipment setting): at F = 0 hanging vertically, spring k₁ has already stretched Δx₀ = 0.80 cm under its own weight, producing a +0.80 cm positive x-intercept with the linear slope unchanged at 25.0 N/m.
Horizontal Line Shifts Across Three Axes & Zero-Point Setups (k₁ = 25.0 N/m, broken axis)F (N)Horizontal axis x or L (cm)Break① Standard F–x (origin)Δx₀=0.80 cm② Flat L₀′=10.20L₀ = 11.00 cm③ F–L total lengthSlope & Intercept Takeaways• Parallel lines: ΔF/Δx = ΔF/ΔL = k• Slope depends on spring design• F–L x-intercept = vertical L₀• Flat L₀′ → self-weight +x-intercept• Never use single-point F/L for k

Concept Breakdown

01

A real metal spring is not massless; the moment you hang it vertically, it starts measuring part of its own weight.

Why You Must Calibrate Natural Length L₀ While Hanging Vertically

When a spring lies flat on the bench, gravity does not pull axially along its coils, giving the flat natural length L₀′ (in this simulation, equipment settings are 10.20 cm for k₁ and 10.50 cm for k₂). Once suspended vertically from the retort stand crossbar with 0 weights attached, the upper coils carry the weight of the lower coils and stretch slightly. The resting length in this vertical state is the true zero reference L₀ (set to 11.00 cm for both springs on this 3D bench). Substituting the flat length into x′ = L − L₀′ adds a constant initial extension Δx₀ (0.80 cm for k₁) to every reading, leaving a positive x-intercept Δx₀ on the F–x graph. Because each added 50 g weight still produces the same extension increment Δx, however, the slope ΔF/Δx remains equal to the true spring constant k.

Try in the 3D bench: In Step 1 of the 3D bench, keep 0 weights attached and click the blue zero-point cursor beside the ruler (or Set L₀ on the right panel) to lock vertical L₀ = 11.00 cm. In Step 2, toggle Zero ref to Flat L₀′ to inspect the +0.80 cm self-weight intercept, then switch back to Vertical L₀ and recalibrate.
02

How stiff or soft a spring feels turns into line steepness on the graph and stored mechanical energy in the area underneath.

Comparing Two Spring Constants, Dual Graph Axes, and Elastic Energy Integration

By Hooke's law F = kx, the spring constant k measures the restoring force required per unit extension. This simulation provides a fine-wire sensitive spring (equipment setting k₁ = 25.0 N/m, elastic limit 2.5 N) and a thicker stiff spring (equipment setting k₂ = 50.0 N/m, elastic limit 3.1 N): each 50 g weight (ΔF = 0.49 N) stretches k₁ by 1.96 cm inside its elastic limit, whereas k₂ stretches only 0.98 cm. Switching the horizontal axis from extension x to total pointer length L rewrites the line as F = k(L − L₀), shifting it right to the x-intercept L₀ = 11.00 cm while leaving the slope ΔF/ΔL unchanged. In the Torsion & Energy modal, stretching from 0 to x increases the force linearly to kx, so summing narrow work strips ∑Fᵢ·Δx converges to the right-triangle area Eₚ = (1/2)kx²—exactly half the constant-force rectangle kx².

Try in the 3D bench: In Steps 3–4, hang 1 to 5 weights and click Log to record elastic-range points. In Step 5, switch Graph axis to F–L (length) to verify the intercept and slope. In Step 6, swap to k₂=50 N/m to compare the doubled slope. In Step 8, open Torsion & Energy in 03 · Views & Layers (or the right bench cabin), select tab 2, and drag the load slider to watch work bars fill the triangle.
03

Macroscopically the spring elongates, yet microscopically every coiled segment of wire experiences pure torsional shear.

Microscopic Torsional Shear Stress and Plastic Failure Beyond the Elastic Limit

When an axial load F pulls along a helical spring's centerline, it exerts a torque at coil radius R that places the wire cross-section in pure shear: shear stress is τ = 0 at the wire center and peaks at the outer rim. Inside the elastic limit, metal atoms shift reversibly around equilibrium positions, so removing the weights returns the pointer to L₀ (11.00 cm equipment setting). Overloading beyond the elastic limit (such as hanging 6 or more weights on k₁ past its 2.5 N setting) pushes rim shear stress above the yield strength, triggering irreversible lattice dislocation slip (illustrative model). On the F–x graph, the upper tail bends toward the horizontal axis (the same ΔF causes a larger Δx), and removing all weights leaves permanent plastic stretch (for example, stopping at 12.15 cm instead of returning to 11.00 cm after 8 weights).

Try in the 3D bench: In Step 7, switch back to k₁=25 N/m, overload with 6 to 8 weights and click Log to trigger the elastic-limit warning, then click Clear to observe permanent stretch before clicking Replace. In Step 8, open Torsion & Energy tab 1 to inspect the cross-sectional shear rings and lattice slip.

Reference & Comparison Table

Reference Readings for Both Helical Springs Under Stepwise 50 g Chrome Slotted Weights (equipment settings: m₀ = 50 g, L₀ = 11.00 cm, k₁ = 25.0 N/m, k₂ = 50.0 N/m; standard gravity approximated as g = 9.80 m/s²; 1–5 weights remain within the elastic limit)
Weights nForce F (N)k₁=25 N/m Length L (cm)k₁ Extension x₁ (cm)k₁ Energy Eₚ₁ (J)k₂=50 N/m Extension x₂ (cm)
0 (vertical zero)0.0011.000.000.00000.00
1 (50 g)0.4912.961.960.00480.98
2 (100 g)0.9814.923.920.01921.96
3 (150 g)1.4716.885.880.04322.94
4 (200 g)1.9618.847.840.07683.92
5 (250 g)2.4520.809.800.12014.90
Common Misconceptions

Common Misconceptions

Can I find the spring constant k by dividing a single force F by the total spring length L on the ruler?

No. The x in Hooke's law is extension L − L₀, not total length L. Dividing F/L mixes the natural length L₀ into the denominator, making k severely underestimated and dependent on load; on an F–L graph, always compute the two-point slope k = ΔF/ΔL.

Does measuring natural length L₀ while the spring lies flat on the bench make the calculated slope k too small?

No. Measuring flat misses the spring's vertical self-weight extension, which shifts the F–x line off the origin and creates a positive x-intercept. However, each added weight still produces the same ΔF/Δx increment, so the linear-region slope k stays accurate.

Does hanging heavier weights increase a spring's constant k, and does cutting a spring in half keep k the same?

No. The spring constant k is fixed by wire shear modulus, wire diameter, coil diameter, and active coil count—not by the hanging load. Cutting a uniform spring into two equal halves halves the active coils, halving extension under the same load and doubling k for each piece.

Since the pulling force reaches kx at extension x, is the stored elastic potential energy equal to kx²?

No. Because the force grows linearly from 0 to kx as the spring stretches, the work is done by a variable force whose average value is (1/2)kx. The stored elastic potential energy therefore equals the triangular area Eₚ = (1/2)kx², half of kx².

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →