Virginia Research Institute
Virginia Research Institute
Virtual Laboratory  ·  Built by E2 Innovations
← Back to Virtual Labs|The Spring Constant of a Spring
Mechanics · Hooke's Law

The Spring Constant of a Spring

Hang masses from a spring and measure how far it stretches. Discover Hooke's law, plot force against extension to find the spring constant from the slope of the graph, and then use that spring constant to determine the mass of two unknown objects from how far they stretch the same spring.

Theory — Hooke's Law and the Spring Constant

Hooke's Law

When you stretch or compress a spring, it pushes or pulls back. For small stretches the restoring force is proportional to how far the spring is stretched from its natural (unstretched) length. This relationship is Hooke's law, and the constant of proportionality is the spring constant k, which measures how stiff the spring is.

Hooke's Law F = k · x

F = force applied to the spring (N)
x = extension from natural length (m)
k = spring constant (N/m) — larger k means a stiffer spring

A Hanging Mass

When a mass hangs at rest from a vertical spring, it is in equilibrium: the upward spring force exactly balances the downward weight of the mass. Setting the spring force equal to the weight lets us connect the stretch to the mass.

Equilibrium of a Hanging Mass Spring force = weight
k · x = m · g

so  x = (g / k) · m  and  m = k · x / g
The stretch is proportional to the hanging mass

Finding k from a Graph

If you hang several known masses and record the extension for each, you can plot the spring force F = mg (vertical axis) against the extension x (horizontal axis). Hooke's law says this graph is a straight line through the origin, and its slope is the spring constant k. Using a graph of several points is more reliable than a single measurement because it averages out the small errors in any one reading.

Graphical Method Plot F = mg (y-axis) against x (x-axis)
slope of the line = k
k = rise / run = ΔF / Δx

Finding an Unknown Mass

Once the spring constant is known, the same spring becomes a scale. Hang an object of unknown mass, measure how far the spring stretches, and rearrange the equilibrium equation to find the mass.

Unknown Mass from Extension m = k · x / g
Measure x, use the k from your graph, and solve for m

Stiffer spring

Larger k. For the same mass it stretches less. The F-vs-x graph is steeper.

Heavier mass

Greater weight, so the spring stretches further. Extension ∝ mass.

The graph slope

Plotting F = mg against x gives a straight line whose slope equals k.

QuantitySymbolRelationship
Spring constantkstiffness; slope of F vs x (N/m)
Extensionxstretch from natural length (m)
Spring forceFF = kx (N)
Hanging mass equilibriumkx = mg
Unknown massmm = kx/g

Instructions — Running the Virtual Experiment

The Spring Lab tab lets you hang masses and read the extension; the Find k tab records force against extension so you can find the spring constant from the slope and then weigh the unknown objects. Record every reading in your lab notebook.

Experiment 1 — Stretch vs Mass (Spring Lab tab)
1
Open Simulation → Spring Lab. Gravity is set to Earth (9.81 m/s²) and the spring constant is fixed at the middle setting. Hang each known mass in turn (50–250 g) and read the extension from the readout. The natural-length and equilibrium lines mark where the spring ends before and after the mass is added.
2
Record at least three (mass, extension) pairs. Note that a heavier mass stretches the spring further, and that the extension is proportional to the mass.
3
Do not change the spring constant after this point — you will need the same spring to weigh the unknown objects.
Experiment 2 — Find k and Weigh the Unknowns (Find k tab)
1
Open Find k. For each known mass, the spring force F = mg and the extension x are listed. Click Record for at least three masses, then Plot & fit. The points lie on a straight line through the origin whose slope is the spring constant k.
2
Now hang the two unknown objects (Red and Blue) on the Spring Lab tab and read each one's extension. Using your fitted k, calculate each unknown mass from m = kx/g, and enter your answers in the Team Questions to check them.

Simulation — Masses on a Spring

Spring Constant Virtual LabHang a mass and read the extension
natural length
equilibrium (stretched)
Gravity: Earth 9.81 m/s² · damping high (no bouncing).

Spring & gravity

Keep k at the middle setting for the whole experiment.

Hang a mass

Unknown objects

Readout
Hanging objectnone
Mass— g
Weight F = mg— N
Extension x— cm
Hang a mass to stretch the spring.
Each point is one (extension, spring force) reading. Slope of F vs x = k.

Record known masses

Unknown extensions (read on Spring Lab tab)
Red object x11.45 cm
Blue object x8.18 cm
Mass (g)Spring force F = mg (N)Extension x (m)F / x (N/m)
No readings yet — click a mass to record it.

Team Questions

