Jump to main content

Simple Harmonic Motion in a Spring-Mass System

120 reviews


Many things in nature are periodic: the seasons of the year, the phases of the moon, the vibration of a violin string, and the beating of the human heart. In each of these cases, the events occur in repeated cycles, or periods. In this project, you will investigate the periodic motion of a spring, using a mini Slinky®. You can also measure the motion of your spring using a smartphone equipped with a sensor app. Basic physics will then allow you to determine the Hooke's Law spring constant. Your analysis will also yield the effective mass of the spring, a factor that is important in real-world engineering applications.


Areas of Science
Time Required
Short (2-5 days)
Material Availability
Readily available
Very Low (under $20)
No issues

David Whyte, PhD, Science Buddies
Edited by Ben Finio, PhD, Science Buddies

Slinky® is a registered trademark of Poof-Slinky, Inc.

Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation.


In this science fair project you will investigate the mathematical relationship between the period (the number of seconds per bounce) of a spring and the load (mass) carried by the spring. Based on the data you collect, you will be able to derive the spring constant, as described in Hooke's Law, as well as the effective mass of the spring.


This project requires very simple materials to explore the physics of periodic motion. All you need is a mini Slinky® and some weights, such as small fishing sinkers. The Slinky is a spring, which follows Hooke's law. Hooke's law states that when a spring is displaced from its equilibrium position, it experiences a restoring force proportional to the displacement from equilibrium and the spring constant:

Equation 1:

When you add a weight to a spring and stretch it then release it, the spring will oscillate before it returns to rest at its equilibrium position. This system is called a simple harmonic oscillator (Figure 1).

Animation of a block bouncing up and down when attached to a spring from above
Figure 1. Animation of a simple harmonic oscillator.

As you add more weight to the spring, the period, or amount of time it takes to complete one oscillation cycle, changes. In this project, you will determine how adding more mass to the spring changes the period, T, and then graph this data to determine the spring constant, k, and the equivalent mass, me, of the spring. Equation 2 relates period to mass, M:

Equation 2:

In an ideal spring-mass system, the load on the spring would just be the added weight. But real springs contribute some of their own weight to the load. That is why the Slinky bounces even when there is no weight added. So the equation can be modified to look like this:

Equation 3:

In this equation, the total mass pulling down on the spring is actually comprised of two masses, the added weight, m, plus a fraction of the mass of the spring, which we will call the mass equivalent of the spring, me. Rearranging Equation 3 will give you the form of the equation you will use later for graphing, so:

Equation 4:

Based on this equation, if you graph the added mass, m vs. T2/4π2, you will be able to find the spring constant, k, and the equivalent mass, me, of the spring.

Terms and Concepts

Optional terms for using Google's Science Journal:



Materials and Equipment

Experimental Procedure

Note: In this project, you will measure the motion of a simple harmonic oscillator made from a spring and some weights. Optionally, you can also measure its motion using a smartphone and a sensor app as described in the Using a Sensor App to Measure Period section.

  1. Do your background research so that you are knowledgeable about the terms, concepts, and questions above. Be sure to record your data in your lab notebook as you go along.
  2. Measure the mass of one of your weights, using the scale. If your scale does not measure small weights, you can weigh all five of your weights and divide by five. Then measure the mass of the spring.
  3. Perform the following steps to collect your data:
    1. Hold one end of the spring in your hand and let it bounce gently down and then back up.
    2. Count the number of cycles the spring makes in 60 sec with no weight hanging from it.
    3. Hang one weight from the spring (using a fine wire or string, if needed).
    4. Count the number of cycles the spring goes through in 60 sec with the weight attached.
    5. Perform at least three trials for each weight.
    6. Repeat steps c–e for a series of different weights.
  4. Keep track of your results in a data table like Table 1.
