An ideal gas is in a sealed rigid container. The average kinetic energy of the gas molecules depends most on An ideal gas is in a sealed rigid container. The average kinetic energy of the gas molecules depends most on the temperature of the gas. the number of molecules in the container. the size of the container. the mass of the molecules.