Position, velocity and acceleration of an oscillator at any moment, from its amplitude and its period or frequency. Add a mass for joules, the equivalent spring constant and peak force.
Simple Harmonic Motion Calculator - Position, Speed, Energy
Position, velocity and acceleration of an oscillator at any moment, from its amplitude and its period or frequency. Add a mass for joules, the equivalent spring constant and peak force.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Four numbers from one 10 cm, two-second oscillation
Half of every oscillation is spent in the outer 29 percent of its range, crawling near the ends, and only a quarter of a cycle is needed to get from one end to the center. This calculator gives the position, velocity and acceleration of a simple harmonic oscillator at any moment you choose, from its amplitude, its period or frequency, and where it started. An object swinging 10 cm either side of center once every 2 s, released from the middle, is 8.09 cm out and moving at 0.1847 m/s after 0.3 s.
Why the fastest point carries no force
Simple harmonic motion is what any system does when the force pulling it back is proportional to how far it has moved: a mass on a spring, a pendulum at small angles, a guitar string, a loudspeaker cone. The position follows a sine curve, x = A sin(ωt + φ), where A is the amplitude, ω the angular frequency (2π divided by the period) and φ the phase at which the clock started.
Velocity is the slope of that curve and acceleration is the slope of the velocity, which puts the three quantities a quarter of a cycle apart. At the center the position is zero, the restoring force is zero and so is the acceleration, yet the speed is at its peak of Aω. At the ends the object stops for an instant, the force is at its largest and the acceleration reaches Aω². The relation a = -ω²x holds at every moment: acceleration always points back toward the center and grows in step with the distance from it.
Energy trades places the same way. With a mass entered, the calculator splits the total into potential energy, which is 100 % at the ends, and kinetic energy, which is 100 % at the center. The total never changes, which is the simplest check on any hand calculation: add the two and you should get k A² / 2 at every row of the table.
One cycle, eight stops
The table follows the oscillator from the first tile, 10 cm amplitude and a 2 s period, starting at the center and moving outward. Read down any column and the sine and cosine shapes appear on their own; read across any row and the energy shares always add up to one hundred.
| Time | Position | Velocity | Acceleration | Potential / kinetic |
|---|---|---|---|---|
| 0 s | 0 cm | 0.3142 m/s | 0 m/s² | 0 / 100 |
| 250 ms | 7.071 cm | 0.2221 m/s | -0.6979 m/s² | 50 / 50 |
| 500 ms | 10 cm | 0 m/s | -0.987 m/s² | 100 / 0 |
| 750 ms | 7.071 cm | -0.2221 m/s | -0.6979 m/s² | 50 / 50 |
| 1 s | 0 cm | -0.3142 m/s | 0 m/s² | 0 / 100 |
| 1.25 s | -7.071 cm | -0.2221 m/s | 0.6979 m/s² | 50 / 50 |
| 1.5 s | -10 cm | 0 m/s | 0.987 m/s² | 100 / 0 |
| 1.75 s | -7.071 cm | 0.2221 m/s | 0.6979 m/s² | 50 / 50 |
| 2 s | 0 cm | 0.3142 m/s | 0 m/s² | 0 / 100 |
Setting it up for your own oscillator
- Amplitude - the largest distance from the center, not the full swing from end to end. A swing of 20 cm end to end is an amplitude of 10 cm.
- Period or frequency - whichever you have. Seconds and milliseconds are read as the time for one full cycle, hertz as cycles per second, rad/s as angular frequency.
- Where it starts - passing the center in either direction, released from either end, or a phase angle of your own in degrees.
- Time - the moment you want to look at, in seconds or milliseconds. Leave it empty to see the starting state; times longer than one period are folded back into the cycle.
- Mass - optional. It turns the energy split into joules and gives the equivalent spring constant and the peak restoring force.
- Read the result - four tiles for the moment you chose, the constants of the motion, the working line, and a table of the whole cycle in eighths with your moment sorted into it.
Five oscillators side by side
Same equation, very different numbers. Top speed scales with amplitude times frequency, peak acceleration with amplitude times frequency squared, which is why a string moving one millimeter pulls hundreds of g while a slow ten-centimeter swing barely registers.
| What is moving | Amplitude | Timing | Top speed | Peak acceleration |
|---|---|---|---|---|
| A slow swing | 10 cm | 2 s | 0.3142 m/s | 0.987 m/s² (0.1006 g) |
| Something bobbing on a spring | 3 in | 1.5 Hz | 0.7182 m/s | 6.769 m/s² (0.6902 g) |
| 0.5 kg on a 200 N/m spring | 5 cm | 314.2 ms | 1 m/s | 20 m/s² (2.039 g) |
| A speaker cone on a bass note | 2 mm | 50 Hz | 0.6283 m/s | 197.4 m/s² (20.13 g) |
| A string sounding A4 | 1 mm | 440 Hz | 2.765 m/s | 7,643 m/s² (779.4 g) |
The spring row is the same system as a 200 N/m spring holding 0.5 kg. Give this calculator that mass and it reports a total energy of 0.25 J and an equivalent spring constant of 200 N/m, the same figures the Hooke's law calculator gives for that spring stretched 5 cm.
Things the sine curve hides
Who reaches for it
What people usually want to know next
Related tools
Buoyancy Calculator
Whether a floating object bobs at all, and how deep it sits once it stops - See calculator
Hooke's Law Calculator
The spring behind the oscillation: force, spring constant and stretch, with the period of a hung mass - See calculator
Pendulum Period Calculator
The period of a swinging pendulum from its length, with the exact figure for large swings - See calculator
Kinetic Energy Calculator
The energy of motion at the center of the swing, for any mass and speed - See calculator
Potential Energy Calculator
Energy stored by height, the form a pendulum's energy takes at the end of a swing - See calculator
Force Calculator
Newton's second law, the step from peak acceleration to peak force - See calculator