How do stars keep their spherical shape? The force of pressure pushing inward is balanced by the force of gravity pulling outward. Pressure from the rocky surface molds the gas into a spherical shape. The force of gravity pulling inward is balanced by the force of pressure pushing outward. The gravitational force of a star's core pulls its molecules into a ball.