On this page
A magnetic field stores energy in empty space, u = B²/2μ₀ joules in every cubic metre. The post on energy density in a magnetic field derives that formula from a solenoid and checks it for a light wave. Here we apply it to the biggest magnet most of us will ever meet: the Earth. Earth's field is weak, tens of microtesla, but it fills an enormous volume. How much energy does it hold altogether? About 7.6 × 10¹⁷ joules outside the planet. And there is a shortcut that gives the answer in one line.
The full sum needs integration over all of space, which is beyond Class 12. We give the result, show where it comes from, and then use only Class 12 algebra.
How strong is Earth's magnetic field?
To a good first approximation, the field outside Earth is that of a magnetic dipole at the centre, tilted by about 9° from the spin axis. The dipole's strength is its magnetic moment m. The International Geomagnetic Reference Field (IGRF), the standard model published through NOAA's National Centers for Environmental Information, gives three dipole coefficients for 2025.0: g₁⁰ = −29,350.0 nT, g₁¹ = −1,410.3 nT and h₁¹ = 4,545.5 nT (IGRF-14 coefficient file). Combined, they give B₀ = √[(g₁⁰)² + (g₁¹)² + (h₁¹)²] = 29,733 nT at the model's reference radius of 6,371.2 km. From B₀ = μ₀m/4πR³:
m = 4πR³B₀/μ₀ = 7.69 × 10²² A m².
The moment is slowly shrinking. The same file gives 8.32 × 10²² A m² for 1900 and 7.71 × 10²² A m² for 2020, so it has fallen by about 8% in 125 years. Older books often quote about 8.0 × 10²² A m², which was the value around 1970.
A dipole's field falls as 1/r³, the same law as for an electric dipole, explained in why a dipole field falls as 1/r³. At the same distance, the field over a pole is twice as strong as over the equator. At the surface (R = 6,371 km):
B_eq = μ₀m/4πR³ = 29.7 µT at the magnetic equator.
B_pole = 2B_eq = 59.5 µT at the magnetic poles.
These match the field strengths you meet in angle of dip and the horizontal component: a few tens of microtesla, with the real field varying from place to place because the dipole is not the whole story.
What is the energy density of Earth's field?
Put these into u = B²/2μ₀ with μ₀ = 1.2566 × 10⁻⁶ T m/A:
Equator: u = (29.7 × 10⁻⁶)² / (2 × 1.2566 × 10⁻⁶) = 3.5 × 10⁻⁴ J/m³, or 0.35 mJ/m³.
Poles: four times as much, 1.4 mJ/m³.
That is tiny. A cubic metre of air at the equator holds a third of a millijoule of magnetic energy. A 1 tesla lab magnet stores a billion times more per cubic metre. The total is large only because the field fills so much space.
How do you add up the energy of the whole field?
The total energy is the sum of u over every small volume outside Earth. For a dipole, B² = (μ₀m/4πr³)² × (1 + 3cos²θ), where θ is the angle from the magnetic axis. Two facts make the sum easy:
The angle part. Averaged over a sphere, 1 + 3cos²θ comes to exactly 2. Over a sphere, the average of cos²θ is 1/3, so the average of 1 + 3cos²θ is 1 + 1 = 2.
The distance part. B² falls as 1/r⁶, and the volume of a thin shell grows as r², so each shell holds energy that falls as 1/r⁴. Summing all the shells from R outwards gives a factor 1/3R³. This is the step that needs calculus.
The result is
U = μ₀m²/(12πR³).
Now write it with the equatorial surface field, B_eq = μ₀m/4πR³. A little algebra gives
U = (4π/3)R³ × B_eq²/μ₀ = 2 × (B_eq²/2μ₀) × (4π/3)R³.
The energy outside Earth is twice the equatorial surface energy density times Earth's volume. A field that fills all of space stores the same energy as a uniform field filling two Earths at the equatorial density.
Worked example: how much energy is in Earth's field?
Use R = 6,371 km and m = 7.69 × 10²² A m².
Earth's volume. V = (4π/3)R³ = (4π/3) × (6.371 × 10⁶)³ = 1.083 × 10²¹ m³.
Equatorial energy density. u_eq = 3.52 × 10⁻⁴ J/m³, from above.
Total energy. U = 2 × u_eq × V = 2 × 3.52 × 10⁻⁴ × 1.083 × 10²¹ = 7.6 × 10¹⁷ J.
Check with the other formula. μ₀m²/12πR³ = 1.2566 × 10⁻⁶ × (7.69 × 10²²)² / (12π × 2.586 × 10²⁰) = 7.6 × 10¹⁷ J. The two agree.
Compare with electricity. The world used 30,856 TWh of electricity in 2024 (Ember Global Electricity Review 2025). That is 1.11 × 10²⁰ J a year, or 3.04 × 10¹⁷ J a day. Earth's field holds about 2.5 days of it, or 60 hours.
Compare with Earth's spin. NASA's Earth fact sheet gives the mass 5.972 × 10²⁴ kg, I/MR² = 0.3308 and a sidereal day of 23.93 hours. So I = 8.02 × 10³⁷ kg m², ω = 7.29 × 10⁻⁵ rad/s and ½Iω² = 2.1 × 10²⁹ J. The spin holds about 2.8 × 10¹¹ times more energy than the field outside the planet.
Where in space is the energy stored?
Since each shell's energy falls as 1/r⁴, the energy beyond any radius r falls as 1/r³. So the fraction of the outside energy that lies beyond r is (R/r)³:
Beyond 2R, one Earth radius above the surface: 1/8. So seven-eighths lies within one Earth radius of the ground.
Beyond 10R: 1/1,000.
That matters, because the pure dipole is wrong far out. The solar wind squashes Earth's field into the magnetosphere, whose sunward edge sits roughly 10 Earth radii from the centre (NASA: the magnetopause). Reshaping the field out there changes the total by about a tenth of a per cent.
What the 7.6 × 10¹⁷ J leaves out is the field inside Earth. The dipole part alone is about 6 times stronger at the top of the core, at 3,480 km, than at the surface, since (6,371/3,480)³ = 6.1. The field inside the core is generated by moving molten iron and is not directly measured, so it is not included here. The real total stored in the planet's magnetic field is larger than our number.
To go back over magnetic fields, dipoles and Earth's magnetism from the start, the Concept Library has a lesson for each idea and shows where it sits in the map.
Quick checklist
u = B²/2μ₀; Earth's equatorial surface field is about 30 µT, so u is about 0.35 mJ/m³.
A dipole's field is twice as strong over the poles as over the equator, at the same distance.
Total outside energy: U = μ₀m²/12πR³ = twice the equatorial energy density times Earth's volume.
With m = 7.69 × 10²² A m² (IGRF 2025), U ≈ 7.6 × 10¹⁷ J, about 2.5 days of world electricity.
u falls as 1/r⁶, so 7/8 of the energy lies within 2R of the centre.
The field inside Earth is not included, and the solar wind barely changes the outside total.



