C
CalcFusionHub
ConvertersFinancialHealthMath & EducationEngineeringBusiness♥ Favorites
Home›Calculators›Engineering›Simple Harmonic Motion (SHM) & Pendulum Calculator
⚙️

Simple Harmonic Motion (SHM) & Pendulum Calculator

Period, frequency and maximum speed for a pendulum or a mass on a spring, with the motion animated beside a live graph of position, velocity and acceleration.

Loading…

Related Calculators

🌀
Hooke's Law Calculator
Free Hooke's law calculator — F = k·x with the energy stored shown as the triangle under the force–extension line, plus series and parallel stiffness and the natural frequency when a mass is hung on it.
〰️
Frequency Converter
Convert Hz, kHz, MHz, GHz and more.
〜
Amplitude Calculator
Free amplitude calculator — find amplitude, period, frequency, and phase shift of y = A·sin(Bx + C) + D, with a live animated wave.
🚀
Velocity & Acceleration Calculator
Free kinematics calculator — solve final velocity, acceleration, or displacement with the constant-acceleration equations.
🎯
Trajectory & Projectile Motion Calculator
Free projectile motion calculator for horizontal, oblique (angular), and vertical projectiles — range, max height, time of flight, and impact speed with an animated trajectory.
🪂
Free Fall Calculator
Free fall calculator — fall time, impact velocity, and speed from any drop height and gravity, with an animated drop.
View all Engineering →
C
CalcFusionHub

Free online calculators and converters for finance, health, math, and everyday life.

calcfusionhub.com

Converters

  • Length Converter
  • Weight Converter
  • Temperature Converter
  • Area Converter
  • Volume Converter
  • Speed Converter
  • View all →

Calculators

  • BMI Calculator
  • Loan Calculator
  • Mortgage Calculator
  • Compound Interest
  • Age Calculator
  • ROI Calculator
  • View all →

Company

  • About
  • For Teachers
  • Contact
  • Privacy Policy
  • Terms of Service
  • ♥ Favorites

© 2026 CalcFusionHub. All rights reserved.

Privacy PolicyTerms of ServiceContact

Results are for informational purposes only. Always verify with a qualified professional.

Pendulum of length 1 metre swinging through 15 degrees, with a period of 2.01 seconds1 m · T = 2.01 s
Position, velocity and acceleration of the oscillator over 2 periods, each a quarter of a cycle apartT2T+peak0−peak
  • Position0.262 m
  • Velocity-0 m/s
  • Acceleration-2.567 m/s²
Pause to read position, velocity and acceleration at a single instant.
Period
2.006 s
small-angle
Frequency
0.498 Hz
Max speed
0.82 m/s
Max acceleration
2.567 m/s²
Angular frequency ω3.132 rad/s
Exact period (large-angle)2.015 s
Small-angle error0.43%
Rise at the extreme of the swing0.034 m
Energy per kilogram of bob0.334 J/kg

Instant insight

  • One full swing takes 2.006 s — 0.498 cycles per second

    T = 2π√(L/g) = 2π√(1 ÷ 9.807). Notice what is missing: the mass of the bob. A lead weight and a paperclip on the same string swing at exactly the same rate, because gravity pulls harder on the heavier one in exactly the proportion that makes it harder to accelerate.

  • At 15° the small-angle formula is safe

    The exact period is 2.015 s against the small-angle 2.006 s — a difference of 0.43%, smaller than you can time by hand. The approximation only starts to hurt past about 20°, where it passes 1%.

  • To halve the period you must quarter the length

    Period goes as √L, not L. This 1 m pendulum beats at 2.006 s; a 0.25 m one would beat at 1.003 s. It is also why a seconds pendulum — one second per half-swing — has to be very close to 0.994 m at sea level, a length that fixed the height of grandfather clocks.

  • Position, velocity and acceleration are one wave a quarter-cycle apart

    x = A·cos(ωt), v = −Aω·sin(ωt), a = −Aω²·cos(ωt), with ω = 3.132 rad/s. Acceleration is always exactly the opposite of displacement — that relation, a = −ω²x, is the definition of simple harmonic motion, and everything else on this page follows from it.

  • What the model leaves out

    A massless string, a point bob, no air resistance and no friction at the pivot. A real pendulum loses amplitude slowly and, because the exact period depends on amplitude, its period drifts as it decays. That is why precision clocks keep the swing tiny.

