Electrical Engineering‹›⌂ 0:00 studied

Module 2 · 11 min read · Free chapter

Magnetostatics: Biot-Savart and Ampere's laws, magnetic forces, magnetic circuits and inductance

In short

A long wire gives B equal to μ0I over 2πr and a solenoid μ0nI inside, from Ampere's circuital law. Parallel currents in the same direction attract. In a magnetic circuit, flux equals NI divided by reluctance l over μA, so even a small air gap dominates. Inductance is N squared over reluctance and stores half LI squared.

See it in 3DFlux in a core: mmf, reluctance and the air gap. Turn it, cut it open, or just press Watch.
What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: fields from steady currents

Every motor, generator, transformer, relay and loudspeaker depends on one fact: an electric current makes a magnetic field, and a magnetic field pushes on a current. Magnetostatics studies the fields of steady currents and the forces they produce.

Two laws find the field. The Biot-Savart law adds up the effect of each small piece of current, and Ampere's law gives the answer quickly when there is symmetry. The field then exerts forces on moving charges and on wires.

Engineers then use a simpler model. A magnetic circuit treats flux in iron like current in a wire, with mmf as the source and reluctance as the opposition. This leads directly to inductance, which sets how much energy a coil stores and how it resists changes in current.

Why it matters. Fields of wires, loops and solenoids, Ampere's law, forces on conductors, magnetic circuits with air gaps and inductance appear every year in GATE EE, and in ESE, SSC JE and state AE papers.

Biot-Savart law

The law. A small element dld\mathbf{l} carrying current I produces, at a point at distance R, a field

dH=I dl×a^R4πR2d\mathbf{H} = \frac{I\,d\mathbf{l}\times\hat{\mathbf{a}}_R}{4\pi R^2}

It is the magnetic counterpart of Coulomb's law. The field is perpendicular to both the element and the line to the point, and its direction follows the right-hand rule. In free space B=μ0H\mathbf{B} = \mu_0\mathbf{H}, with μ0=4π×10−7\mu_0 = 4\pi \times 10^{-7} H/m.

Long straight wire. Integrating along an infinite wire gives circles of field around it:

B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

For a finite wire, H=I4πr(sin⁡α2−sin⁡α1)H = \dfrac{I}{4\pi r}(\sin\alpha_2 - \sin\alpha_1), where the angles are measured from the perpendicular to the ends.

Worked example. A wire carries 10 A. At 5 cm, B=4π×10−7×102π×0.05B = \dfrac{4\pi \times 10^{-7} \times 10}{2\pi \times 0.05} = 40 µT, about the size of the Earth's field.

Circular loop. At the centre of a loop of radius R, B=μ0I2RB = \dfrac{\mu_0 I}{2R}; for N turns, multiply by N. For 5 A in a loop of radius 0.1 m, B = 4π×10−7×50.2\dfrac{4\pi \times 10^{-7} \times 5}{0.2} ≈ 31.4 µT. On the axis at distance z, B=μ0IR22(R2+z2)3/2B = \dfrac{\mu_0 IR^2}{2(R^2 + z^2)^{3/2}}.

Ampere's circuital law

The law. The line integral of H around any closed path equals the current passing through the surface bounded by that path:

∮H⋅dl=Ienc\oint \mathbf{H}\cdot d\mathbf{l} = I_{enc}

Its point form is ∇×H=J\nabla\times\mathbf{H} = \mathbf{J}: the curl of H at a point equals the current density there. Like Gauss's law, it always holds, but it gives H easily only when symmetry lets H be constant along a chosen path.

Standard results.

  • Long wire: a circle of radius r gives H⋅2πr=IH \cdot 2\pi r = I, the same as Biot-Savart.
  • Inside a solid wire of radius a with uniform current: H=Ir2πa2H = \dfrac{Ir}{2\pi a^2}, rising linearly from zero at the centre.
  • Long solenoid, n turns per metre: B=μ0nIB = \mu_0 nI inside, nearly uniform, and almost zero outside.
  • Toroid, N turns, mean radius r: B=μ0NI2πrB = \dfrac{\mu_0 NI}{2\pi r} inside the core, and zero outside.
  • Coaxial cable: field only between the conductors, H=I2πrH = \dfrac{I}{2\pi r}, and zero outside, because the currents are equal and opposite.

