Elysia Tools

Navigation

Physics

Simple Pendulum Simulator with Period and Energy

Change the length, release angle and damping to compare pendulum periods and see how angle, angular velocity and mechanical energy evolve.

Open static visualization

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Overview

Release the bob from rest and follow its angle, angular velocity and energy on the same time scale. A swing that starts near horizontal takes longer than a small swing of the same pendulum.

From the motion equation to the small-angle period

A point mass hangs a fixed distance L from a pivot and swings in a vertical plane under constant gravity. The equation is θ̈ + bω + (g/L) sin θ = 0, with θ measured from the downward vertical and ω = dθ/dt. A fixed step of the fourth-order Runge–Kutta method advances the motion.

For small angles in radians, sin θ is close to θ. With zero damping, this gives the limit T₀ = 2π√(L/g). A longer pendulum swings more slowly at the same release angle, and stronger gravity shortens the period.

The period at a finite release angle

The exact undamped period of a swing released from rest is T = 4√(L/g) K(sin(|θ₀|/2)), where K is the complete elliptic integral of the first kind. The simulator evaluates it with the arithmetic–geometric mean.

The percentage beside the two periods compares T to T₀. It uses T₀ as the denominator, so you can check how large the small-angle approximation error is for your release.

Energy through a swing

At an undamped turning point, the bob is briefly at rest and the energy is all gravitational potential. At the bottom, its speed is greatest and the energy is all kinetic. The dashed total-energy curve stays level.

The linear damping torque is −bmL²ω. It removes mechanical energy at the rate bmL²ω², so the dashed curve falls during motion. The coefficient b is in s⁻¹.

How it works

  1. 1Select a preset or set the length, initial angle, gravity, mass and damping. A change to a physical setting returns the bob to its release position and pauses the simulation.
  2. 2Press Play and follow the angle, angular velocity and energy plots. Their horizontal axes use the same simulated time in seconds.
  3. 3Use Pause to hold the current state. Return to release clears the traces and restores the selected initial conditions.

Edge cases & common failures

  • Released at equilibrium

    At θ₀ = 0° the bob stays at the bottom. The period readout is a dash, and T₀ still gives the limit for small oscillations.

  • Damping is enabled

    Each cycle loses energy, so successive swings have different amplitudes. Both period readouts are calculated for zero damping as references.

Examples

1. A swing from horizontal

How to use

Select 90° swing. Compare the two period readouts and press Play to follow a full swing.

Outcome

The undamped period is 2.368 s, about 18.03% longer than the small-angle limit.

2. Follow the energy loss

How to use

Select Linear damping and run the model until the simulation clock is near 4 s.

Outcome

Mechanical energy starts at 1.314 J and reaches about 0.392 J at t = 4 s.

FAQ

Does a heavier bob swing faster?

With the same length, gravity, release angle and damping coefficient b, the motion is identical. Mass scales kinetic and potential energy in direct proportion.

Where does the period readout come from?

It is calculated from the release angle, length and gravity. The graphs show the time evolution of the integrated motion.

At a Glance

Interactive Preview

Simple Pendulum Simulator with Period and Energy
Static preview of this visualization. Use the interactive panel above to explore it.

Verified Results

Typical Experiments and Results

Every parameter set and result below is a fixed output of this page's built-in model (each asserted before delivery) and reproduces directly: set the Parameters column in the interactive panel.

ScenarioParametersResult
30° releaseL = 1.0 m, g = 9.81 m/s², θ₀ = 30°, b = 0 s⁻¹, m = 1.0 kgT = 2.041 s and T₀ = 2.006 s.
90° swingL = 1.0 m, g = 9.81 m/s², θ₀ = 90°, b = 0 s⁻¹, m = 1.0 kgT = 2.368 s, an increase of 18.03% over T₀.
Double the lengthL = 1.0 m → 2.0 m, g = 9.81 m/s², θ₀ = 30°, b = 0 s⁻¹, m = 1.0 kgT rises from 2.041 s to 2.886 s.
Linear dampingL = 1.0 m, g = 9.81 m/s², θ₀ = 30°, b = 0.30 s⁻¹, m = 1.0 kgE drops from 1.314 J at release to 0.392 J at t = 4 s.
Double the massL = 1.0 m, g = 9.81 m/s², θ₀ = 30°, b = 0 s⁻¹, m = 1.0 kg → 2.0 kgE at release rises from 1.314 J to 2.629 J. T remains 2.041 s.
EquilibriumL = 1.0 m, g = 9.81 m/s², θ₀ = 0°, b = 0 s⁻¹, m = 1.0 kgθ = 0°, ω = 0 rad/s and E = 0 J. The bob stays at equilibrium.

Sources

References

Papers and datasets underlying this visualization - every formula, algorithm, and data anchor on the page traces back to the sources below.

  1. [1]

    Moebs W., Ling S. J., Sanny J. (2016). 15.4 Pendulums. University Physics Volume 1, OpenStax.

    View source→ Restoring torque −mgL sin θ and the small-angle limit T₀ = 2π√(L/g)
  2. [2]

    Beléndez A., Pascual C., Méndez D. I., Beléndez T., Neipp C. (2007). Exact solution for the nonlinear pendulum. Revista Brasileira de Ensino de Física 29(4), 645–648.

    View source→ Eq. (23), exact period T = 4√(L/g) K(k) for a release from rest
  3. [3]

    Reinhardt W. P., Walker P. L. (2026). Classical Dynamics: The Pendulum. NIST Digital Library of Mathematical Functions, §22.19(i), release 1.2.8.

    View source→ Eqs. (22.19.1) and (22.19.2), nonlinear oscillator and stable equilibrium θ = 0
  4. [4]

    Carlson B. C. (2026). Quadratic Transformations. NIST Digital Library of Mathematical Functions, §19.8, release 1.2.8.

    View source→ K(k) = π/[2 AGM(1, k′)] with k′ = √(1 − k²)
  5. [5]

    Moebs W., Ling S. J., Sanny J. (2016). 15.5 Damped Oscillations. University Physics Volume 1, OpenStax.

    View source→ Linear drag opposes velocity and dissipates mechanical energy
  6. [6]

    Temme N. M. (2026). Ordinary Differential Equations. NIST Digital Library of Mathematical Functions, §3.7(v), release 1.2.8.

    View source→ Eqs. (3.7.18) and (3.7.19), classical fourth-order Runge–Kutta

Related

Related tools and workflows

Math & Numbers

Pendulum Period Calculator (T = 2π√(L/g))

Compute period, length, or gravity of a simple pendulum, plus amplitude-based peak speed and energy

Math & Numbers

Linear Programming Simplex Solver (Two-Phase)

Two-phase simplex for 2–6 variables and 1–8 ≤/≥/= constraints: Bland's rule, per-iteration pivot log, optimal/unbounded/infeasible status, and substitution checks.

Education

STEM Physics — Kinematics Velocity-Time Graph Tutor

Kinematics visualisation tutor: velocity-time curve (constant-acceleration SUVAT solver with displacement-area shading), projectile parabola (adjustable g + air-resistance toggle), and free-fall timing

Science & Education

Physics Kinematics Problem Solver

Solve 1D constant-acceleration kinematics problems and 2D projectile motion, with a full step-by-step derivation. Enter any 3 of the 5 quantities (displacement, initial velocity, final velocity, acceleration, time) and the solver finds the other two, showing each formula, the substitution, and the result. For projectiles, enter launch speed/angle/height to get range, time of flight, and max height.

Next

More visualizations nearby

Cookie settings

Essential cookies keep the site running. Analytics and personalized ads are optional.

Cookie policy