The average speed of gas molecules can be derived from the kinetic theory of gases. The formula for the average speed of molecules is: \[ u_{\text{avg}} = \sqrt{\frac{8RT}{\pi M}}, \] where \( R \) is the universal gas constant, \( T \) is the temperature, and \( M \) is the molar mass of the gas.