Load (mass added to spring)
Number of cycles per 60 sec Average
Trial #1Trial #2Trial #3
Table 1. Example data table.
  1. Make another table like Table 2 to convert your raw data into numbers that can be used to determine the spring constant and spring's effective mass.
Added mass
Average # cycles in 60 sec
f, the frequency,
or cycles per second
T, the period of spring,
or the time for each cycle
(sec ²)
Convert to kilograms From Table 1 Divide "Average # cycles in 60 sec" in column B by 60 Reciprocal of cycles per second in column C (divide 1 by the numbers in column C) Multiply value in column D by itself and divide by 4(π)²
Table 2. Example table for calculations.
  1. Make a graph with "Added mass," m, in kilograms, on the y-axis, and T²/4π² in sec², on the x-axis. Use kilograms rather than grams so that the value of k is in units of N/m, which is equivalent to kg/sec². Usually you are instructed to graph the independent variable (mass in this case) on the x-axis and the measured parameter (T²/4π²) on the y-axis. You should ignore this rule in this project since graphing m on the y-axis will let you read me from the y-intercept.

    This graph of m vs. T²/4π² has the same terms found in Equation 4:

    Equation 4:

    Let's look at the equation. It has a form similar to the equation of a straight line: y = ax + b, where a is the slope and b is the y-intercept. In fact, Equation 4 is an equation for a straight line, with slope equal to k, the spring constant, and y-intercept equal to the negative value of me. In other words, there is a linear relationship between m and T²/4π², so a graph of m vs. T²/4π² (Figure 2) will be a straight line with slope k and y-intercept -me. The reason you calculated T²/4π² was to be able to read the values of k and me from the graph of m vs. T²/4π².

    Diagram calculates the slope of a line
    Figure 2. Graph of m vs T²/4π²

    How do you determine the slope of the line you have drawn? The slope is measured as change in m, divided by the change in T²/4π², over the same range.

    Equation 5:

    Δm/Δ T²/4π² can be read as "delta m over delta T²/4π²", with the Greek letter for delta, Δ, indicating "change of." Make another table like Table 3 to find the slope. Pick points that are near the ends of the graph, rather than adjacent points.

Added mass (kg) T²/4π² (sec²) Δy (kg) Δx (sec²) Δy/ Δx (kg/sec²)
    Subtract one y value from another, larger y value Subtract one x value from another, larger x value This is the spring constant, k, in units of N/m
Table 3. Example table for calculating the spring constant.

Once you have determined the value of the spring constant, k, from the slope of the line, you are ready to determine the effective mass of the spring. To do this, extend the straight line until it intersects the vertical y-axis. The line will intersect the y-axis at - me (negative me). Based on theoretical considerations, the absolute value of me should be around one-third of the mass of the spring.

Optional: Using a Sensor App to Measure Period

When your weights oscillate up and down, their motion is periodic, as described in the introduction. When you use a stopwatch to measure the phone's period, you do this based on its position (for example, how long it takes the phone to start at the top, go down to the bottom, and return to exactly where it started at the top). If you could trace the phone's vertical position on a graph over time, it would be sinusoidal. You can determine the period of a sine wave by measuring the horizontal distance between two peaks, or any other identical points between two periods (Figure 3).

Example graph shows the period of a sine wave which measures the distance between two peaks of a wave
Figure 3. The period of a sine wave.

Since the phone's position is periodic, its velocity (change in position over time) and acceleration (change in velocity over time) are also periodic. This means that if you can measure and graph them over time, you will also see a sine wave, and can determine the period from that sine wave. This is convenient because we can measure acceleration with a device called an accelerometer. Accelerometers are built in to most smartphones and video game controllers to allow motion control. Sensor apps such as phyphox allow you to record data using the phone's accelerometer. Based on this information, think about how you could do this experiment using a phone equipped with a sensor app, instead of a stopwatch, to measure the spring's period of oscillation:

  1. Figure out a way to hang your phone from a spring (Figure 4). Materials like rubber bands, paper clips, tape, and string could all be useful. Try to make sure your phone stays vertical, without wobbling or tipping side-to-side.
  2. The phone adds a lot of weight to the spring. You will need to include the weight of the phone in your calculations. Make sure you have a spring that is stiff enough to support the weight of your phone, in addition to the weights you use for the experiment. If you hold one end of the spring in your hand then release the phone, the phone should not hit the ground. If a mini Slinky is not stiff enough to support the weight of your phone, get a stiffer spring from a hardware store.