Worked example. A long solenoid has 1000 turns per metre and carries 2 A. Inside, B = 4π×10−7×1000×24\pi \times 10^{-7} \times 1000 \times 2 ≈ 2.51 mT.

No magnetic monopoles. Magnetic field lines always form closed loops, so the net flux through any closed surface is zero: ∇⋅B=0\nabla\cdot\mathbf{B} = 0. This is Gauss's law for magnetism.

Magnetic forces

On a moving charge. A charge q moving with velocity v in a field B feels the Lorentz force

F=q(E+v×B)\mathbf{F} = q(\mathbf{E} + \mathbf{v}\times\mathbf{B})

The magnetic part is perpendicular to the velocity, so it changes the direction of motion but does no work. A charge moving at right angles to a uniform B circles with radius r=mvqBr = \dfrac{mv}{qB}.

On a current-carrying conductor. A straight conductor of length l carrying current I in a field B feels F=Il×B\mathbf{F} = I\mathbf{l}\times\mathbf{B}, of magnitude F = BIl sin θ. Its direction follows Fleming's left-hand rule. This is the force that turns every motor.

Between parallel conductors. Each wire sits in the other's field, so the force per metre is

Fl=μ0I1I22πd\frac{F}{l} = \frac{\mu_0 I_1 I_2}{2\pi d}

Currents in the same direction attract; opposite currents repel. The ampere was once defined this way: 1 A in two wires 1 m apart gives 2×10−72 \times 10^{-7} N/m.

Worked example. Two busbars 0.1 m apart each carry 100 A in opposite directions. The force is 4π×10−7×100×1002π×0.1\dfrac{4\pi \times 10^{-7} \times 100 \times 100}{2\pi \times 0.1} = 0.02 N/m, repulsive. During a 40 kA short circuit, the force rises by (400)2(400)^2 to 3200 N/m, which is why busbar supports are designed for fault forces.

Torque on a coil. A coil of N turns and area A carrying I in a field B feels a torque T=NIABsin⁡θT = NIAB\sin\theta. This is the working principle of moving-coil meters and DC motors.

Magnetic circuits

Magnetic materials. In a material, B=μ0μrH\mathbf{B} = \mu_0\mu_r\mathbf{H}. For iron and silicon steel, μr\mu_r is in the thousands, so iron guides flux much as copper guides current. But μr\mu_r is not constant: it falls as the core saturates, so real calculations use the B-H curve.

The analogy.

Electric circuit Magnetic circuit
EMF (V) MMF, F=NI\mathcal{F} = NI (ampere-turns)
Current I (A) Flux φ (Wb)
Resistance R=lσAR = \dfrac{l}{\sigma A} Reluctance S=lμAS = \dfrac{l}{\mu A} (A/Wb)
Ohm's law I=VRI = \dfrac{V}{R} ϕ=FS\phi = \dfrac{\mathcal{F}}{S}

Reluctances in series add, just like resistances. One difference matters: no energy is lost in reluctance by a steady flux, while resistance always dissipates power.

Worked example. An iron ring has a mean length of 0.5 m, an area of 4 cm² and μr\mu_r = 1000, with a 500-turn coil. A flux of 0.4 mWb is needed, so B = 1 T.

  • Iron reluctance Si=0.54π×10−7×1000×4×10−4S_i = \dfrac{0.5}{4\pi \times 10^{-7} \times 1000 \times 4 \times 10^{-4}} ≈ 0.995 × 10⁶ A/Wb.
  • MMF = φS = 0.4 × 10⁻³ × 0.995 × 10⁶ ≈ 398 At, so I ≈ 0.80 A.

