Click to add bodies to a real N-body gravity sandbox: every pair obeys F = G m1 m2 / r^2, with the real Newtonian constant G = 6.674 x 10^-11 m^3 kg^-1 s^-2 shown for literacy.
Published literacy: Newtonian gravitation formula F = G m1 m2 / r^2; G = 6.674 30 x 10^-11 m^3 kg^-1 s^-2 (CODATA 2022).
Drag to orbit and scroll or pinch to zoom. Click the ground to add a body, choose Light or Heavy mass, or Pause/Reset the sandbox.
N-Body Sandbox 3D Explorer
freetoolonline.com editorial team
This browser explorer is a real N-body gravity sandbox: click to add a body, and every pair pulls on every other with F = G m1 m2 / r^2. The real constant G (CODATA 2022, in the table) drives the physics, with a scaled teaching constant for visible motion.
Three-Body Problem 3D owns a fixed figure-8 choreography; this page is the free-form sandbox where you set initial conditions and watch orbits, scatters, and captures emerge.
- Click to add a body with a small randomized velocity
- Light/heavy mass presets; fading orbit trails per body
- Facts panel lists the real G value and a live bound-versus-escaping count
- Distinct from three-body-problem and gravity-well
- Runs in-browser with three.js - no account, no upload
| Figure | Value | Source note |
|---|---|---|
| Gravitation formula | F = G m1 m2 / r^2 | Live between every pair |
| Newtonian constant G | 6.674 30(15) x 10^-11 m^3 kg^-1 s^-2 | CODATA 2022 |
Renders on-device with WebGL - loads once (~0.7 MB), cached, nothing uploaded.
Gravity is softened at close range to avoid numerical blow-up (standard N-body practice); this is an educational sandbox, not a precise ephemeris.
For the walkthrough, see the step-by-step guide. The Space 3D collection also includes Three-Body Problem 3D and Gravity Well 3D.
Frequently Asked Questions
What does the N-Body Sandbox 3D Explorer show?
Click the ground to add bodies. Every pair pulls on every other pair with a real inverse-square gravity force, so orbits, scatters, and captures emerge from your own setup, not a script.
How is this different from Three-Body Problem 3D?
Three-Body Problem 3D shows one fixed classic figure-8 choreography and explicitly is not a general N-body ephemeris. This page is the free-form sandbox that fills that gap.
How is this different from Gravity Well 3D?
Gravity Well 3D shows a static potential-well surface for known bodies. This page runs a live, emergent multi-body simulation you control.
What is the real value of G?
6.674 30 x 10^-11 cubic meters per kilogram per second squared, the CODATA 2022 recommended value of the Newtonian constant of gravitation.
Does the sandbox use the real value of G for motion?
No. On-screen motion uses a scaled teaching constant so dynamics stay visible on one screen. The real G value is shown in the facts panel for literacy.
What happens if I add many bodies?
Up to 16 bodies can coexist. With more bodies, chaotic scattering becomes more likely - a real feature of N-body systems, not a bug.