Worked out in your browser — nothing is sent anywhere.

Compare results

Save this result, change your inputs, and recalculate to compare scenarios side by side.

Everyday Uses

🕰️

Pendulum clocks

Isochronism is what makes a swinging weight a timekeeper at all — and why precision clocks keep the swing as small as they can.

🎓

Physics coursework

The standard experiment: time twenty swings, divide, and compare against 2π√(L/g) to measure g.

🚗

Vehicle suspension

A car body on its springs is a mass–spring oscillator, and its natural frequency is why some roads feel worse at particular speeds.

🏗️

Tuned mass dampers

Tall buildings carry a deliberately tuned pendulum near the top, set to swing out of step with the tower and cancel its sway.

⌚

Balance wheels

A mechanical watch replaces the pendulum with a wheel on a hairspring, obeying the same equation and free of gravity's direction.

🎸

Strings and sound

Every point on a vibrating string is doing simple harmonic motion; the pitch you hear is its frequency.

Frequently Asked Questions

What is the formula for the period of a pendulum?

T = 2π√(L/g), where L is the length from the pivot to the centre of the bob and g is the acceleration due to gravity. A one-metre pendulum on Earth takes about 2.006 seconds per full swing. The formula contains no mass term at all, because gravity pulls harder on a heavier bob in exactly the proportion that makes it harder to accelerate — the two effects cancel completely.

Does the mass of a pendulum bob affect its period?

No. A lead weight and a cork on identical strings swing at identical rates, which is one of the least intuitive results in mechanics. What does affect it is length — and only as a square root, so quartering the length halves the period. Air resistance eventually separates the two in practice, because it slows a light bob far more than a heavy one, but that is drag, not the pendulum law.

What is the formula for a mass on a spring?

T = 2π√(m/k), with m the mass in kilograms and k the spring constant in newtons per metre. A stiffer spring or a lighter mass gives a faster oscillation. Note what is absent here: the amplitude. Pull the mass twice as far and the period does not change at all — it simply travels twice as fast over twice the distance.

Why doesn't amplitude affect the period in simple harmonic motion?

Because the restoring force grows in proportion to the displacement. Pull the mass twice as far and the spring pulls back twice as hard, so it accelerates twice as fast and covers the doubled distance in the same time. This property is called isochronism, and it is the entire reason a pendulum can keep time — a clock whose swing decays slightly would otherwise run fast or slow as its mainspring unwound.

What is the small-angle approximation, and when does it break?

T = 2π√(L/g) is derived by replacing sin θ with θ, which is only accurate for small swings. The error is 0.19% at 10°, about 0.8% at 20°, 1.7% at 30% and roughly 18% at 90°. For a laboratory measurement with a stopwatch, anything under about 15° is safe. Beyond that the true period is genuinely longer, and this calculator shows both figures so you can see the gap.

How are position, velocity and acceleration related in SHM?

They are the same wave, each shifted a quarter of a cycle from the last. Position is A·cos(ωt), velocity is −Aω·sin(ωt), acceleration is −Aω²·cos(ωt). So velocity peaks exactly where position crosses zero — at the centre of the swing — and acceleration is always the exact mirror of position, largest at the extremes where the object is momentarily still. That last relation, a = −ω²x, is the definition of simple harmonic motion.

What is angular frequency, and how is it different from frequency?

Frequency f counts cycles per second, in hertz. Angular frequency ω counts radians per second, and ω = 2πf. The angular version is what appears inside the sine and cosine, because those functions take radians. For a pendulum ω = √(g/L); for a spring ω = √(k/m). Everything else — period, maximum speed, maximum acceleration — is built from ω.

Where does the energy go during an oscillation?

Nowhere — it swaps. At the extremes the object is momentarily still and all the energy is stored, as spring tension or as the height the bob has risen. At the centre the store is empty and all of it is kinetic. The total stays at ½kA² for a spring, and the exchange happens twice per cycle, not once, because the object passes through the centre twice. Doubling the amplitude quadruples the energy.

What is a seconds pendulum?

One that takes exactly one second per half-swing, so two seconds for a complete cycle. That requires a length of about 0.994 m at sea level, which is why longcase (grandfather) clocks are the height they are — the case exists to house that specific pendulum. Because g varies slightly with latitude and altitude, the exact length differs from place to place, a fact eighteenth-century surveyors used to measure the shape of the Earth.