The formula to calculate the force of gravitation between two objects is F = (G * m1 * m2) / r^2, where F is the force of gravitation, G is the gravitational constant, m1 and m2 are the masses of the two objects, and r is the distance between their centers.