An object reaches escape speed when the sum of its kinetic energy and its gravitational potential energy is equal to zero.