Magnetic Energy Density Calculator – Energy Stored per Cubic Metre of Field

Use this free Magnetic Energy Density Calculator to find how much energy is stored in each cubic metre of a magnetic field, u = B² ÷ (2μ0), and the total energy stored in a given volume of the field.

B a volume V of field stores U = u × V joules energy density u = B²/(2μ₀)

Formula

u = B² ÷ (2 × μ0)  •  u in joules per cubic metre (J/m³), with μ0 = 4π × 10⁻⁷. Because u grows with the square of B, doubling the field stores four times as much energy in the same volume. Multiply u by the volume to get the total stored energy U.

How to use

Worked example

An MRI magnet produces a field of B = 1.5 T.
u = B² ÷ (2μ0) = 2.25 ÷ (2 × 4π × 10⁻⁷) = 2.25 ÷ 2.513 × 10⁻⁶ = 895,200 J/m³ (about 8.95 × 10⁵ J/m³).
In just V = 0.002 m³ (two litres) of that field, the stored energy is U = u × V = 895,200 × 0.002 ≈ 1,790 J ≈ 1.79 kJ — roughly the kinetic energy of a running adult, packed invisibly into a two-litre volume. This is why quenching a superconducting magnet is such a violent event.

FAQ

Where does this energy come from?
From the power supply that built the field up. While the current in a coil is rising, the supply does work against the back-EMF; that work is stored in the field and is returned when the field collapses — which is why switching off a big inductor makes a spark.

Is there an electric version of this formula?
Yes — an electric field stores u = ½ε0E² per cubic metre. In an electromagnetic wave the energy is shared equally between the electric and magnetic parts.

How does this relate to an inductor's stored energy?
They are the same energy counted two ways: U = ½LI² for the circuit, or U = u × V = B²V/(2μ0) for the field inside the coil. Both give the same joules.