**Root-mean-square speed** is the measure of the speed of particles in a gas which is most convenient for problem solving within the kinetic theory of gases. It is defined as the square root of the average velocity-squared of the molecules in a gas. It is given by the formula

v
r
m
s
=
3
R
T
M
m
where *v*_{rms} is the root mean square of the speed in meters per second, *M*_{m} is the molar mass of the gas in kilograms per mole, *R* is the molar gas constant, and *T* is the temperature in kelvins. Although the molecules in a sample of gas have an average kinetic energy (and therefore an average speed) the individual molecules move at various speeds and they stop and change direction according to the law of density measurements and isolation, i.e. they exhibit property of distribution of speeds. Some move fast, others relatively slow. Collisions change individual molecular speeds but the distribution of speeds remains the same. This equation is derived from kinetic theory of gases using Maxwell–Boltzmann distribution function. The higher the temperature, the greater the mean velocity will be. This works well for both nearly ideal, atomic gases like helium and for molecular gases like diatomic oxygen. This is because despite the larger internal energy in many molecules (compared to that for an atom), 3*RT*/2 is still the mean translational kinetic energy. This can also be written in terms of the Boltzmann constant (*k*) as

v
r
m
s
=
3
k
T
m
where *m* is the mass of one molecule of the gas.

This can be derived with energy methods:

E
k
=
3
2
n
R
T
=
3
2
N
k
T
where *E*_{k} is the kinetic energy and *N* is the number of gas molecules.

E
k
,
m
o
l
e
c
u
l
e
=
1
2
m
v
2
Given that *v*^{2} ignores direction, it is logical to assume that the formula can be extended to the entire sample, replacing *m* with the entire sample's mass, equal to the molar mass times the number of moles *n* yielding

1
2
n
M
v
2
=
E
k

Therefore,

v
r
m
s
=
2
E
k
m
which is equivalent.

The same result is obtained by solving the Gaussian integral containing the Maxwell speed distribution, *p*(*v*):

v
r
m
s
=
∫
0
∞
v
2
p
(
v
)
d
v
=
∫
0
∞
4
π
(
m
2
π
k
T
)
3
2
v
4
e
−
v
2
m
2
k
T
d
v
=
4
π
(
m
2
π
k
T
)
3
2
3
8
π
1
2
(
2
k
T
m
)
5
2
=
3
k
T
m