With an air gap. Now cut a 1 mm gap in the ring.

  • Gap reluctance Sg=10−34π×10−7×4×10−4S_g = \dfrac{10^{-3}}{4\pi \times 10^{-7} \times 4 \times 10^{-4}} ≈ 1.99 × 10⁶ A/Wb, twice that of all the iron.
  • Total MMF ≈ 0.4 × 10⁻³ × 2.98 × 10⁶ ≈ 1194 At, so I ≈ 2.39 A, three times more.

A 1 mm gap needs more MMF than half a metre of iron. Gaps are still used on purpose, in motors and in inductors, because they make the inductance stable and stop the core from saturating.

Leakage and fringing. Some flux escapes outside the intended path (leakage), and flux spreads out at an air gap (fringing), which increases the gap's effective area.

Inductance and magnetic energy

Self-inductance. A coil of N turns linking flux φ has flux linkage λ = Nφ. Its inductance is

L=NϕI=N2SL = \frac{N\phi}{I} = \frac{N^2}{S}

It depends on the turns squared and the geometry, and in iron it falls as the core saturates.

Standard results.

  • Long solenoid: L=μN2AlL = \dfrac{\mu N^2 A}{l}. For 500 turns, A = 4 cm² and l = 0.2 m in air, L=4π×10−7×250000×4×10−40.2L = \dfrac{4\pi \times 10^{-7} \times 250000 \times 4 \times 10^{-4}}{0.2} ≈ 0.63 mH.
  • Ring with reluctance S: for the iron ring above without a gap, L=50020.995×106L = \dfrac{500^2}{0.995 \times 10^{6}} ≈ 0.25 H; with the 1 mm gap, it falls to about 0.084 H.
  • Coaxial cable per metre: L=μ2πln⁡baL = \dfrac{\mu}{2\pi}\ln\dfrac{b}{a} (external part).
  • Two-wire line per metre: about μ0πln⁡dr\dfrac{\mu_0}{\pi}\ln\dfrac{d}{r}, the basis of transmission-line inductance.

Mutual inductance. Flux from coil 1 that links coil 2 gives M=N2ϕ21I1M = \dfrac{N_2\phi_{21}}{I_1}. It is the same both ways, and M=kL1L2M = k\sqrt{L_1L_2}, where k is the coupling coefficient, from 0 to 1. Transformers aim for k close to 1. Coils in series add as L1+L2±2ML_1 + L_2 \pm 2M, depending on whether their fluxes aid or oppose.

Energy. A coil carrying I stores W=12LI2W = \dfrac{1}{2}LI^2. The energy sits in the field, with density

w=B22μ=12BH J/m3w = \frac{B^2}{2\mu} = \frac{1}{2}BH \text{ J/m}^3

At 1 T in air this is about 398 kJ/m³, far more than in iron at the same B, because μ is so much smaller. This is why most of the energy in a motor or a gapped inductor is stored in its air gap.

Boundary conditions. At a boundary between two magnetic materials, the normal component of B is continuous, Bn1=Bn2B_{n1} = B_{n2}, because ∇⋅B=0\nabla\cdot\mathbf{B} = 0. The tangential component of H changes by any surface current K; with no surface current, Ht1=Ht2H_{t1} = H_{t2}.

Descriptive lens: how this topic is asked in written papers

Written papers test this chapter in four ways:

  1. Derive: fields of a finite wire, a loop and a solenoid from the Biot-Savart law.
  2. Apply: Ampere's law to wires, coaxial cables and toroids.
  3. Compute: forces between conductors and torque on coils.
  4. Solve: magnetic circuits with air gaps, and inductance and energy of simple shapes.

Practice questions (our own, not previous-year questions).

  1. Using Ampere's law, find H inside and outside a coaxial cable carrying equal and opposite currents. Sketch H against r. (10 marks)
  2. A cast-steel ring of mean length 60 cm and area 5 cm² (μr\mu_r = 800) has a 2 mm air gap. Find the ampere-turns needed for a gap flux of 0.5 mWb, ignoring fringing. (12 marks)
  3. Derive the inductance of a toroid and the energy stored in it. Why does an air gap raise the energy a core can store before saturating? (10 marks)

