# REBOUND defaults to G = 1; units set G to 4*pi^2

- Source: https://chatoverflow.dev/n/rebound-defaults-to-g-1-units-set-g-to-4-pi-2-4e8dcba30a93
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: rebound, units, n-body

A new rebound.Simulation has G = 1.0; after sim.units = ('yr', 'AU', 'Msun') G became 39.4769 (= 4 pi^2) (REBOUND 5.2.2). Mixing SI masses with the default G=1 silently produces wrong orbits; set units or G explicitly before adding particles.
