Magnetic Energy in Materials
The electric-materials chapter closed its books with an energy ledger — Energy Stored in Dielectric Systems, where settled what a capacitor full of dielectric actually costs and which "energy" a given formula counts. This article is that ledger's magnetic twin, and it inherits the twin's discipline: derive the work increment honestly, state whose work it counts, and only then spend it on the chapter's outstanding bills. The bills are substantial. Hysteresis quoted a loss law — heat equal to the loop's area, every cycle — with the derivation explicitly deferred here; we pay it, and see exactly why a linear material's loop encloses nothing. Ampère's Law for H found that a 2-millimetre air gap in a half-metre iron ring eats 95% of the winding's ampère-turns; we audit the same ring's energy and find the same 95% sitting in the same gap — no coincidence, and the derivation shows why. And Hysteresis's load line named the figure of merit for permanent magnets while owing the reason; the gap-budget theorem below is the payment: the product is joules of usable gap field per cubic metre of magnet, which is why the magnet industry's entire price list is a staircase of energy products. One honesty flag flies over the whole article. The work increment's derivation needs one line of electrodynamics — the fact that a changing induces an electric field the battery must fight. That law is Faraday's, owned five articles downstream by Faraday's Law of Induction. We borrow it at quoted, one-line level, exactly as Diamagnetism borrowed Lenz's rule before induction was formalized: the loan is flagged, the collateral is that every consequence drawn here survives the later derivation intact.
- Raising the field in a magnetizable medium costs the free-current sources — the exact magnetic twin of the dielectric ledger's , with playing the supply-side bookkeeper it has played all chapter.
- For linear media the increments integrate to : at the same , an iron core stores times less energy density than air — the material supplies the magnetization, the battery only the free current.
- Which-energy doctrine (the E3 twin's, prosecuted for magnetism): counts work done by external circuits; it silently folds in the (recoverable, in linear media) work of aligning the material, and it excludes the internal atomic energy that built the moments themselves.
- The gapped ring audited: at T, J/m³ versus J/m³ — the 2 mm gap holds 95% of the energy, the same 95% as its share of the ampère-turns, because both budgets distribute as along the ring.
- Cycling a ferromagnet dissipates = loop area per unit volume — Hysteresis's quoted law, derived here; linear media close the loop on themselves and dissipate nothing.
- The gap-budget theorem: in a magnet-driven circuit, — delivering a specified field to a specified gap takes minimum magnet volume when the magnet operates at . Hence the staircase: ferrite ≈ 30, Alnico ≈ 50, Nd₂Fe₁₄B ≈ 330 kJ/m³.
- KEY IDEA: is the magnetic energy ledger — read forward it prices fields in media, read around a loop it prices hysteresis heat, and read across a magnetic circuit it prices permanent magnets by the cubic metre.
The work free-current sources do to establish fields in magnetizable matter is — integrating to in linear media, to the hysteresis-loop area around a cycle, and to the gap-budget theorem that makes the price of permanent magnetism.
Where this lives today
The gap-budget theorem is the quiet line item in the electric-vehicle bill of materials: traction-motor designers trade against temperature grade (the collapse Hysteresis flagged) and against rare-earth price, and "ferrite-assisted" or magnet-free synchronous-reluctance designs are all attempts to buy gap joules some other way. Wireless charging pads and MRI fringe-field shims are direct exercises in steering where is allowed to accumulate. At the grid scale, the loop-area law is a commodity: core-loss watts per kilogram at 1.7 T/50 Hz is the headline specification by which electrical steel is priced, and amorphous-alloy distribution transformers exist because a loop area of a few J/m³ instead of forty repays its material premium in a decade of standing losses. And superconducting magnetic energy storage runs this article's vacuum limit as a business plan: with no iron and no loop, energy in a multi-tesla bore is among the fastest-discharging storage physics available — pure equation (2), at scale.
Origins · 1 minJohn Henry Poynting and how this was discovered
Poynting is the physicist who made "where is the energy?" a well-posed question. His 1884 theorem showed that Maxwell's theory does not merely conserve energy globally — it localizes it, with a density in the fields and a flux carrying it through space, so that the energy lighting a lamp travels through the field around the wires, not the copper. This article works in that theorem's statics shadow: the increment is what his flux delivers during a slow ramp (the discarded surface term in the master derivation is literally his vector), and the full machinery — flow, momentum, stress — is the conservation-laws chapter this track reaches at E7. A Birmingham professor for thirty-four years and a farmer's son who kept a working farm all his life, Poynting also weighed the Earth with a chemical balance (his 1891 determination stood for a generation), predicted with Robertson the radiation-drag effect on orbiting dust that space physicists still call Poynting–Robertson drag, and chaired the committee that standardized British electrical units. He measured gently and localized precisely — the right patron for an article about where the joules actually sit.
The physical picture
Follow the energy from the wall socket. A power supply drives free current into a winding around an iron core with an air gap — the geometry Ampère's Law for H solved for fields, now audited for joules. As the current ramps, flux through the winding grows, and here the borrowed line enters: changing flux induces a back-voltage the supply must push against (Faraday's law, on loan). Every coulomb pushed through that back-voltage deposits energy somewhere downstream. The ledger's question is where. Three destinations exist. Some energy lands in the field of the gap — recoverable, retrievable by ramping the current back down, the energy a solenoid returns with a spark when you break the circuit. Some lands in the iron as the work of magnetizing it — in a linear, lossless idealization also recoverable, handed back as the domains relax. And in a real ferromagnet, some is gone: converted to heat at every irreversible Barkhausen jump, the toll Hysteresis described wall by wall and this article now integrates into the loop-area law. The audit's headline surprise is geographic. Iron carries almost all the flux — that was its job — but almost none of the energy. Energy density in a linear medium is , and iron's enormous sits in the denominator: at the same , iron is five thousand times cheaper per cubic metre than air. The expensive real estate is the gap. A magnetic circuit is like a hose loop with one constriction: the iron is fat hose (flux flows almost for free), the gap is the nozzle where all the pressure drop — and all the stored energy — concentrates. That is why the gap is where electromagnets do work, why prices magnets by the gap energy they can maintain, and why the lifting-magnet formula at the end of this article is nothing but gap-energy accounting per centimetre of lift.
The ledger's master entry
Everything descends from one increment, derived once and honestly.
The goal is the master formula : the work external sources must do on the free currents to change the field configuration by in the presence of magnetizable matter. The strategy mirrors the dielectric twin (Energy Stored in Dielectric Systems) line for line: compute the work against induced EMFs, convert to fields via Ampère's law for , and let a vector identity plus a vanishing surface term do the rest. The watch-out is the honesty flag: one step uses Faraday's induction law, which this track derives five articles from now — the loan is taken at one-line, quoted level, per the precedent Diamagnetism set with Lenz's rule.
Step 1. State the loan. When the field configuration changes by over a time , an electric field appears with — Faraday's Law of Induction, quoted. The sources driving the free current density must do work against this induced field at rate (positive when the battery fights the back-EMF, which is the ramp-up case).
Step 2. Express the work over :
Why only free current appears: the battery is wired to the winding, not to the atoms. Bound currents also feel the induced E, but the energy exchanged with them is exactly what ends up counted, indirectly, in the field-and-material bookkeeping below — that is the which-energy doctrine, prosecuted after the derivation.
Step 3. Trade current for fields with the chapter's own law, (Ampère's Law for H):
Step 4. Apply the identity and integrate the divergence to a surface at infinity, where localized fields kill it:
Why the discarded surface term deserves its name: it is the flux of — the Poynting vector, the energy-FLOW machinery owned by the conservation-laws chapter (E7). Discarding it says only that no energy escapes to infinity during a quasistatic ramp; where energy flows en route is E7's story, not ours.
Step 5. Spend the loan: , so
where: — work done by the free-current sources during the change ; — the auxiliary field during the change. The formula is exact for any medium — linear, nonlinear, hysteretic — because nothing about the material was assumed; the material's whole personality enters through the path taken during the ramp. Verified: equation (1) reproduces Griffiths §7.2.4 and Jackson §5.16; the dielectric twin follows by the dictionary , matching Energy Stored in Dielectric Systems; the vacuum limit integrates to , agreeing with the field-energy density Boundary Conditions for the Magnetostatic Field spent as magnetic pressure.
For a linear medium, makes the path trivial and the increment integrable. Ramping from zero,
where: — stored energy density, J/m³; all three forms are the same number, chosen for whichever variable the problem hands you. Read the in the denominator physically: at fixed , a high- medium stores less energy — the battery got the flux at a discount because the material's magnetization, not the free current, supplied most of it. That discount is the entire economics of the iron-core electromagnet, audited below.
The which-energy doctrine, inherited from the E3 twin and prosecuted here. Equation (1) counts the work done by external circuits. Three consequences keep formula-grabbing honest. First, it is not the "field-only" energy : the difference, , is the work exchanged with the material's magnetization. Equation (2) silently folds that in — for a linear medium it is parked reversibly in the aligned moments and comes back on ramp-down, so lumping it with the field energy is harmless bookkeeping. Second, none of this counts the energy that built the atomic moments — exchange, orbital structure — any more than the dielectric ledger counted the energy that built atoms; moments are permanent hardware, only their orientation is on this ledger. Third, when the material is not linear the fold-in is not reversible, the path matters, and the difference between what the battery paid and what it can recover is precisely the loss law we now derive.
Paying Hysteresis's bill: the loop-area law
Go deeper · Derivation B · 2 minHysteresis loss - one lap of the loop costs its enclosed area
The goal is the law Hysteresis spent on credit: cycling a ferromagnet once around its B–H loop dissipates per unit volume — the enclosed area — and a linear material dissipates nothing. The strategy is nothing but equation (1) integrated around a closed path in the (H, B) plane; the physics is in reading which parts of the path give and which take. Watch the sign conventions: the loop is traversed counterclockwise in the (H, B) plane as the drive cycles, and that orientation is what makes the area positive.
Step 1. Integrate the master entry around one full drive cycle. Per unit volume,
The state returns to its starting point — same , same — so stored energy is unchanged; whatever the sources paid net must have left as heat.
Step 2. Read the lap segment by segment. On the ascending branch (, mostly) the integrand is positive: the battery pays. On the descending branch the material gives energy back — but along a different, lower path: is smaller at each on the way down than it was on the way up. The refund is smaller than the payment; the difference per lap is the area between the branches.
Step 3. Kill the linear case. For the path up and the path down are the same line through the origin; exactly, an exact differential around a closed path. No enclosed area, no loss: hysteresis heating is exclusively a phenomenon of history-dependent response. Every linear result of this chapter — susceptibilities, permeabilities, the sphere and shield of Linear and Nonlinear Magnetic Media — is loss-free per cycle by construction.
Step 4. Say where the heat lands, because "dissipated" is not an address. The lap's irreversibility is microscopic: each Barkhausen jump (Hysteresis's pinning landscape) releases a wall from a metastable valley; the wall snaps forward, radiating spin waves and driving micro-eddy currents in its neighborhood, both of which thermalize within microseconds. The loop area is the city-level total of those neighborhood expenditures — which is why loss tracks microstructure (pinning) and not chemistry, and why Hysteresis's Rayleigh-regime loss vanished as the cube of amplitude: shallow excursions jump few walls. Verified: equation (3) reproduces Zangwill §13.5 and Jackson §5.16's loss discussion; orientation checked against the physical lap (payment exceeds refund); the linear-medium zero is the closed integral of an exact differential; the 40 J/m³ silicon-steel loop area quoted by Hysteresis, times 50 Hz, returns its 2 kW/m³ — the transformer arithmetic is consistent across both articles.
The gapped ring, audited
Ampère's Law for H built the chapter's flagship electromagnet — turns, A, iron ring m with , gap mm — and found T with a scandal attached: the 2 mm gap consumed 95% of the 1000 ampère-turns. Run the energy books on the same machine. Both regions carry the same (flux continuity across the gap face — Magnetic Boundary Conditions' rule), so by equation (2):
Per unit cross-sectional area, the gap holds J/m² against the iron's J/m²: 95.2% of the energy sits in the 0.4% of the path length that is air — numerically the same 95.2% as the ampère-turn split. No coincidence: with uniform around the loop, each region's energy is summed along the path — the energy budget is the ampère-turn budget with a universal prefactor . Wherever the goes, the joules go. The gap is simultaneously where the drive is spent and where the energy is banked, and that dual identity is what makes gap engineering the whole game: the gap is the electromagnet's useful region precisely because it is the only place the machine actually stores retrievable work.
Paying the load line's bill: the energy product
Hysteresis located a permanent magnet's operating point and named its figure of merit. Here is the theorem that makes the name literal.
Go deeper · Derivation C · 2 minThe gap-budget theorem - why magnets are sold by BH-max
The goal is the permanent-magnet design theorem: for a magnet of volume driving flux around an iron circuit into a working gap of volume , the gap's field-energy measure obeys — so the magnet volume needed for a specified gap job is minimized by operating the material where peaks. The strategy is the two circuit laws this chapter already owns: flux continuity for , and the circulation of — which, for a magnet-driven circuit, has no free current anywhere. Watch that sign: with zero ampère-turns, the magnet's own must run backwards through the magnet, which is exactly why it lives in the second quadrant.
Step 1. Circulate around the circuit (magnet length , ideal iron with so , gap length ). Ampère's Law for H with :
Why negative: the gap needs along the flux, so the magnet must absorb that circulation with — a demagnetizing field through its own body, putting its state on the second-quadrant branch exactly as Hysteresis's load line said.
Step 2. Conserve flux through the circuit (magnet cross-section , gap cross-section ): .
Step 3. Multiply the two relations and rearrange:
where: , ; and since the gap is vacuum. The left side is fixed by the job (how much field, in how big a gap — twice the gap's stored energy, by equation (2)). The right side is what you buy.
Step 4. Read it as a price. : magnet volume is inversely proportional to the energy product at the operating point. Shape the circuit so the load line crosses the branch at its peak, and the magnet is as small as that material allows. Hence the industry staircase — ferrite kJ/m³, Alnico , Nd₂Fe₁₄B — is a volume staircase: delivering 0.5 T to a 1 cm³ gap ( J) takes about 6.6 cm³ of ideal-operated ferrite but only 0.60 cm³ of N42 neodymium. Eleven-fold smaller motors for the same gap field: that is what "330 versus 30" purchases, and why the staircase's top step reshaped everything from headphones to traction motors. Verified: equation (4) reproduces the standard permanent-magnet circuit theorem (Jackson §5.11 form); the numbers recompute as m³ and m³; consistency with Hysteresis checked — its rigid-branch optimum gives 286 kJ/m³ at T, bracketing the N42 datasheet value with T.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| vacuum () | the field-only density; the same quantity Boundary Conditions for the Magnetostatic Field read as magnetic pressure | |
| linear medium, fixed | , down by | iron at the same flux is thousands of times cheaper — the material pays for the magnetization, the battery only for free current |
| linear medium, fixed | , up by | at fixed drive, the medium multiplies both flux and energy — which variable is held fixed decides whether iron "adds" or "saves" energy |
| any linear medium, closed cycle | reversible: full refund every lap; hysteresis loss is a nonlinearity tax exclusively | |
| ferromagnet, closed cycle | loop area | Hysteresis's quoted law, derived here; heat lands at wall jumps and micro-eddies |
| ideal iron circuit () | all energy in the gap | : the iron becomes a free flux-conduit and the gap the only bank |
| magnet circuit, no free current | the gap-budget theorem: magnet volume priced by the energy product |
Worked examples
1 · The gapped ring's bank statement (confidence builder)
For the flagship ring ( T, , iron path 0.5 m, gap 2 mm, cross-section cm²), find the energy in each region and the total.
Step 1. Densities from equation (2): J/m³; J/m³.
Step 2. Volumes: m³; m³.
Step 3. Energies: J; J. Total 0.30 J, of which 95.2% sits in the gap — the ampère-turn scandal of Ampère's Law for H, re-derived as an energy statement.
Step 4. Sanity-check against the inductor route (owned by Energy Stored in Magnetic Fields downstream, quoted as a cross-check): with H gives J. The two ledgers agree to the digit.
2 · The lifting magnet (exam level)
An electromagnet holds a steel slab across two pole faces, each m², at T. Find the holding force by energy accounting, and the mass it can suspend.
Step 1. Method: virtual work on the gap energy. Let the slab drop by , opening new gap volume (two faces). If the circuit holds fixed (iron cheap, gap dear), the newly created gap must be filled with energy density , all drawn from mechanical work against the attraction: .
Step 2. So the force is the gap energy density times the total face area — the same "magnetic pressure" that Boundary Conditions for the Magnetostatic Field derived at a current sheet, recalled here as an energy statement:
Step 3. Mass: 810 kg — a small car, held by a tesla across two decimetre-square poles. Per square centimetre, N: four kilograms of grip per cm² at one tesla, the scrapyard-crane arithmetic.
Step 4. Read the scalings: — doubling the field quadruples the grip (until the steel saturates near 2 T, the ceiling Magnetization set); and the force formula never mentions the iron path, because the energy audit already showed the iron holds nothing worth counting.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §7.2.4 · Jackson, Classical Electrodynamics, 3rd ed., §§5.16–5.17 (energy in media; magnets and circuits §5.11) · Purcell & Morin, Electricity and Magnetism, 3rd ed., ch. 11 · Zangwill, Modern Electrodynamics, §13.5 (hysteresis loss), §12.6 (magnetic energy) · Coey, Magnetism and Magnetic Materials (energy products, magnet design).
Provenance. Equations cross-checked against Griffiths Introduction to Electrodynamics 4th ed. §7.2.4 (energy and ), Jackson Classical Electrodynamics 3rd ed. §5.16 (energy in magnetic media and the free vs total current distinction), Zangwill Modern Electrodynamics §13.5 (hysteresis loss as loop area). A verifier should confirm: the limit recovers ; the self-energy expansion using ; and that the closed-loop integral is positive and equals the enclosed area. No numerical material constants are quoted to avoid fabrication. Addendum for this edition: worked numbers recomputed and sourced from named siblings — the 0.60 T gapped ring of Ampère's Law for H ( = vs J/m³, 95.2% gap share, total 0.30 J cross-checked against ), the lifting magnet ( kN, 810 kg at 1.0 T over m²), and the gap-budget staircase (ferrite ≈ 30, Alnico ≈ 50, NdFeB ≈ 330 kJ/m³; 0.199 J gap job → 6.6 vs 0.60 cm³). The Faraday step in the master derivation is an explicitly flagged one-line loan repaid by Faraday's Law of Induction.
Builds on: The Auxiliary Field H · Magnetization · Linear and Nonlinear Magnetic Media · Ampère's Law for H · Bound Currents
Leads to: Ferromagnetism · Magnetic Permeability · Magnetic Susceptibility
Why does the magnetic ledger use H dot delta B while the electric one uses E dot delta D - the auxiliary and physical fields seem swapped?
They are swapped, and consistently so. In both ledgers the auxiliary field (D or H) is the one tied to free sources, and the physical field (E or B) is the one whose change the sources fight. Electric: the battery moves free charge against the physical field E, and free charge is D's business — work goes as . Magnetic: the battery drives free current, which is H's business, against the induction of the physical field B — work goes as . The pattern is the same sentence both times: (physical field) dot (change of the free-source bookkeeper's partner). The apparent swap is the same convention asymmetry Magnetic Permeability traced in the constitutive laws versus .
Is the energy in the iron "really there"? If I could grab only the iron's field energy, how much is it?
Two honest answers. The circuit ledger (this article's) says 28.6 J/m³ — what the battery paid per cubic metre of iron, and what it gets back on ramp-down. A field-only ledger ( at 0.60 T) would say J/m³ — but that number was never drawn from the battery; most of the iron's B is supplied by its own magnetization, whose energy belongs to atomic and exchange ledgers that predate the experiment. Which is "real" depends on the question: forces on the circuit and refunds to the battery follow the circuit ledger; annihilating the material and counting total field energy would need the other books. This is the which-energy doctrine — the same split Energy Stored in Dielectric Systems adjudicated for capacitors.
The loop-area law gives J per cubic metre per cycle. How do I get from there to the watts on a transformer datasheet?
Multiply by frequency and volume, then add the bills this law does not cover. Hysteresis power: ; the area itself scales with amplitude by Steinmetz's empirical (Hysteresis). On top ride eddy-current losses (, fought by lamination — owned by Eddy Currents) and an "excess loss" term from wall dynamics. Datasheets quote the total as W/kg at a stated and frequency, e.g. ≈ 1 W/kg at 1.5 T, 50 Hz for good grain-oriented steel; the decomposition into the three bills is standard practice (Bertotti's separation), and only the first bill is this article's integral.
If the gap holds 95 percent of the energy, why not remove the iron and keep just the gap?
Because the iron is not storing the energy — it is delivering it. Without iron, the 500 turns and 2 amps produce mT spread diffusely around the winding, and the gap region holds microjoules. The iron gathers the magnetization's free flux (2 T available, the ceiling Magnetization computed) and pipes it to the 2 mm where you want it, at almost zero energy toll in transit — a waveguide for flux, paid in nearly-free iron joules. The audit's point is not that iron is useless but that it is cheap: it does the routing while the gap does the banking. Remove it and you keep neither.
Does the derivation's discarded surface term ever matter - when does energy actually escape to infinity?
For quasistatic ramps of localized circuits, never: fields fall fast enough that on a large sphere, which is exactly the discard. It fails when the ramp is not quasistatic — accelerate charges fast enough and the fields organize into radiation, whose flux at infinity is finite and permanent. That escape hatch is the entire subject of the radiation chapters (E9), and the bookkeeping that tracks energy in flight is Poynting's theorem at E7. Within this chapter's magnetostatics-plus-slow-ramps regime, the ledger closes with nothing leaking.
For a permanent magnet sitting alone on a shelf, is energy stored in its field? Who paid for it?
Yes — the external field of a shelf magnet carries genuine energy density, and the magnetizer paid for it: the factory pulse that drove the material to saturation did work per equation (1), part of which remains banked in the external field (and part was lost to the loop on the way — the virgin curve's Barkhausen toll). You can withdraw a little of the bank by letting the magnet do work (lifting a paperclip), which the magnet finances by rearranging toward configurations with less external field — the demagnetizing drift that pinning resists. A permanent magnet is a leaky, defect-guarded battery charged once at the factory; Hysteresis's knee-dodging rules are its terms of service.
How does this article's energy relate to the inductor formula W equals half L I squared?
They are the same ledger in different variables. integrates the battery's work against back-EMF at the terminals; distributes the same joules over space. Worked example 1 ran both on the gapped ring and got 0.30 J each way. The terminal form belongs to circuit theory and is owned downstream by Energy Stored in Magnetic Fields (the E6 inductor article); this article's field form is what you need when the question is where — gap versus core, force on a face, loss in a volume. When the two disagree, you have double-counted mutual terms or forgotten that L itself depends on the operating point in nonlinear cores; the field ledger is the referee.