Magnetic Field Energy Density Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

How magnetic fields store energy density

A magnetic field stores energy in the space around it, and the most compact way to describe that storage is the magnetic energy density u, measured in joules per cubic meter (J/m³). In coil, magnet, transformer, MRI, and air-gap calculations, that density is the key quantity because it lets you estimate total stored energy U once you know the volume V that the field occupies.

This calculator is set up for the uniform-field approximation. Enter whichever two quantities you know and it solves the others; if you start with B alone, the free-space formula gives u directly because magnetic energy density grows with the square of the flux density. That square-law means small changes in B can cause large changes in stored energy.

Magnetic energy-density formulas (SI units)

For free space, or for air when the approximation is acceptable, the magnetic energy density is:

Energy density: u = B2 / (2μ0)

In MathML form:

u = B 2 2 μ 0

Total energy stored in a region of approximately uniform field is:

Total energy: U = u · V

Where:

Solving for B, u, V, or U

Because the calculator is built around one magnetic energy-density relation, you can rearrange it in several directions depending on whether you begin with B, u, V, or U.

Materials and relative permeability

If the field energy sits mainly in a material instead of free space, the calculator uses the linear-medium form with permeability μ. That is often fine for a first look at a simple magnetic circuit or air gap, but it becomes shaky once the material response is no longer linear.

However, real magnetic cores often have μr that varies with B (nonlinear), and energy storage may be dominated by an air gap rather than the core itself. In those cases, the uniform, single-μ estimate can be misleading; see limitations and assumptions below.

Interpreting magnetic energy-density results

The calculator returns up to four linked quantities, so the cleanest way to read the output is to think of B as the cause, u as the density, V as the region, and U as the total stored magnetic energy.

A helpful physical interpretation is that energy density in J/m³ has the same units as pressure in pascals (Pa), because 1 Pa = 1 N/m² = 1 J/m³. For magnetostatics in free space, magnetic pressure is often written as p = u. This means a high-field magnet can exert mechanical stresses comparable to substantial fluid pressures, which is why coil reinforcement and structural design are so important for superconducting systems.

Worked example: 3 T field across 0.50 m³

Problem: Estimate the magnetic energy density and total stored energy for a region with B = 3 T and an approximately uniform field volume of V = 0.50 m³.

  1. Compute energy density

    Use u = B2/(2μ0).

    μ0 ≈ 4π × 10−7 H/m, so:

    u ≈ 32 / (2 · 4π × 10−7) = 9 / (8π × 10−7) ≈ 3.58 × 106 J/m³

  2. Compute total energy

    U = uV ≈ (3.58 × 106 J/m³)(0.50 m³) ≈ 1.79 × 106 J

Interpretation: 3.58 MJ/m³ corresponds to about 3.58 MPa of equivalent pressure. The total energy of about 1.8 MJ is large enough to matter for supports, quench protection, and fault analysis, even though the field is only approximated as uniform here.

Comparison table: how magnetic energy density grows with B

The quadratic dependence is easier to see in a table. The values below use the free-space formula u = B2/(2μ0). “Equivalent pressure” is numerically the same as u in SI units.

Magnetic field B (T) Energy density u (J/m³) Equivalent pressure (Pa)
0.01≈ 39.8≈ 39.8
0.10≈ 3,979≈ 3,979
1.0≈ 397,887≈ 397,887
5.0≈ 9.95 × 106≈ 9.95 × 106
10.0≈ 3.98 × 107≈ 3.98 × 107

Using this magnetic-field calculator effectively

Limitations and assumptions for magnetic energy density

This calculator is intentionally simple and is best used for quick magnetic-energy checks, teaching, and first-pass design intuition. Keep the following assumptions in mind before using the result for hardware decisions:

Enter any two of the quantities below to solve for the remaining magnetic-field values using the magnetic energy density relation u = B 2 2 μ 0 .

Provide any two magnetic-field values to calculate the remaining quantities.

Magnetic Field Stabilizer Mini-Game

Hold magnetic energy density inside a safe band while flux gusts push the field up and down.

Hold magnetic energy density in band

Click to Play

Tap right to energize, left to vent.

Keep u ≈ B² ⁄ (2μ₀) to avoid overload.