Double Pendulum Simulator Calculator

Explore chaotic double pendulum motion with adjustable masses, lengths, gravity, damping, solvers, live animation, energy tracking, trajectory graphs, comparisons, and downloadable simulation data instantly.

Simulation Results

Ready

Run a simulation to calculate angles, velocities, positions, energy, and chaos indicators.

Simulation Setup

Pendulum parameters

Initial conditions

Angle units per second.
Angle units per second.

Physical effects

Uses the selected angle unit.

Numerical solver

Chaos comparison and output

Uses the selected angle unit.

Real-Time Animation

Time: 0.000 s Frame: 0

Graphs and Chaos Analysis

Simulation Data Table

The table uses the selected sampling interval.

Timeθ₁θ₂ω₁ω₂ x₁y₁x₂y₂ KineticPotentialTotal
No simulation data yet.
Page 0 of 0

Formula Used

The simulator solves the coupled nonlinear equations for two point masses connected by rigid, massless rods. Angles are measured from the downward vertical direction.

α₁ = [−g(2m₁+m₂)sinθ₁ − m₂g sin(θ₁−2θ₂)
      − 2m₂sin(θ₁−θ₂)(ω₂²L₂ + ω₁²L₁cos(θ₁−θ₂))]
      ÷ [L₁(2m₁+m₂−m₂cos(2θ₁−2θ₂))]

α₂ = [2sin(θ₁−θ₂)(ω₁²L₁(m₁+m₂) + g(m₁+m₂)cosθ₁
      + ω₂²L₂m₂cos(θ₁−θ₂))]
      ÷ [L₂(2m₁+m₂−m₂cos(2θ₁−2θ₂))]

x₁ = L₁sinθ₁                  y₁ = −L₁cosθ₁
x₂ = x₁ + L₂sinθ₂            y₂ = y₁ − L₂cosθ₂

T = ½(m₁+m₂)L₁²ω₁² + ½m₂L₂²ω₂² + m₂L₁L₂ω₁ω₂cos(θ₁−θ₂)
V = −(m₁+m₂)gL₁cosθ₁ − m₂gL₂cosθ₂
E = T + V

Damping, driving torque, and spring coupling are added as optional generalized torque terms. Numerical integration advances the four-state system through time.

How to Use This Calculator

  1. Enter both rod lengths and bob masses.
  2. Select gravity or enter a custom value.
  3. Set initial angles and angular velocities.
  4. Choose damping, driving, and coupling options.
  5. Select a numerical solver and time step.
  6. Enable nearby-condition comparison for chaos analysis.
  7. Press Calculate and simulate.
  8. Use animation controls, charts, and export buttons.

Smaller time steps usually improve energy conservation. They also require more calculations and browser work.

Example Data

ExampleL₁L₂m₁m₂θ₁θ₂Expected behavior
Small-angle1 m1 m1 kg1 kg10°Mostly regular oscillation
Chaotic1 m1 m1 kg1 kg120°−10°Strong sensitivity and complex motion
Damped1 m0.8 m1 kg0.7 kg90°30°Energy gradually decreases

Worked Example

Choose one-meter rods and one-kilogram bobs. Set the angles to 120° and −10°.

Use Earth gravity, RK4, and a 0.01-second step. Enable a 0.01° nearby-condition comparison.

Run thirty seconds and inspect trajectory separation. Compare energy drift before changing solver accuracy.

Assumptions and Limitations

Frequently Asked Questions

Why is a double pendulum chaotic?

Its nonlinear coupled equations amplify small differences in initial conditions. Similar starts can create very different trajectories.

Which solver is best?

RK4 is a strong general choice. Adaptive RK4 improves accuracy when motion changes rapidly.

Why does total energy drift?

Numerical methods introduce approximation error. Use RK4, smaller time steps, or symplectic integration.

What does the Lyapunov estimate mean?

A larger positive estimate suggests faster divergence between nearby trajectories. Short simulations provide only rough estimates.

Can I simulate the Moon or Mars?

Yes. Select a gravity preset or enter another positive acceleration value.

What is a Poincaré section?

It samples phase-space points at repeated crossings. The pattern can reveal regular or chaotic behavior.

What does damping change?

Damping removes mechanical energy. Oscillations generally shrink until the pendulum approaches rest.

Why does Euler become unstable?

Euler has larger accumulated error. Large time steps can make energy grow unrealistically.

Can I save my setup?

Yes. Export settings as JSON or copy a shareable configuration link.

Related Calculators

Average Calculator StatisticsGeometric Mean CalculatorInter Quartile Range CalculatorLower Quartile CalculatorMaximum CalculatorMean Calculator StatisticsMedian Calculator StatisticsMidhinge Calculator StatisticsMid Range Calculator StatisticsMinimum Calculator Statistics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.