Energy density in a magnetic field is the amount of potential energy stored per unit volume within a magnetic field, measured in joules per cubic meter (J/m³). If you are designing switch-mode power supplies, filtering chokes, or wireless charging coils, this single metric dictates the physical size of your magnetic components. It determines whether your inductor fits on a 10x10mm PCB footprint or requires a massive, through-hole toroid. In practical circuit design, energy density changes how we physically construct inductors—specifically, it is the exact reason we intentionally cut air gaps into ferrite cores to prevent saturation and maximize storage capacity.
The Core Formula and the Flux Density Confusion
To calculate the energy density (u) in a magnetic field, you need to know the magnetic flux density (B) and the permeability of the material (μ). The governing equation is:
u = B² / (2μ₀μᵣ)
Where:
• u = Energy density (J/m³)
• B = Magnetic flux density (Tesla, T)
• μ₀ = Permeability of free space (4π × 10⁻⁷ T·m/A)
• μᵣ = Relative permeability of the core material (dimensionless)
The most common mistake junior engineers and hobbyists make is confusing energy density (J/m³) with magnetic flux density (Tesla). Flux density (B) simply measures how tightly packed the magnetic field lines are in a given area. Energy density (u) is the actual thermodynamic work potential stored in that volume. Think of flux density as the water pressure in a pipe, while energy density is the total kinetic energy of the water in a specific one-foot section of that pipe.
Looking at the formula, you will notice a counterintuitive reality: energy density is inversely proportional to permeability (μᵣ). For a fixed flux density (B), a material with a lower permeability will store more energy per unit volume. This mathematical quirk is the entire basis of modern power inductor design.
Worked Numeric Example: Sizing an Inductor Air Gap
Let’s apply this to a real-world scenario. You are designing a buck converter and need an inductor that can safely store 50 microjoules (50 × 10⁻⁶ J) of energy per switching cycle without saturating the core.
You select a standard TDK N87 ferrite core. At 100°C, N87 has a saturation flux density (Bsat) of roughly 0.35 T. To maintain a safe 20% margin, we will design for a peak flux density of B = 0.25 T.
Step 1: Calculate energy density in the solid ferrite.
N87 has an initial relative permeability (μᵣ) of about 2,000. Let's see what the energy density would be if we used the solid, ungapped core:
- u = (0.25)² / (2 × 4π × 10⁻⁷ × 2000)
- u = 0.0625 / 0.005026
- u ≈ 12.4 J/m³
Step 2: Calculate the required core volume.
Volume (V) = Total Energy / u
V = (50 × 10⁻⁶ J) / 12.4 J/m³ ≈ 4.03 × 10⁻⁶ m³, or 4,030 mm³.
That requires a massive, heavy, and expensive ferrite core.
Step 3: Introduce an air gap.
Because energy density is inversely proportional to permeability, we grind a physical air gap into the center leg of the ferrite core. In the air gap, μᵣ = 1. Let's calculate the energy density inside that tiny gap:
- ugap = (0.25)² / (2 × 4π × 10⁻⁷ × 1)
- ugap = 0.0625 / (2.513 × 10⁻⁶)
- ugap ≈ 24,868 J/m³
Step 4: Calculate the required gap volume.
Vgap = (50 × 10⁻⁶ J) / 24,868 J/m³ ≈ 2.01 × 10⁻⁹ m³, or 2.01 mm³.
By forcing the magnetic field to cross a tiny air gap, the energy density increases by a factor of 2,000. Almost all the energy in a gapped inductor is stored in the air gap itself, allowing us to use a much smaller, cheaper ferrite core.
Where You Meet This in Practice
Understanding magnetic energy density moves you from blindly copying reference designs to actually engineering magnetics. Here is where this concept physically manifests on your workbench:
- Inductor vs. Transformer Construction: Transformers are designed to transfer energy, not store it. Therefore, they use ungapped, high-permeability cores to keep energy density (and thus stored energy) as close to zero as possible. Inductors are designed to store energy, which is why they feature physical gaps, distributed powdered iron, or Kool Mµ materials with lower effective permeability.
- Flyback Converters: In a flyback topology, the "transformer" is actually a coupled inductor. It must store the entire energy packet during the MOSFET's on-time. If you use a standard ungapped transformer core in a flyback circuit, the low energy density limit will cause immediate core saturation, resulting in a catastrophic short circuit and a destroyed switching MOSFET.
- Superconducting Magnetic Energy Storage (SMES): At the grid scale, SMES systems use superconducting coils cooled by liquid helium to push B fields up to 5–8 Tesla. Because energy density scales with the square of B, doubling the field strength quadruples the energy density. According to the principles of magnetics design detailed by All About Circuits, pushing these limits requires immense mechanical containment, as the magnetic pressure tries to physically tear the coil apart.
Frequently Asked Questions
How does magnetic energy density compare to electric field energy density?
Electric field energy density (stored in capacitors) is calculated as u = ½ε₀εᵣE², where E is the electric field strength in volts per meter. In practical component design, magnetic fields generally achieve much higher volumetric energy densities than electric fields. This is because dielectric breakdown (arcing/sparking) limits the maximum E field in capacitors much sooner than magnetic saturation limits the B field in engineered inductor gaps. This is why a 100µH inductor storing 1mJ is physically much smaller than a capacitor bank storing 1mJ at typical PCB voltage levels.
Why does core saturation limit magnetic energy storage?
When a ferromagnetic core reaches its saturation flux density (Bsat), all the magnetic domains in the material are aligned. The relative permeability (μᵣ) violently drops from thousands down toward 1 (the permeability of air). When this happens, the inductance collapses. The component can no longer store additional energy linearly; instead, the excess electrical energy converts directly into heat, and the current through the winding spikes exponentially. For a deeper look at the physics of this failure mode, the Georgia State University HyperPhysics database provides excellent baseline models on magnetic energy limits.
What is the maximum theoretical energy density of a magnetic field?
The theoretical limit is not electrical, but mechanical. The energy density of a magnetic field exerts an outward physical pressure (Lorentz force) on the coil windings, calculated as P = B² / (2μ₀). At around 100 Tesla, the magnetic pressure reaches roughly 4 × 10⁹ Pascals (about 40,000 atmospheres). This exceeds the tensile yield strength of the strongest bulk materials on Earth, including carbon fiber composites and maraging steel. Beyond this threshold, the physical containment vessel will rupture, and the coil will explode, capping the maximum practical energy density of room-temperature magnetic storage.






