A magnetic field stores energy in space (and in materials) in a way that is directly analogous to the energy stored in an electric field. For many engineering calculations—coils, magnets, transformers, MRI systems, and plasma confinement—the most useful quantity is the magnetic energy density u, i.e., how many joules of energy are stored per cubic meter of field region (J/m³). Once you know u and the relevant volume V, you can estimate the total stored magnetic energy U via a simple multiplication.
This calculator is designed for the common “uniform-field” estimate: you provide any two of the variables and compute the others (with the special case that supplying B alone is enough to compute u, because u depends only on B for the free-space formula). The relationships are nonlinear because energy density scales with B2: doubling the magnetic flux density quadruples the energy density.
In free space (vacuum/air to a good approximation), the magnetic energy density is:
Energy density: u = B2 / (2μ0)
In MathML form:
Total energy stored in a region of approximately uniform field is:
Total energy: U = u · V
Where:
Depending on which values you know, you can rearrange the same relationships:
If the magnetic field energy is primarily stored in a material with permeability μ (instead of free space), a commonly used variant is:
Energy density in a linear medium: u = B2 / (2μ) where μ = μ0μr
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.
The calculator returns up to four related quantities:
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.
Problem: Estimate the energy density and total stored energy for a strong magnet region with B = 3 T and an approximately uniform-field volume of V = 0.50 m³.
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³
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 ~1.8 MJ is significant (comparable to the kinetic energy of a large vehicle at highway speed). In real magnets, not all the space has uniform field; this is an order-of-magnitude estimate for design intuition and quick checks.
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 |
This calculator is intentionally simple and is best used for quick estimates, sanity checks, and educational intuition. Keep the following assumptions in mind:
Enter any two of the quantities below to solve for the remaining values using the magnetic energy density relation .
Tune the coil current to keep magnetic energy density inside its safe window as flux gusts buffet the field.