A smartphone is attached to the bottom of a spring with a rubber band and paperclip
Figure 4. Phone attached to spring using a rubber band and paper clip.
  1. Open your sensor app. If you use phyphox, select the accelerometer with g function. Make sure you choose the accelerometer graph (X, Y, or Z) that takes measurements in the same direction the phone is moving (do not take side-to-side measurements if the phone is moving up and down, or your readings will not be correct).
  2. Measure the phone's oscillations using the sensor app.
    1. Hold one end of the spring in one hand.
    2. Confirm that you have selected the accelerometer that records the direction you would like to measure, based on your phone's orientation.
    3. When you are ready, press the play button in phyphox to start a recording.
    4. Make sure the phone is vertical and the spring is in its neutral position.
    5. Drop the phone and allow the spring to oscillate until it comes to a stop.
    6. Press the pause button to stop recording and save your data.
  3. View the resulting graph after recording your data. Measure the time (x-axis) value between two adjacent peaks in the graph. In the phyphox app, use the 'pick data' tool to select the highest points of two adjacent peaks. Once you have picked a data point the app will display its x- and y-values. Find the difference between these two times to calculate the period. Figure 5 shows an example graph.
Example graph of the acceleration experienced by a phone attached to the end of a spring

Example graph shows the acceleration recorded from a smartphone that is attached to a spring. The graph is a relatively constant wave pattern with time on the x-axis and acceleration on the y-axis. The peak of the acceleration is marked at the third peak with a value of 19.5 meters per second squared.

Figure 5. Example acceleration graph. The x-axis of this graph shows time in seconds (s) and the y-axis shows acceleration in meters per second squared (m/s²). The data cursor shows a peak in the graph at 4.1 seconds.
  1. Does recording data in this manner give you any additional insight that you could not get just by using a stopwatch? For example, does the oscillation period change over time, or remain constant? What about the amplitude (height) of the oscillation?
  2. Optional: Have a friend use a stopwatch to measure the period while you take measurements with the sensor app. Which method do you think is more accurate? Does your answer change if you take measurements over a certain number of periods (e.g. 10) or a certain amount of time (e.g. one minute)?
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.



If you like this project, you might enjoy exploring these related careers:

Career Profile
Physicists have a big goal in mind—to understand the nature of the entire universe and everything in it! To reach that goal, they observe and measure natural events seen on Earth and in the universe, and then develop theories, using mathematics, to explain why those phenomena occur. Physicists take on the challenge of explaining events that happen on the grandest scale imaginable to those that happen at the level of the smallest atomic particles. Their theories are then applied to… Read more
Career Profile
Mathematicians are part of an ancient tradition of searching for patterns, conjecturing, and figuring out truths based on rigorous deduction. Some mathematicians focus on purely theoretical problems, with no obvious or immediate applications, except to advance our understanding of mathematics, while others focus on applied mathematics, where they try to solve problems in economics, business, science, physics, or engineering. Read more

News Feed on This Topic

, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "Simple Harmonic Motion in a Spring-Mass System." Science Buddies, 1 May 2021, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Phys_p064/physics/simple-harmonic-motion-springs. Accessed 6 Dec. 2023.

APA Style

Science Buddies Staff. (2021, May 1). Simple Harmonic Motion in a Spring-Mass System. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Phys_p064/physics/simple-harmonic-motion-springs

Last edit date: 2021-05-01
Free science fair projects.