
Physics II course sequence · Interactive lesson
Energy in Inductors & Magnetic Fields
Current does not arrive for free. Something has to push charge against the coil's own induced emf, and that work is not spent — it is banked in the magnetic field and handed back the instant the current tries to fall. This topic counts those joules, finds where they sit, and follows them out again.
UPII-11.03 · Lesson 3 of 8 in this unit. Position is not a completion score.Build the model
Building a current is work, and the field keeps every joule.
The key idea
The energy stored in an inductor is the work done against its own induced emf while the current is raised from zero to I, and for constant inductance it comes to ½LI².
Example. A 45 mH relay coil carrying 3.2 A holds ½ × 0.045 H × (3.2 A)² = 0.23 J. Double the current to 6.4 A and the store is 0.92 J — four times the energy, not twice.
The complete physical model and assumptions
An inductor resists a change of current, so raising the current from zero to I costs work: at every instant the source must supply the induced emf L dI/dt as well as any resistive drop, and that extra power L I (dI/dt) integrates to ½LI² however slowly or quickly the ramp is run. The energy is not consumed, and it can be located. Rewriting ½LI² for a long solenoid in terms of its own field, B = μ₀nI, turns it into (B²/2μ₀) multiplied by the volume the field occupies, and that energy per unit volume, uB = B²/(2μ₀), holds wherever a magnetic field exists — so a field that is not uniform is totted up shell by shell as ∫ (B²/2μ₀) dV. That is the picture that survives: the joules live in the field, not in the moving charge, and they come back through the circuit when the field collapses. The model has edges. It assumes L is a constant, which fails once an iron core saturates and L becomes a function of I; it assumes nothing leaks away as radiation, which fails at high frequency; and the store is real enough to burn a switch, because interrupting the current forces the field to dump ½LI² into whatever path it can find.
1Raising a current is work done against the coil
Push the current in a coil upward and the coil pushes back: Faraday's law gives an induced emf of size L dI/dt opposing the increase, so the source must supply that voltage on top of any resistive drop. The extra power it delivers is P = L I (dI/dt), so in a time dt the coil receives dU = L I dI. Integrating from zero to the final current, with L constant, gives U = ½LI². Notice what dropped out: dt. A 45 mH coil taken to 3.2 A stores 0.23 J whether the ramp lasts 12 ms or 12 s, because the energy depends only on the current reached. What the timing changes is the power. Squeeze the same ramp into a thousandth of the time and both the induced emf and the average power climb a thousandfold, while the 0.23 J waiting in the field at the end of it does not move at all. So the energy rating of a coil is set by the current it is taken to, and its voltage rating by how fast that current is allowed to change.
2The joules sit in the field, not in the wire
½LI² says how much, not where. Take a long air-cored solenoid of n turns per metre, cross-section A and length l, whose inductance is L = μ₀n²Al. Its stored energy is ½μ₀n²Al I², and that can be regrouped as ((μ₀nI)²/(2μ₀)) × A l. The first bracket is built only from the field inside, B = μ₀nI; the second is the volume that field fills. So U = (B²/2μ₀) × volume, and the energy per unit volume is uB = B²/(2μ₀) — a statement about the field alone, with no turns, no current and no coil left in it. The electric analogue is uE = ½ε₀E², and the magnetic one is far more generous: at B = 0.50 T it is 9.9 × 10⁴ J m⁻³, while an electric field at the breakdown strength of air, 3.0 × 10⁶ V m⁻¹, manages only 40 J m⁻³.
3Adding up a field that is not uniform
Once the energy belongs to the field, geometry with no obvious coil can be handled too. Take a coaxial cable of inner radius a and shield radius b. The run looks the same at every point along its length and the same under any rotation about its axis, so B can only be tangential to circles about that axis with one and the same magnitude all the way round — which is precisely what lets B come outside ∮B⋅dl. Ampère's law on such a circle of radius r between the conductors encloses only the core current, so B(2πr) = μ₀I and B = μ₀I/(2πr); beyond the shield the enclosed current is I − I = 0, and so is B. The density therefore varies as 1/r²: uB = μ₀I²/(8π²r²). Slice the gap into thin cylindrical shells of volume dV = 2πr l dr, so that dU = (μ₀I²l/4π)(dr/r), and integrate from a to b: U = (μ₀I²l/4π) ln(b/a). The 1/r² falloff and the 2πr growth of each shell conspire into a logarithm, which is why making the cable fatter barely raises its stored energy. Reading L = 2U/I² off that result gives L/l = (μ₀/2π) ln(b/a) — an inductance obtained without counting a single turn.
4Follow every joule around an LR circuit
The loop equation for a battery, resistor and inductor in series is ε = IR + L dI/dt. Multiply every term by the current: εI = I²R + L I (dI/dt). Each term is now a power. εI is what the source delivers, I²R is what the resistor turns into heat, and L I (dI/dt) is what the field banks, so nothing is left unaccounted for. Take ε = 12 V, R = 6.0 Ω and L = 0.50 H. The instant the switch closes I = 0, the source delivers nothing, and the whole 12 V sits across the coil. When the current has climbed to 1.0 A the source supplies 12 W, the resistor takes 6.0 W and 6.0 W goes into the field. At the final 2.0 A the storage term vanishes because dI/dt does: the source supplies 24 W, the resistor takes all 24 W, and the field simply holds its fixed ½ × 0.50 H × (2.0 A)² = 1.0 J.
5Getting it back when the current dies
Short the coil and resistor onto themselves and the field, not the battery, drives the circuit: I = I₀ e(−Rt/L). The resistor dissipates I²R at every instant, and the total is ∫ I₀²R e(−2Rt/L) dt over all time, which equals I₀²R × L/(2R) = ½LI₀². The books balance exactly: the field surrenders precisely what was put in. Because the power falls as e(−2t/τ) with τ = L/R, half the store is gone by t = 0.35τ and 86% of it by one full time constant. The same accounting explains switch arcs. Open the circuit and the resistance jumps towards infinity, so τ collapses and the stored joule has to leave in microseconds; the coil will raise whatever emf that takes, which is why a flyback diode is fitted across a relay coil.
6How much can a magnetic field actually hold?
Because uB goes as B², field energy climbs steeply and then meets engineering walls. The 1.5 T bore of an MRI magnet holds 9.0 × 10⁵ J m⁻³, so a cubic metre of it stores 0.90 MJ — enough to lift a 1.0 tonne car 91 m, and still only about a fortieth of the chemical energy in a litre of petrol. Push to 8.0 T and the density reaches 2.5 × 10⁷ J m⁻³, but the winding must then be superconducting, and the same uB appears as an outward magnetic pressure the structure has to survive. Iron cores cheat in a different way: they raise B for a given current, but as the core saturates L stops being a constant, and ½LI² has to be replaced by ∫ I dλ — on a measured plot of flux linkage λ against current, the area between the curve and the λ axis, which is no longer half a rectangle.
Key equations
Read the units, assumptions and limits before substituting.
Rate of storing energy in a coil
P = εL I = L I (dI/dt)
Positive while the current grows and negative while it falls, so one expression covers both storing and giving back.
P in watts W, L in henries H, I in amperes A, εL the induced emf in volts VEnergy stored in an inductor
U = ½ L I²
The integral of L I dI from 0 up to I: it depends on the current now, never on how quickly it got there.
U in joules J, L in henries H, I in amperes A; 1 H A² = 1 JMagnetic energy density
uB = B²/(2μ₀)
Energy per cubic metre wherever field exists, coil or no coil: B = 1.0 T holds 4.0 × 10⁵ J m⁻³.
uB in J m⁻³, B in tesla T, μ₀ = 4π × 10⁻⁷ T m A⁻¹Total energy from the field itself
U = ∫ (B²/2μ₀) dV
Handles a field that varies from place to place, and returns the inductance through L = 2U/I².
dV a volume element in m³, swept over every region where B is non-zeroField energy of a long solenoid
U = (μ₀ n² I²/2) A l
Density times field volume, and it equals ½LI² with L = μ₀n²Al, so the two pictures agree exactly.
n = N/l turns per metre in m⁻¹, A the bore cross-section in m², l the length in mEnergy released in an LR decay
∫ I²R dt = ½ L I₀²
Every joule the field held ends as heat in the resistor, driven by the coil rather than by any source.
integrated over all t with I = I₀ e(−Rt/L); R in ohms Ω, τ = L/R in seconds sInteractive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Drag the current from 2.00 A to 4.00 A: the triangle doubles in width and in height, so the stored energy goes up four times, not two. Then halve the inductance and the line tilts down — the same current now banks half as much.
Live results
- FLUX LINKAGE λ = L I
- 0.320 Wb
- STORED ENERGY ½ L I²
- 0.640 J
- ENERGY AT DOUBLE CURRENT
- 2.560 J
- COST OF THE LAST AMP
- 0.280 J
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Inductance L: 80 mH; Current I: 4.00 A
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The commonest error is thinking that an inductor stores energy because current is flowing, so it must keep drawing power for as long as the current is on. The rate of storage is P = L I (dI/dt), which follows the rate of change and not the current itself: at a steady 2.0 A an ideal coil takes exactly zero watts, its store already sits at ½LI², and every joule the source delivers is going to the resistor. The same slip in reverse produces ½LI² with the ½ missing. Flux linkage L I is the value reached at the end of the ramp, while the work done is the area under the line as the current climbs — a triangle, not the rectangle L I². And the induced emf does not destroy energy; it banks it, which is why the field can pay all of it back on the way down.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A 45 mH relay coil is taken from rest to a steady 3.2 A by a current that ramps linearly over 12 ms. Find the energy stored once the current is steady, the induced emf during the ramp, and the average power the source delivers to the coil.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Energy depends only on the final current: U = ½LI² = ½ × 0.045 H × (3.2 A)² = 0.2304 J, or 0.23 J to two significant figures.
- A linear ramp has a constant dI/dt = 3.2 A ÷ 0.012 s = 266.7 A s⁻¹, so the induced emf is εL = L dI/dt = 0.045 H × 266.7 A s⁻¹ = 12 V, steady for the whole ramp.
- Average power is the energy divided by the time taken to deliver it: 0.2304 J ÷ 0.012 s = 19.2 W.
- Check that independently. The instantaneous power into the coil is P = εL I, which rises linearly from 0 to 12 V × 3.2 A = 38.4 W, and the mean of a linear ramp is half its peak: 19.2 W. The two routes agree.
Answer. U = 0.23 J, εL = 12 V, average power 19 W. Run the same ramp over 12 s instead and the stored energy is unchanged, while the emf falls to 12 mV and the average power to 19 mW.
MediumExample 2
An air-cored solenoid has 2400 turns per metre, a bore of cross-sectional area 4.5 cm² and a length of 0.30 m, and carries 5.0 A. Find the field inside it, the magnetic energy density there, and the total stored energy — then check the result against ½LI² using L = μ₀n²Al.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Field inside a long solenoid: B = μ₀nI = 4π × 10⁻⁷ T m A⁻¹ × 2400 m⁻¹ × 5.0 A = 1.508 × 10⁻² T, or 15.1 mT.
- Energy density: uB = B²/(2μ₀) = (1.508 × 10⁻² T)² ÷ (2 × 4π × 10⁻⁷ T m A⁻¹) = 90.5 J m⁻³.
- The field is confined to the bore, of volume A l = 4.5 × 10⁻⁴ m² × 0.30 m = 1.35 × 10⁻⁴ m³, so U = 90.5 J m⁻³ × 1.35 × 10⁻⁴ m³ = 1.22 × 10⁻² J.
- Circuit route, as a check: L = μ₀n²Al = 4π × 10⁻⁷ × (2400 m⁻¹)² × 4.5 × 10⁻⁴ m² × 0.30 m = 9.77 × 10⁻⁴ H, and ½LI² = ½ × 9.77 × 10⁻⁴ H × (5.0 A)² = 1.22 × 10⁻² J.
Answer. B = 15.1 mT, uB = 90.5 J m⁻³ and U = 12.2 mJ, by both routes. The density is modest because 15 mT is a weak field: since uB goes as B², a 1.5 T magnet beats it by a factor of 10⁴.
HardExample 3
A coaxial cable 25 m long has an inner conductor of radius 1.2 mm inside a shield of inner radius 4.0 mm, carrying 15 A out along the core and back along the shield. Treating the gap between the conductors as the only place the field lives, find the energy stored there and the inductance of the run.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- The cable is unchanged along its length and under rotation about its axis, so on a circle of radius r about that axis B is tangential with one constant magnitude and ∮B⋅dl = B(2πr). With 1.2 mm < r < 4.0 mm that circle encloses only the core current, so Ampère's law gives B(2πr) = μ₀I and B = μ₀I/(2πr). Beyond the shield the enclosed current is I − I = 0, so there is no field and no energy out there.
- Energy density at radius r: uB = B²/(2μ₀) = μ₀I²/(8π²r²). It falls as 1/r², from 2.49 J m⁻³ at the core surface, where B = 2.5 mT, to one eleventh of that at the shield.
- Slice the gap into thin cylindrical shells of radius r and thickness dr: dV = 2πr l dr, so dU = uB dV = (μ₀I²l/4π)(dr/r). The r² in the denominator has been cut to a single r.
- Integrate from a = 1.2 mm to b = 4.0 mm, with μ₀/4π = 1.0 × 10⁻⁷ H m⁻¹: U = (μ₀I²l/4π) ln(b/a) = 1.0 × 10⁻⁷ × (15 A)² × 25 m × ln(3.333) = 1.0 × 10⁻⁷ × 5625 × 1.204 = 6.77 × 10⁻⁴ J.
- Read the inductance off the energy: L = 2U/I² = 2 × 6.77 × 10⁻⁴ J ÷ (15 A)² = 6.02 × 10⁻⁶ H, which is 0.241 μH m⁻¹ and matches (μ₀/2π) ln(b/a) exactly.
- Where the model stops: the field inside the solid core was ignored. It adds μ₀l/(8π) = 1.25 μH and a further 0.14 mJ, about 21% more, so 6.0 μH is the between-the-conductors figure only.
Answer. U = 6.8 × 10⁻⁴ J in the gap and L = 6.0 μH for the 25 m run, that is 0.24 μH m⁻¹. Doubling the shield radius would raise the energy by only ln 2 ÷ ln 3.33 = 58%.
Quick check
Select an answer and explain it before checking.
Review & continue
The energy stored in an inductor is the work done against its own induced emf while the current is raised from zero to I, and for constant inductance it comes to ½LI².
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics II completion tasks.