Simple Harmonic Motion Calculator

Calculate a mass-spring oscillator's period, frequency, speed, and acceleration.

Mass-Spring Motion
Enter system properties and an instantaneous displacement from equilibrium.

About Simple Harmonic Motion

Simple harmonic motion is periodic motion in which the restoring force is proportional to displacement and points toward equilibrium. An ideal mass attached to a linear spring is the standard example. Pulling the mass away from equilibrium stores elastic potential energy; releasing it converts that energy into kinetic energy and back again. With no damping or external drive, the motion repeats indefinitely with constant amplitude and a sinusoidal position function. For a mass-spring system, angular frequency equals the square root of spring constant divided by mass. Period is two pi divided by angular frequency, and ordinary frequency is the reciprocal of period. A stiffer spring therefore produces faster oscillation, while a larger mass produces slower oscillation. In this ideal model, amplitude does not affect the period because the restoring force remains linear at every displacement. Amplitude is the maximum distance from equilibrium. The instantaneous displacement must lie between negative amplitude and positive amplitude. At equilibrium, speed reaches its maximum value of angular frequency times amplitude and acceleration is zero. At either endpoint, speed is zero while acceleration magnitude is greatest. The calculator obtains speed from energy conservation as angular frequency times the square root of amplitude squared minus displacement squared. It obtains signed acceleration from negative angular frequency squared times displacement. The reported speed is a magnitude, not a direction. At most positions the oscillator can be moving toward either side, so displacement alone cannot determine the sign of velocity. Acceleration does have a definite sign because it always points back toward equilibrium. A positive displacement produces negative acceleration, and a negative displacement produces positive acceleration. SI inputs yield seconds, hertz, radians per second, meters per second, and meters per second squared. Real oscillators lose energy to friction and air resistance, may have springs with mass, and can become nonlinear at large extension. Damping gradually reduces amplitude and can alter the observed period. An applied periodic force can create resonance and a phase shift not represented by this undriven model. The calculator is therefore best used for textbook systems, preliminary engineering estimates, and checks where the spring follows Hooke's law and mass is concentrated in the moving body. For experimental work, compare the result with measured timing over several cycles and account for uncertainty in both mass and spring constant.

Simple Harmonic Motion Examples

These ideal spring systems illustrate equilibrium, endpoint, and intermediate motion.

System and positionPeriod and motionObservation
m = 1 kg, k = 1 N/m, A = 1 m, x = 0 mT = 6.2832 s, speed = 1 m/sMaximum speed at equilibrium
m = 1 kg, k = 16 N/m, A = 0.5 m, x = 0.5 mT = 1.5708 s, acceleration = -8 m/s²Zero speed at positive endpoint
m = 2 kg, k = 8 N/m, A = 0.3 m, x = -0.18 mT = 3.1416 s, speed = 0.48 m/sAcceleration points toward equilibrium

How to Calculate Harmonic Motion

  1. Enter the oscillating mass in kilograms.
  2. Enter the spring constant in newtons per meter.
  3. Provide the amplitude and current displacement in meters.
  4. Select Calculate Motion to find period, frequency, speed, and acceleration.

Frequently Asked Questions

What makes motion simple harmonic?

The restoring force must be directly proportional to displacement and opposite in direction. This condition produces sinusoidal motion around a stable equilibrium.

Does amplitude change a spring oscillator's period?

Not in the ideal linear model. Real springs may become nonlinear at large extension, causing amplitude-dependent timing.

Where is oscillator speed greatest?

Speed is greatest at equilibrium because potential energy is minimum there. It falls to zero at both endpoints of motion.

Why is acceleration negative for positive displacement?

The negative sign shows that acceleration points toward equilibrium. A mass displaced in the positive direction is pulled back in the negative direction.

Does the model include damping?

No. It assumes no friction or drag, so amplitude and total mechanical energy remain constant throughout the calculation.