The earthquake is measure by the Richter scale in the unit of magnitude. It is the size of the earthquake in the length into the width and the slip. Magnitude is nothing but the distance or the power or extent of the earthquake.
There are different energy at different measures of magnitude on the Richter scale. Magnitude of 7.2 releases 30 times more energy than the energy releases by 6.2 magnitudes.