Energy Stored in Magnetic Fields
The relay coil of Self-Inductance ended its worked example holding one joule that had to go somewhere when the switch opened. This article answers the question that example left standing: where, physically, was that joule the microsecond before? Not in the electrons — their kinetic energy in a copper winding is nanojoules. Not in "the circuit" as an accounting abstraction. The joule was in space: distributed through the volume around the windings, at a density of joules per cubic metre, wherever the magnetic field reached. Cut the current and the field collapses inward, handing its energy back to the charges; that reflux is the kilovolt kick. The argument is a ladder with three rungs, and climbing it is the business of this article. Rung one is circuit bookkeeping: the work done driving current into an inductor against its back-EMF is — Lenz's opposition, integrated. Rung two rewrites the same energy in terms of sources and potential, , honest but still clinging to the currents. Rung three lets go: one integration by parts relocates every joule into the field itself, , integrated over all space, no reference to any circuit at all. Three expressions, one number, escalating ontology. The third rung matters far beyond magnets. Paired with electrostatics' , it says the electromagnetic field is a physical system with its own energy inventory — the premise on which Poynting's Theorem will build energy flow, and without which light carrying energy across vacuum (Maxwell's Equations in Vacuum, four articles hence) would be unintelligible. It also settles a famous verbal paradox: magnetic forces do no work, yet a 6-megajoule MRI magnet is plainly storing something. Both statements are true, and this article is where they stop conflicting.
- Charging an inductor against its back-EMF banks work: . The energy is recoverable — this is storage, not dissipation.
- The same energy, rewritten via sources: ; and relocated into the field: — energy density , no circuit mentioned.
- The full electromagnetic density is ; at practical field strengths magnetism wins by four orders of magnitude ( T stores J/m³; air-breakdown manages 40 J/m³) — why energy tech that stores in fields stores magnetically.
- The coax computed by energy reproduces Self-Inductance's flux answer exactly, and adds the piece flux methods miss: the internal inductance per metre, geometry-independent.
- "Magnetic forces do no work" survives: brokers energy between mechanical and electrical accounts without ever paying from its own; the stored energy was deposited by electric fields fighting induced EMFs during ramp-up.
- KEY IDEA: the work done against Lenz's opposition while establishing a current is stored in space at density — the field, not the circuit, is the reservoir.
Establishing a current stores the work done against the back-EMF in the magnetic field itself: — one energy, three descriptions, with the field-density form the fundamental one.
Where this lives today
Superconducting magnetic energy storage (SMES) is this article commercialized with no moving parts: persistent coils bank grid energy at densities and return it in milliseconds, providing frequency stabilization and bridge power where response time beats capacity. At the opposite end of duty cycle, every tokamak is a magnetic energy warehouse before it is anything else — ITER's toroidal-field system stores about 41 GJ, four orders beyond the MRI of worked example 2, and its quench-protection engineering (detection in milliseconds, energy extraction to massive dump resistors) is the direct scale-up of the hospital's vent duct. Fusion's central-solenoid "flux swing" is even a working use of the recoverable character of : energy parked in the field is withdrawn to drive the plasma current. The everyday deployment is smaller and everywhere: the energy-transfer inductors of every buck, boost, and flyback converter shuttle microjoules-to-millijoules of into and out of ferrite tens of thousands to millions of times per second — a phone charger is a magnetic-field energy pump with a duty cycle. And the density comparison of worked example 2 quietly runs battery-adjacent debates: field-based storage (magnetic or electric) trades energy density away for power density and cycle life, which is why supercapacitors and SMES bracket, rather than replace, chemistry. The field-energy concept itself, meanwhile, does its deepest work out of sight: every antenna-design tool and every optical simulation integrates as routinely as a bank sums accounts — the third rung of the ladder, treated as infrastructure.
Origins · 1 minWilliam Thomson (Lord Kelvin) and how this was discovered
Thomson — Kelvin from 1892, the first scientist ennobled for physics — is the figure through whom energy became the organizing currency of physical theory, and magnetic energy specifically got its first honest accounting. In the early 1850s, fresh from co-founding thermodynamics (his absolute temperature scale, the Joule–Thomson collaboration), he computed the "mechanical value" of distributions of electricity and magnetism: the work required to assemble a magnetic configuration, expressed as a volume integral over the field region — the direct ancestor of this article's , written before Maxwell's equations existed. His method of images, his analogy machine (heat flow ↔ electrostatics) and his insistence that fields carry energy shaped the young Maxwell decisively. Kelvin's engineering face made the same points at industrial scale: his telegraph theory ( signal retardation) and instrument patents made the 1866 Atlantic cable work, minting him the fortune that funded a 69-year Glasgow professorship. The kelvin honors the temperature scale; this chapter honors the ledger — assembling fields costs work, and the work is stored where the field is.
The physical picture
Watch a superconducting magnet being energized. For forty minutes a power supply pushes current against the coil's back-EMF — real work, megajoules of it, metered at the wall. Then the supply is disconnected, a superconducting switch closes the loop, and the magnet persists: no source, no dissipation, field at full strength, for years. The megajoules are still there — the magnet can be de-energized through a resistor and every joule recovered as heat. During those years of persistence, where does the inventory sit? There is no current change, no EMF, no power flow. Only the field remains — and the field is exactly where the energy is: per cubic metre, roughly a megajoule per cubic metre at MRI strength, sitting in the bore and the windings' throat like compressed spring-stuff.
Two sanity checks calibrate the picture. Scale: the density at one tesla is J/m³ — the kinetic energy of a car at highway speed, per cubic metre of field. Electric fields cannot compete in air: dielectric breakdown caps near V/m, where is a feeble 40 J/m³. The four-orders-of-magnitude gap is why grid-scale electromagnetic energy storage (SMES), fusion-reactor energy inventories, and every pulsed-power bank that matters are magnetic technologies. (The fields tie only when — a proportion nature reserves, suggestively, for light; Maxwell's Equations in Vacuum will cash that observation.) Honesty: who deposited the energy, given the theorem — standing since the Lorentz-force chapter — that magnetic forces do no work? The ledger of Lenz's Law already answered. During ramp-up, the changing flux induces an electric field (an Induced Electric Field, exactly the species of two articles ago) that opposes the current; the power supply pushes charges through that electric field, and it is this electric force that does the work, joule by joule, at rate . The magnetic field orchestrates — it is the flux whose change makes the induced — but the work is done against , and the deposit lands in the field configuration. At constant current: no induced , no work, inventory frozen. The theorem survives untouched; only the slogan "magnetic fields have no energy" (which was never the theorem) dies.
The ladder, rung by rung
Rung one is the charging ledger, inherited directly from Self-Inductance. Raising a current against the back-EMF requires the source to deliver power ; integrate from zero:
where: — the work banked (joules), fully recoverable on ramp-down (run the integral backwards: the collapsing flux drives the current, and the coil returns the energy — the flyback diode's 1.0 J was exactly this account being emptied through a resistor). Note what (1) does not say: where the energy is. is a terminal quantity; the ledger knows deposits and withdrawals, not warehouses. For several coupled circuits the same charging audit (performed in Mutual Inductance, recalled here rather than re-derived) generalizes to with — a quadratic form whose positivity gave that article its coupling bound. Rung two dresses the ledger in field clothing. Write (Self-Inductance's equation 5), so ; promote the filament to a distribution ():
where: the integral runs over the current-carrying region only — the energy appears as sources sitting in their own potential, the exact magnetic twin of electrostatics' . Same virtues (computable, general), same philosophical defect: it looks like the energy lives in the wires. The electrostatic chapter faced the identical ambiguity and resolved it by integration by parts; we now do the same.
The goal is the third rung: , derived from equation (2), with the energy density read off. The strategy is one vector-calculus integration by parts: trade for (Ampère), then shuffle the derivative from onto with a product rule, paying a surface term. The watch-point is that surface term: the whole claim "the energy is in the field, everywhere" rests on it dying at infinity, so we audit its decay honestly rather than waving it away. Magnetostatics assumed throughout (steady currents; the time-dependent generalization is Poynting's, deferred).
Step 1. Eliminate the current via Ampère's law, :
Step 2. Deploy the product rule , i.e. , using :
the divergence term converted to a surface integral over the boundary of the integration volume.
Step 3. Audit the surface term as recedes to infinity. For any localized current distribution, the far field is at worst dipolar: and , so the integrand falls as while the surface grows as — the term dies as . Gone, and fast. Why the audit matters: at finite radius the split between the volume and surface pieces is genuinely different — take the volume to be just the wire and virtually all of (2)'s energy sits in the "surface" term. Only over all space is the assignment unambiguous. The field form is not merely another formula; it is a claim about where energy resides, and the claim is licensed precisely by the vanishing of this term.
Step 4. Read off the result and its density:
Positive everywhere, quadratic in the field, and — decisive point — evaluable without knowing which currents made the field, or whether any still exist. Together with the electrostatic , the total electromagnetic density is — the inventory whose local conservation law (with the flow term that this density demands) is the opening theorem of the Conservation laws chapter (Poynting's Theorem, deferred by name). Inside magnetizable matter the density is amended to , with the honest hysteresis fine print owned by Magnetic Energy in Materials (E5). The surface-term decay goes as , confirmed by tracing and explicitly. Dimensional check: ✓. The solenoid consistency check below and worked example 1 confirm (3) against (1) numerically.
The mandatory consistency check, in two lines: a long solenoid ( inside, zero outside) filled with its own density gives ✓ — rung three reproducing rung one through Self-Inductance's own . Worked example 1 runs it with the bench numbers. The deeper test is a geometry where the field is not uniform, and where the field method can see something the flux method missed. That is the coax — and settling it discharges two promissory notes issued by the previous article.
Go deeper · Derivation B · 2 minThe coax by energy — flux method confirmed, and the internal inductance it could not see
The goal is double: recompute the coaxial cable's inductance per unit length from , confirming Self-Inductance's flux-method answer — two independent routes, one number, the chapter's standing habit — and then capture the contribution that article explicitly deferred: the energy stored inside the metal of the inner conductor, which no flux ribbon between the conductors can see. The strategy is to integrate the density shell by shell, in the gap and then in the metal (current spread uniformly over the inner conductor's cross-section). Watch the internal piece: its answer will be independent of every geometric parameter — a small classic.
Step 1. The gap contribution, , where (Ampère, full current enclosed):
Step 2. Equate to and read off:
— identical to the flux-ribbon answer, as it must be: for , the same . Two methods, two different integrals (one over a ribbon of flux, one over a volume of density), one physical constant. The cross-check the previous article promised is closed.
Step 3. Now the piece the ribbon could not reach: inside the inner conductor, , uniform current density gives (Ampère with partial enclosure — the fat-wire interior of E4):
Step 4. Read off the internal inductance:
independent of the wire's radius — the in the density integral cancels the in the field's normalization. Every round wire carrying uniformly distributed current, whatever its gauge, adds the same 50 nH/m of internal inductance. Two comments earn their keep. First, this is the flux method's blind spot made visible: field lines inside the metal link only part of the current, and the honest flux-linkage bookkeeping (weighting each line by the fraction linked) is precisely what the energy integral performs automatically — the energy method's characteristic advantage. Second, the fine print: at high frequency the skin effect expels current (and field) from the conductor's interior, and melts away — one reason cable inductance is quoted "at DC" or "at ", with the frequency machinery deferred to the wave chapter's treatment of conductors. The gap integral gives at , agreeing with the flux-ribbon result. The integral and the cancellation that make geometry-independent have been checked explicitly.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| uniform-field volume (solenoid bore) | density × volume; reproduces exactly | |
| field across an annulus (coax gap) | the logarithm of every annular geometry, now in energy form | |
| inside a round conductor | , always | geometry-free 50 nH/m; flux methods miss it, energy methods don't |
| high frequency (skin effect) | current expelled from the metal takes its stored energy with it | |
| and both present | equal shares only when — the proportion light will turn out to obey | |
| practical air-gap storage | breakdown caps ; magnetic storage wins — SMES, pulsed power | |
| magnetizable media | (linear) | the honest in-matter form; hysteresis losses owned by E5 |
| persistent superconducting loop | frozen with the field | inventory without traffic: storage needs no ongoing work |
Worked examples
1 · The bench solenoid's inventory, audited twice (confidence builder)
The solenoid of Self-Inductance ( turns/m, cm, cm, so mH) carries A. Find the stored energy by the circuit ledger and by the field density, and compare.
Step 1. Circuit ledger: .
Step 2. Field route. Interior field: . Density: .
Step 3. Volume: . Inventory: ✓ — rung three equals rung one to every displayed digit, with the ideal-solenoid caveat (exterior field neglected) costing only the same end-corrections that the formula itself already ignores.
Step 4. Read the density for scale: 2.5 J/m³ at 2.5 mT. Density scales as , so an MRI's 1.5 T — six hundred times the field — stores times the density. Which is example 2.
2 · The MRI magnet: megajoules in the bore (exam level)
A 1.5 T superconducting MRI magnet has H and operates in persistent mode at A. Find the stored energy, the peak energy density, and assess the quench stakes (liquid helium's volumetric latent heat ≈ 2.6 kJ per litre).
Step 1. Inventory: — the energy of about 1.5 kg of TNT, held silently, sourcelessly, in the field of a hospital instrument.
Step 2. Where it sits: peak density — nearly a megajoule per cubic metre through the bore and winding region, consistent with several cubic metres of high-field volume holding the 6.3 MJ.
Step 3. The quench scenario — the warning box of Self-Inductance at industrial scale. If any winding segment goes normal (resistive), the 6.3 MJ starts dissipating in the magnet. Dumped into the helium bath alone it would boil of liquid helium — the entire cryostat, explosively, which is why every MRI room has a quench vent duct to the roof. Real quench protection (heaters that deliberately spread the normal zone, dump resistors that extract energy to an external mass) is engineering built entirely on this article's two formulas: for the stakes, for where the reservoir presses.
Step 4. The electric comparison that motivates the whole technology: to match J/m³ electrostatically requires V/m — beyond air breakdown, achievable in no macroscopic gap. Note the number : matching densities demands exactly , the ratio that free electromagnetic waves — and only they — maintain everywhere. The chapter is three articles from explaining why.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §7.2.4 · Jackson, Classical Electrodynamics, 3rd ed., §5.16–5.17 · Purcell & Morin, Electricity and Magnetism, 3rd ed., Ch. 7 · Zangwill, Modern Electrodynamics, §13.6. The solenoid energy is consistent with ; the coupling bound follows by completing the square (treated in Mutual Inductance); and . The constant is the standard CODATA value. The coupled-pair energy and derivation are treated in Mutual Inductance. Worked numbers: bench solenoid (0.178 mH, 2.0 A): = 0.36 mJ both routes ( = 2.5 mT, = 2.5 J/m³, vol m³); MRI ( = 50 H, 500 A): = 6.25 MJ, (1.5 T) = J/m³, quench 2400 L LHe at 2.6 kJ/L; density comparison at 1.5 T vs 3 MV/m; equal-density condition V/m at 1.5 T; internal inductance H/m.
Builds on: Self-Inductance · Faraday's Law of Induction · Electromotive Force · Lenz's Law
Leads to: Mutual Inductance · Maxwell's Equations in Vacuum · The Displacement Current
Is the energy REALLY in the field, or is that just one bookkeeping choice among several?
In magnetostatics, strictly, it is a choice: all three rungs give the same total for any complete system, and no static experiment can probe where the joules "sit" — only totals and differences are measured. The field assignment earns its privileged status dynamically: once fields change, energy demonstrably moves through empty space (radiation reaches you from the Sun across vacuum containing no and no circuits), and only the local density with its flow supports a local conservation law — energy accounted continuously, everywhere, with no teleporting. General relativity then makes the assignment binding: energy density gravitates locally, so the field's energy has to be somewhere. The honest summary: statics permits agnosticism; electrodynamics and gravity vote decisively for the field.
If magnetic forces do no work, what physically pushes the energy in during ramp-up?
The induced electric field — the species built two articles ago. While the current rises, the changing flux threads the winding with an azimuthal opposing the current (Lenz). The power supply drives each electron against that electric force, and electric forces along velocities are exactly what "doing work" means. Rate: ; integrated, . The magnetic field's role is architectural — it is the growing flux whose change generates that — but every joule crosses from the supply into the field through electric force acting on charge. Run time backwards for discharge: the collapsing flux reverses the induced , which now pushes the charges, returning the inventory.
Why is the internal inductance the same 50 nH/m for every wire, thick or thin?
A scaling conspiracy worth seeing once. Inside a wire of radius with uniform current density, the field at radius is . Squaring and integrating over the cross-section: — the 's cancel exactly. Physically: a thicker wire has weaker interior field (same current, more spread) but more volume storing it, and the two effects trade off perfectly for the integrand. The result, per metre, is one of electromagnetism's few geometry-free constants. It is also fragile: raise the frequency and the skin effect crowds the current into a surface layer, gutting the interior field — internal inductance is a DC-and-low-frequency possession that RF engineers correctly ignore.
Can I always get the stored energy back, or is some of it lost like in a resistor?
The field inventory itself is fully recoverable — that is the deep difference between and . Ramp a lossless (superconducting) coil up and down and the supply's ledger closes exactly; the persistent MRI magnet holds its megajoules for years without topping up. Losses in real transactions come from the plumbing: winding resistance (Joule heat during every ramp), eddy currents induced in nearby metal, and — in ferromagnetic cores — hysteresis, where the magnetization's history-dependence eats a fixed area of the – loop per cycle (Hysteresis and Magnetic Energy in Materials, E5, own that story). Engineering folklore states it cleanly: air gaps store energy, iron guides flux, resistance burns money.
How does a fixed density B²/2μ0 explain magnetic forces, like two attracting coils?
Through the oldest trick in energy methods: force is the gradient of stored energy at fixed sources or fixed fluxes. Move two attracting coils closer and the total changes; the force is (with the standard care about what is held constant — currents held fixed by sources flip the sign bookkeeping via the co-energy). Faraday's beautiful visual for it: field lines carry tension along themselves and pressure sideways, both of magnitude — attracting coils are linked by stretched lines pulling them together. That line-tension picture is quantified by the Maxwell stress tensor, the field-momentum machinery of the E7 chapter (The Maxwell Stress Tensor), where this article's density becomes one diagonal entry of a bigger object.
Why do power supplies for big magnets need "dump resistors," and how big must one be?
Because de-energizing means relocating the full somewhere on purpose, at a controlled voltage. Open the circuit abruptly and Self-Inductance's kick chooses the somewhere for you (an arc). A dump resistor across the magnet sets both the discharge clock and the peak terminal voltage — a genuine design squeeze: fast extraction (big ) means high voltage stressing the winding insulation; gentle voltage means slow extraction, dangerous if a quench is spreading. ITER-class systems resolve it with counterpulsed breakers and resistor farms sized in tens of gigajoules — civil-engineering-scale versions of the flyback-diode-vs-zener trade from Self-Inductance's seed-circuit discussion. Sizing rule of thumb: the resistor mass must absorb within its allowed temperature rise — for the worked MRI, 6.3 MJ into steel at ~0.5 kJ/(kg·K) with a 100 K rise means ≈ 130 kg of resistor.
Does the B²/2μ0 formula work inside magnetic materials too?
With amendments that matter. For linear media the density generalizes to — note , not : at fixed , iron stores less energy per volume than vacuum, which is precisely why gapped inductor cores concentrate their stored energy in the air gap (vacuum is the better spring; iron is the better duct). For ferromagnets driven around their hysteresis loop, no single-valued density exists at all: the work to reach a given depends on the path, and each full cycle deposits the loop's enclosed area as heat. The clean statements and their proofs are E5 property (Magnetic Energy in Materials, Hysteresis); this article's vacuum formula is the foundation they amend.