Loading…

Shm Position and Velocity Calculator

Physics Oscillations and Waves • Simple Harmonic Motion (shm) Basics

View all topics

Compute mass–spring simple harmonic motion: angular frequency \(\omega=\sqrt{k/m}\), period \(T\), frequency \(f\), and the motion \(x(t), v(t), a(t)\). Includes energies, an interactive plot (zoom + pan), and a spring–mass motion animation.

Model: \(x(t)=A\cos(\omega t+\phi)\). Use \(A\ge 0\). If you want a negative initial displacement, keep \(A\) positive and adjust \(\phi\).

Ready
Spring–mass motion animation
This schematic animation uses the computed \(\omega\), \(A\), and \(\phi\). It always animates the displacement \(x(t)\).
The drawing is not to scale, but the timing matches the computed period.
Interactive plot
Mouse wheel / trackpad scroll to zoom. Drag to pan. Buttons below reset and zoom.
Tip: if your screen is narrow, scroll horizontally to see the full plot. Touch: drag to pan; pinch to zoom.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is angular frequency in simple harmonic motion?

Angular frequency ω measures how fast the phase advances in radians per second. For a mass–spring oscillator, ω = sqrt(k/m).

How do you find the period of a spring-mass oscillator?

First compute ω = sqrt(k/m), then use T = 2π/ω. The period depends on k and m, not on amplitude in the ideal model.

Why is acceleration proportional to negative displacement in SHM?

Hooke’s law gives a restoring force F = -kx. Using Newton’s second law m x'' = F yields x'' = -(k/m)x, so acceleration points toward equilibrium.

Is energy conserved in simple harmonic motion?

In the ideal undamped model, total energy E = (1/2)kA^2 stays constant. Energy swaps between spring potential U = (1/2)kx^2 and kinetic K = (1/2)mv^2.