The magnetic energy density equation is uB = B² / (2μ). It calculates the amount of energy stored per unit volume within a magnetic field. To give you an immediate baseline: a 1 Tesla magnetic field in a vacuum stores roughly 398 kJ/m³. If you are designing inductors, transformers, or pulsed power systems, this formula dictates your physical volume constraints. Below is the complete breakdown, unit tracking, and the exact failure modes you will hit on the bench when you ignore its assumptions.

The Magnetic Energy Density Equation: Symbols and Assumptions

The standard form of the equation for a linear, isotropic medium is:

uB = B² / (2μ0μr)

Symbol Definition and SI Units
Symbol Parameter SI Unit Typical Value / Notes
uB Magnetic Energy Density Joules per cubic meter (J/m³) The target metric for inductor sizing.
B Magnetic Flux Density Tesla (T) Often called the B-field. 1 T = 10,000 Gauss.
μ0 Vacuum Permeability T·m/A or H/m 4π × 10⁻⁷ (approx. 1.2566 × 10⁻⁶)
μr Relative Permeability Dimensionless Air = 1. Ferrite = 20-5000. Silicon steel = ~4000.

When the Formula Applies (and When It Doesn't)

This equation assumes a linear, isotropic medium under quasi-static conditions. It applies perfectly to air-core inductors, vacuum environments, and magnetic fields well below the saturation point of ferromagnetic materials. It is the foundational math for calculating energy stored in an inductor at the field level.

It fails when a ferromagnetic core approaches saturation. As the B-field nears the material's saturation limit (e.g., 1.6 T for silicon steel), μr is no longer constant; it drops drastically toward 1. If you plug a static μr into the equation near saturation, your calculated energy density will be wildly optimistic.

Rearranging the Formula for Bench Design

On the bench, you rarely solve for uB directly. You usually know the energy you need to store and the volume you have available, or you need to find the maximum B-field before core saturation. Here are the rearranged forms:

Solving for B (Max Flux Density):
B = √(2 · uB · μ0 · μr)
Use this to verify your core won't saturate given a required energy density.

Solving for μr (Required Core Material):
μr = B² / (2 · uB · μ0)
Use this to select a core material when B and volume are constrained.

Solving for Volume (V) given Total Energy (U):
Since U = uB · V, then V = U / uB = (2 · U · μ0 · μr) / B²
Use this to size the physical dimensions of your inductor or electromagnet.

Solved Problems: Tracking Units from Air to Ferrite

Abstract formulas are useless if you drop a unit conversion. Here are two bench scenarios with explicit dimensional analysis.

Problem 1: Air-Core Solenoid for a Metal Detector

Given: An air-core search coil generates a peak B-field of 5 mT (0.005 T).
Find: The magnetic energy density (uB).
Assumptions: μr for air is 1.

Step 1: Setup the equation
uB = (0.005 T)² / (2 · 4π × 10⁻⁷ T·m/A · 1)

Step 2: Calculate the numerator and denominator
Numerator: 0.000025 T²
Denominator: 2.513 × 10⁻⁶ T·m/A

Step 3: Divide and track units
uB = 0.000025 / 2.513 × 10⁻⁶ = 9.95 J/m³
Unit check: T² / (T·m/A) = T · A / m. Since 1 Tesla = 1 (V·s)/m² and 1 Ampere = 1 C/s, this reduces to (V·C)/m³. Because 1 Volt-Coulomb = 1 Joule, the unit simplifies perfectly to J/m³.

Problem 2: Powdered Iron Choke in a Switch-Mode Power Supply

Given: A powdered iron core (μr = 75) operates at a peak B-field of 0.8 T.
Find: The energy density and compare it to the air-core example.

Step 1: Setup
uB = (0.8 T)² / (2 · 4π × 10⁻⁷ T·m/A · 75)

Step 2: Calculate
Numerator: 0.64 T²
Denominator: 1.885 × 10⁻⁴ T·m/A

Step 3: Result
uB = 0.64 / 1.885 × 10⁻⁴ = 3,395 J/m³ (or 3.4 kJ/m³).
Insight: Even though the B-field is 160 times stronger than Problem 1, the energy density is only 341 times higher. The higher permeability of the powdered iron actually suppresses the energy density relative to the B-field squared. This is a critical concept for power magnetics design.

Real-World Walkthrough: When the Core Saturates and the Math Breaks

Let's look at a common failure mode when builders try to miniaturize pulsed inductors for applications like capacitor-discharge spot welders. For deeper theory on why inductors behave this way, refer to the All About Circuits magnetics textbook.

  1. The Setup: You need to store 5 Joules of energy in an inductor. To keep the footprint small, you select a toroidal ferrite core with a volume of 50 cm³ (50 × 10⁻⁶ m³) and a high relative permeability (μr = 2000). You want to know what B-field is required to hit 5 Joules.
  2. The Numbers: First, find the required energy density: uB = 5 J / (50 × 10⁻⁶ m³) = 100,000 J/m³. Next, rearrange for B: B = √(2 · 100,000 · 4π × 10⁻⁷ · 2000). The math spits out B = 22.4 Tesla. You immediately realize 22.4 T is physically impossible for bench components, so you scrap the high-permeability core and use an air core (μr = 1) instead. The math now says you need B = 0.5 T, which is easily achievable with a heavy pulse of current.
  3. The Outcome: You wind a massive air-core coil, pulse 500 Amps through it to hit 0.5 T, and successfully store the 5 Joules. The spot welder fires perfectly.
  4. What Went Wrong (and the Fix): Why did the high-μ ferrite core require an impossible 22.4 T? Because magnetic energy is stored in the field's reluctance. High permeability means low reluctance. A high-μ core "absorbs" the magnetic flux easily, meaning it stores very little energy per unit of B-field. In professional power supply design, engineers deliberately grind air gaps into ferrite cores. The air gap (μr = 1) dominates the reluctance and acts as the primary energy storage reservoir, preventing the core from saturating while allowing the coil to store high energy density. If you had used the ferrite core without an air gap, it would have saturated at ~0.3 T, storing a fraction of a Joule and likely blowing your switching MOSFETs due to the sudden collapse of inductance.

Common Unit Traps and Realistic Magnitudes

The most frequent reason this equation yields garbage data on the bench is unit mismanagement. Watch out for these specific traps:

  • The Gauss Trap: Datasheets for permanent magnets often list remanence (Br) in Gauss. 1 Tesla = 10,000 Gauss. If you plug "12,000" into the B² term thinking it's Tesla, your calculated energy density will be off by a factor of 10⁸. Always convert to Tesla first.
  • The Volume Trap: Energy density is strictly J/. If your core volume is measured in cm³, remember that 1 m³ = 1,000,000 cm³ (10⁶). Multiplying your J/m³ result by cm³ without dividing by 10⁶ will overstate your total stored energy by a million times.
  • The Permeability Trap: μ0 is roughly 1.256 × 10⁻⁶. Do not confuse the absolute permeability (μ = μ0 · μr) with relative permeability (μr). If a datasheet lists "Permeability: 125", verify if they mean μr (dimensionless) or μ (in μH/cm). Assume μr unless units are explicitly printed.

What Does a Realistic Answer Look Like?

To calibrate your intuition, here is what the magnetic energy density equation outputs for real-world magnetic fields:

Source / Environment B-Field (Tesla) Medium (μr) Energy Density (J/m³)
Earth's Magnetic Field 0.00005 T (50 µT) 1 (Air) 0.001 J/m³
Neodymium Magnet (Surface) 1.2 T 1 (Air gap) ~572,957 J/m³ (573 kJ/m³)
Medical MRI Scanner 3.0 T 1 (Air/Bore) ~3,580,986 J/m³ (3.58 MJ/m³)
Typical Power Transformer Core 1.5 T ~4000 (Silicon Steel) ~447 J/m³

Notice the last row: despite a massive 1.5 T field inside a transformer core, the actual energy density stored in the steel is tiny (447 J/m³) because the high permeability shunts the energy. The real energy in a transformer is transferred across the gap, not stored in the steel. Keep this physical reality in mind the next time you apply the magnetic energy density equation to a ferromagnetic component.