← All text tools

Physics Sandbox

Run interactive simulations of orbits under gravity, a double pendulum, a particle fountain, falling sand and water, and flocking boids that you can poke with the mouse.

  • Free
  • No sign-up
  • Works on any device

About Physics Sandbox

Five small simulations you can poke. Orbits uses Newton's law of gravity with a leapfrog integrator: a star with three planets (the first planet's period follows Kepler's third law, about 198.7 time units at distance 100), the famous figure-eight orbit of three equal masses, or a binary star; drag on the canvas to launch more planets. The double pendulum uses the exact equations with a fourth-order Runge-Kutta step and shows its chaotic path and energy drift. A particle fountain, falling sand and water, and flocking boids complete the set. They are for exploring ideas, not for engineering.

How to use Physics Sandbox

  1. Choose a simulation: orbits, double pendulum, particles, falling sand or boids, and any set-up shown for it.
  2. Interact with the canvas: drag to launch a planet, click to move the fountain, paint sand and water, or scatter the boids.
  3. Use Pause and Reset, and read the readout under the canvas for time, energy drift or counts.

Why use this tool?

Also known as

Frequently asked questions

Why does the figure-eight orbit fall apart after a while?

That orbit is unstable: it exists exactly but any small error grows, so the simulation drifts away after several laps. This is a real property of the orbit, not a bug in the display.

How accurate are these simulations?

Good enough to see the right behaviour: orbits close after one period to within a tiny fraction, and the pendulum's energy drift is shown on screen. They are not tuned for precise engineering results.

Why are the sand and boids not exactly physical?

They follow simple local rules on a grid or between neighbours, in the style of games, rather than solving real fluid or flock dynamics. They show how complex behaviour emerges from simple rules.

Is Physics Sandbox free?

Yes. Physics Sandbox on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Physics Sandbox on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.