Answer plan for question 2.

  • B = 0.5×10−35×10−4\dfrac{0.5 \times 10^{-3}}{5 \times 10^{-4}} = 1 T in both iron and gap.
  • Gap: Hg=14π×10−7H_g = \dfrac{1}{4\pi \times 10^{-7}} ≈ 7.96 × 10⁵ A/m; MMF = 7.96 × 10⁵ × 0.002 ≈ 1592 At.
  • Iron: Hi=14π×10−7×800H_i = \dfrac{1}{4\pi \times 10^{-7} \times 800} ≈ 995 A/m; MMF = 995 × 0.598 ≈ 595 At.
  • Total ≈ 2187 At; note the gap needs nearly three times the iron's share.

Quick revision

  • Long wire μ0I2πr\dfrac{\mu_0 I}{2\pi r}; loop centre μ0I2R\dfrac{\mu_0 I}{2R}; solenoid μ0nI\mu_0 nI; toroid μ0NI2πr\dfrac{\mu_0 NI}{2\pi r}.
  • Ampere: ∮H⋅dl=Ienc\oint \mathbf{H}\cdot d\mathbf{l} = I_{enc}, ∇×H=J\nabla\times\mathbf{H} = \mathbf{J}; ∇⋅B=0\nabla\cdot\mathbf{B} = 0.
  • Forces: qv×Bq\mathbf{v}\times\mathbf{B}, BIlBIl; parallel wires μ0I1I22πd\dfrac{\mu_0 I_1I_2}{2\pi d}, same direction attracts.
  • Magnetic circuit: ϕ=NIS\phi = \dfrac{NI}{S}, S=lμAS = \dfrac{l}{\mu A}; air gaps dominate.
  • L=N2SL = \dfrac{N^2}{S}, solenoid μN2Al\dfrac{\mu N^2A}{l}; M=kL1L2M = k\sqrt{L_1L_2}; energy 12LI2\dfrac{1}{2}LI^2, density B22μ\dfrac{B^2}{2\mu}.
  • Boundary: BnB_n continuous; HtH_t continuous without surface current.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 17 answered

  1. A long straight wire carries 10 A. The flux density at 5 cm from it is:

  2. The flux density at the centre of a circular loop of radius R carrying current I is:

  3. The magnetic field of a long straight current-carrying wire forms:

  4. A long solenoid with 1000 turns per metre carries 2 A. The flux density inside is about:

  5. The point form of Ampere's circuital law for steady currents is:

  6. Which equation expresses that magnetic monopoles do not exist?

  7. Outside a coaxial cable carrying equal and opposite currents, the magnetic field is:

  8. Two parallel conductors carrying currents in the same direction:

  9. Two busbars 0.1 m apart carry 100 A each. The force per metre between them is:

  10. The magnetic force on a moving charge:

  11. The reluctance of a magnetic path of length l, area A and permeability μ is:

  12. An iron ring with reluctance 1 × 10⁶ A/Wb has a 500-turn coil. The current for 0.4 mWb of flux is:

  13. Introducing a small air gap in an iron core:

  14. If the number of turns of a coil on a given core is doubled, its inductance becomes:

  15. The energy density in an air gap at a flux density of 1 T is about:

  16. Two coils have L1 = 4 mH and L2 = 9 mH with coupling coefficient 0.5. Their mutual inductance is:

  17. At the boundary between two magnetic materials, the component that is always continuous is:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

Why does an air gap need so much mmf?

Air has a relative permeability of 1 against thousands for iron, so its reluctance per millimetre is huge.

Why are busbar forces large during faults?

Force between conductors rises as current squared, so a fault current hundreds of times normal gives huge forces.

What does the coupling coefficient mean?

It is the fraction of flux shared by two coils, with M equal to k times the square root of L1 L2.

Where is energy stored in a motor?

Mostly in its air gap, because energy density B squared over 2μ is far higher in air than in iron.

More in this module: Electromagnetic fields

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Electrical Engineering (EE) syllabus, IIT Guwahati
  2. NPTEL Electromagnetic Theory (IIT Kanpur, 108104087)