The RMS (Root Mean Square) distance formula is a mathematical expression used to quantify the average distance traveled by particles undergoing random motion, such as diffusion and Brownian motion. It provides a statistical measure of the typical distance a particle is expected to travel over a given time period.