The rocket equation is the formula for calculating the speed of a rocket based on mass and velocity of the exhaust.