The scale people quote is logarithmic in the swing recorded by a seismograph, so a magnitude 6 moves the ground ten times as far at a given distance as a magnitude 5. Energy is not amplitude: it goes roughly as the amplitude squared times the frequency, and the empirical relation Gutenberg and Richter fitted, log₁₀E = 4.8 + 1.5M, turns one magnitude into 10^1.5 = 31.622776601684 times the energy — the first link. Two magnitudes is a factor of 10³ = 1000 (second link), four is a million (third), eight is 10¹², a trillion (fourth).
The 1.5 exponent is not decoration either: energy scales with the area of the rupture as well as the slip across it, and a fixed increment of magnitude has to buy both, so the length of the fault grows by about the square root of the energy factor. This is also where the original scale ran out of road. Richter's magnitude was measured from the amplitude of one particular kind of wave on one particular instrument, and for the great events the amplitude stops growing while the fault keeps tearing — the 1960 Chile earthquake, the largest instrumentally recorded, saturates the number. Hanks and Kanamori's moment magnitude in 1979 measures the physical moment instead, rigidity times area times slip, and it is the figure quoted now; when a news report says magnitude 9.1 for the 2011 Tōhoku event it is Mw, and on the 1956 energy line that is a little under 10^19 joules.
Answer
31.622776601684
How to read it
10^1.5 on the workbench: one magnitude in energy. The other links are two, four and eight magnitudes.
Source
Charles Richter's 1935 local magnitude is logarithmic in amplitude, a factor of ten per unit; the energy relation log₁₀ E = 4.8 + 1.5 M is Gutenberg and Richter's, published in 1956, and the moment magnitude Mw replaced it for great earthquakes in 1979
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.