Hill sphere
In the Earth-Sun example, the Earth (5.97×1024 kg) orbits the Sun (1.99×1030 kg) at a distance of 149.6 million km, or one astronomical unit (AU). The Hill sphere for Earth thus extends out to about 1.5 million km (0.01 AU). The Moon's orbit, at a distance of 0.384 million km from Earth, is comfortably within the gravitational sphere of influence of Earth and it is therefore not at risk of being pulled into an independent orbit around the Sun. All stable satellites of the Earth (those within the Earth's Hill sphere) must have an orbital period shorter than seven months.