Question 1. A spring stretches 0.10 m when a force of 1.5 N is applied. What is its spring constant? Use k = F/x. (Type just the number in N/m)
Question 2. A 0.200 kg mass hangs from a spring of constant k = 15 N/m. How far does the spring stretch? Use x = mg/k with g = 9.81 m/s². (Type just the number in metres — e.g. 0.131)
Question 3. On a graph of spring force F (y-axis) against extension x (x-axis), what physical quantity does the slope of the straight line represent? (One or two words)
Question 4. Using your fitted spring constant, weigh the Red object. Its extension is 11.45 cm (0.1145 m). Find its mass with m = kx/g (use k = 15 N/m, g = 9.81). (Type just the number in grams — e.g. 175)
Question 5. Now weigh the Blue object. Its extension is 8.18 cm (0.0818 m). Find its mass with m = kx/g. (Type just the number in grams — e.g. 125)
Question 6. Two springs are stretched by the same force. Spring A stretches more than spring B. Which spring has the larger spring constant — A or B? (Answer "A" or "B")
Question 7 — Challenge. Why is finding the spring constant from the slope of a graph of several points more reliable than calculating k from a single mass-and-extension measurement? (One key idea)

Example Lab Report

Sample report demonstrating the expected format and level of detail. Use as a guide for your own submission.

The Spring Constant of a Spring

Physics | Section: [Your Section] | Date: [Date]

Lab Members: [Names of all members present]

Purpose

To determine the spring constant of a spring by hanging known masses, measuring the extension produced by each, and finding the spring constant from the slope of a graph of spring force against extension. The measured spring constant is then used to determine the masses of two unknown objects (Red and Blue) from the extensions they produce.

Theory

A spring obeys Hooke's law, F = kx, where k is the spring constant. For a mass hanging in equilibrium, the spring force balances the weight, so kx = mg. A graph of F = mg against extension x is a straight line through the origin with slope k. Once k is known, an unknown mass is found from m = kx/g.

F = kx · kx = mg · m = kx/g
slope of F-vs-x graph = k (g = 9.81 m/s²)

Calculations — Sample data (Earth gravity, middle spring)

For 100 g: F = mg = 0.100 × 9.81 = 0.981 N; measured extension x = 6.54 cm = 0.0654 m

Slope check: k = F/x = 0.981 / 0.0654 = 15.0 N/m

Red unknown: extension 11.45 cm = 0.1145 m → m = kx/g = 15.0 × 0.1145 / 9.81 = 0.175 kg = 175 g

Blue unknown: extension 8.18 cm = 0.0818 m → m = kx/g = 15.0 × 0.0818 / 9.81 = 0.125 kg = 125 g

Results Table — Known Masses

Mass (g)Spring force F = mg (N)Extension x (m)F / x (N/m)
500.4910.032715.0
1000.9810.065415.0
1501.4720.098115.0
2001.9620.130815.0
2502.4530.163515.0

A graph of F against x was a straight line through the origin; its slope gave k = 15.0 N/m.

Discussion

The spring force was directly proportional to the extension, confirming Hooke's law over the range of masses tested. The graph of F against x was a straight line through the origin, and its slope gave a spring constant of 15.0 N/m. The constancy of the ratio F/x across all five masses (15.0 N/m in every row) provided an independent confirmation of the slope.

Using this spring constant, the two unknown objects were weighed from their extensions: the Red object (extension 11.45 cm) had a mass of 175 g, and the Blue object (extension 8.18 cm) had a mass of 125 g. The graphical method is more reliable than a single measurement because plotting several points averages out the random error in any individual reading and makes any systematic problem (such as a non-zero starting extension) visible as a departure from a straight line through the origin.

Conclusion

The spring constant of the spring was found to be 15.0 N/m from the slope of the force-versus-extension graph, consistent with the constant F/x ratio. Using this value, the unknown Red and Blue objects were determined to have masses of 175 g and 125 g respectively, demonstrating that a calibrated spring can serve as a scale through Hooke's law.

Practice Questions

Show all work and include units in your answers. Use g = 9.81 m/s² unless told otherwise.

Question 1
A spring stretches 4.0 cm when a 0.30 kg mass hangs from it. Calculate the spring constant.
Hint: kx = mg, so k = mg/x. Convert 4.0 cm to 0.040 m.
Question 2
A spring has a spring constant of 25 N/m. How far will it stretch when a 0.50 kg mass is hung from it?
Hint: x = mg/k.
Question 3
The following data were collected for a spring: 0.10 kg → 3.3 cm; 0.20 kg → 6.5 cm; 0.30 kg → 9.8 cm. Plot spring force (F = mg) against extension and determine the spring constant from the slope.
Hint: convert extensions to metres, compute F = mg for each, and find slope = ΔF/Δx.
Question 4
An unknown mass stretches a spring (k = 18 N/m) by 12 cm. What is the mass of the object?
Hint: m = kx/g, with x = 0.12 m.
Question 5
Explain why a graph of spring force versus extension should pass through the origin, and what it would mean physically if your experimental line did not.
Hint: zero force should give zero extension; a non-zero intercept suggests a measurement offset or a pre-tensioned spring.
Question 6 — Challenge
Two identical springs (each k = 20 N/m) support a 0.40 kg mass side by side (in parallel), sharing the load equally. How far does each spring stretch? How would the answer change if the same two springs were connected end to end (in series)?
Hint: in parallel the effective constant is 2k; in series it is k/2. Use x = mg/k_eff.