The magnetic field due to an electric current is calculated using the Biot-Savart law, which gives the field of an infinitesimal current element as dB=4πμ0r2Idℓ×r^. Integrating this over the geometry gives the field of any current configuration. For a JEE Main and NEET student, the four essential results are: field of a long straight wire (B=2πrμ0I), of a finite wire (B=4πdμ0I(sinθ1+sinθ2)), of a circular arc at its centre (B=4πRμ0Iϕ), and of a circular loop on its axis. These four cover almost every JEE and NEET question on this topic.
On this page1Biot-Savart law2Straight wire3Loop centre and arcs4Loop axis and dipole5Direction rules
Key Formulas - Quick Reference
★ Must learnBiot-Savart law: dB=4πμ0r2Idℓ×r^, with 4πμ0=10−7T⋅m/A
★ Must learnInfinite straight wire at perpendicular distance r: B=2πrμ0I
Finite wire (perpendicular distance d, ends at angles θ1,θ2): B=4πdμ0I(sinθ1+sinθ2)
Semi-infinite wire (one end at foot of perpendicular): B=4πrμ0I
★ Must learnCircular loop centre (N turns): B=2Rμ0NI
Circular arc of angle ϕ (radians) at centre: B=4πRμ0Iϕ
★ Must learnLoop on its axis, distance x: B=2(R2+x2)3/2μ0NIR2
Direction: right-hand thumb rule for straight wires; right-hand curl rule for loops
Colours in figures:magnetic field Bcurrent I
1Biot-Savart Law
Consider a wire carrying steady current I. Divide it into infinitesimal length vectors dℓ pointing along the direction of current. The magnetic field dB produced at a point P at position r from the element is given by Biot-Savart's law:
dB=4πμ0r2Idℓ×r^=4πμ0r3Idℓ×r
Here μ0=4π×10−7T⋅m/A is the permeability of free space, and 4πμ0=10−7T⋅m/A. The magnitude is dB=4πμ0r2Idℓsinθ, where θ is the angle between dℓ and r.
Figure 1: Biot-Savart geometry. The element Idℓ and r both lie in the page, so dB∝dℓ×r is perpendicular to the page (here into it), with magnitude 4πμ0r2Idℓsinθ.
Current element:Idℓ is a vector along the current; it is the source of the magnetic field, as the charge is the source of the electric field.
Direction:dB is perpendicular to the plane containing dℓ and r. On the line of dℓ itself (θ=0° or 180°), dB=0.
Superposition: the field is linear in its source, so the fields of all the elements add as vectors.
Link to light:μ0ε0=c21, so fixing μ0 fixes ε0 (Chapter 8, electromagnetic waves).
Coulomb's law (electric)
Source: charge q, a scalar. E is along the line joining source and point (away from a positive charge). No angle factor. Falls as 1/r2; superposition holds.
Biot-Savart law (magnetic)
Source: current element Idℓ, a vector. dB is perpendicular to both dℓ and r. Angle factor sinθ: zero along dℓ. Falls as 1/r2; superposition holds.
Direction (right-hand rule)
The direction of dB is that of dℓ×r^. Practically: point the right-hand thumb along the current I; the curl of the fingers gives the direction of B around the wire.
Figure 2: Field of a long straight wire. (a) Field lines are circles in planes perpendicular to the wire; thumb along I, curled fingers give the sense of B. (b) Seen from above (current out of page), B circulates anticlockwise and is tangent to each circle, with B=2πrμ0I.
Conventions used throughout: field into the page is drawn as ⊗; field out of the page is drawn as ⊙. Learn to spot these on the first pass through any diagram.
Key idea
A current element gives a field that falls as 1/r2, is perpendicular to both dℓ and r, and is zero along the line of the element. Every result on this page is this law added up.
2Magnetic Field due to a Straight Current-Carrying Wire
2.1Finite wire (general result)
For a straight wire of finite length, let P be a point at perpendicular distance d from the wire. Let θ1 and θ2 be the angles subtended at P by the two ends, measured from the perpendicular OP dropped from P onto the wire. Then
★ Must learnFinite straight wire:
B=4πdμ0I(sinθ1+sinθ2)
Where it comes from, in four steps (β is the angle at P measured from PO):
An element dy at height y above O is at distance r=d2+y2 from P; the angle between dℓ and r has sine rd.
Biot-Savart: dB=4πμ0I⋅(d2+y2)3/2ddy, and every element gives dB in the same direction.
Put y=dtanβ, so dy=dsec2βdβ and dB=4πdμ0Icosβdβ.
Integrate from β=−θ2 to θ1: B=4πdμ0I(sinθ1+sinθ2).
Sign convention:θ1 and θ2 are taken positive when measured on opposite sides of the foot of the perpendicular; if both ends lie on the same side, one of them is negative.
Figure 3: Finite straight wire. O is the foot of the perpendicular from P; θ1 and θ2 are measured at P from PO to the two ends. For current upward, B at P points into the page, with B=4πdμ0I(sinθ1+sinθ2).
2.2Special cases
Infinite wire:θ1=θ2=90°, so B=2πdμ0I. Field lines are concentric circles around the wire.
Semi-infinite wire (one end at foot of perpendicular): θ1=0°, θ2=90°, giving B=4πdμ0I.
Point on the extension of the wire:dℓ∥r^ so dℓ×r^=0, hence B=0.
Figure 4: Special cases of the finite-wire formula. (a) Infinite wire: both angles are 90°. (b) Semi-infinite wire with P level with the end: 0° and 90°. (c) P on the line of the wire: dℓ∥r, so B=0.
Key idea
Every straight-wire answer is one formula, B=4πdμ0I(sinθ1+sinθ2): only the two angles change. Infinite: 90°,90°. Level with one end: 0°,90°.
Solved Example 1
A current of 1A flows through an equilateral triangular loop of side 4.5×10−2m. Find the magnetic field at the centroid.
Figure 5: Equilateral triangle of side a. Each side is at perpendicular distance d=23a from the centroid O and subtends 60° on either side of the perpendicular. Anticlockwise current makes every side's field point out of the page at O.
Solution:
By symmetry, the three sides contribute equally. For one side, the perpendicular distance from the centroid is d=23a, and each side subtends θ1=θ2=60° at the centroid.
Total: B=3B1=4.518×10−5=4×10−5T=40μT, perpendicular to the plane of the triangle.
Solved Example 2
A long straight wire carries a current of 10A. Find the magnetic field at a distance of 2cm from the wire.
Solution:
Using B=2πrμ0I for an infinite straight wire:
B=2π×0.024π×10−7×10=0.022×10−6=10−4T=100μT.
Exam Trick
Regular polygon shortcut. A regular n-sided loop with circumradius R (centre to corner) carrying I has, at its centre,
B=2πRμ0nItannπ
Each side is at distance Rcos(π/n) and subtends π/n on each side of its perpendicular. Check: a triangle of side a (R=a/3) gives 2πa9μ0I, which is 4×10−5T for Solved Example 1; a square of side a gives πa22μ0I; and as n→∞, ntan(π/n)→π, giving the circle's 2Rμ0I.
Quick Recall: tap to checkField at distance d from a long straight wire?
B=2πdμ0I, along circles round the wire (right-hand thumb rule).
P is level with one end of a long wire, at distance d. Field?
B=4πdμ0I: half the infinite-wire value (θ=0° and 90°).
Field at a point on the line of the wire, beyond its end?
Zero: dℓ∥r for every element.
Both ends of a finite wire lie on the same side of O. What changes?
One angle is negative, so with magnitudes the bracket becomes sinθfar−sinθnear.
3Field at the Centre of a Circular Loop
For a circular loop of radius R carrying current I, every element dℓ is perpendicular to r (which points from the element to the centre), so sinθ=1 and each element contributes dB=4πμ0R2Idℓ in the same direction (perpendicular to the loop). Integrating over dℓ=2πR:
Bcentre=2Rμ0I(single turn)
Bcentre=2Rμ0NI(N turns)
Figure 6: Field at the centre of a circular loop, B=2Rμ0I. Curl the right-hand fingers along I; the thumb gives B. Anticlockwise current gives B out of the page; clockwise gives B into the page.
3.1Field due to a circular arc
An arc of radius R subtending angle ϕ (in radians) at the centre carries the same reasoning but integrates over dℓ=Rdϕ from 0 to ϕ:
★ Must learnArc at its centre:
Barc, centre=4πRμ0Iϕ
Figure 7: A circular arc of radius R subtending angle ϕ at O gives B=4πRμ0Iϕ at the centre. The straight leads lie along radii, so their lines pass through O and they add nothing there.
Semicircle (ϕ=π): B=4Rμ0I
Quarter circle (ϕ=π/2): B=8Rμ0I
Full loop (ϕ=2π): B=2Rμ0I (recovers loop result)
Key idea
An arc is a fraction of a loop: Barc=2πϕ×2Rμ0I. Leads that run along radii add nothing at the centre.
Exam Trick
Same wire, more turns: B∝n2. A wire of fixed length L wound into n turns has R=2πnL, so B=2Rμ0nI=Lμ0πn2I. Rewinding one turn into two turns of the same wire makes the field at the centre 4 times larger (twice the turns, half the radius).
Solved Example 3
Two wire loops form a figure with two semicircular arcs of radii R1 and R2 joined by straight segments carrying current I. Find the magnetic field at the common centre O in each case of Figure 8.
Figure 8: Two concentric semicircles joined by straight segments that lie on a line through O. (a) Arcs on the same side are traversed in opposite senses, so their fields subtract. (b) Arcs on opposite sides are traversed in the same sense, so their fields add.
Solution:
The straight segments pass through O (or their extensions do), so they contribute nothing. Only the two semicircles matter. Each semicircle contributes B=4Rμ0I at the centre. If both arcs give field in the same direction:
Bnet=4R1μ0I+4R2μ0I=4μ0I(R11+R21)
If they give fields in opposite directions: Bnet=4μ0IR11−R21.
4Field on the Axis of a Circular Loop
For a point P on the axis of a circular loop at distance x from the centre, each element Idℓ contributes dB=4πμ0r2Idℓ where r=R2+x2. By symmetry, only the component along the axis survives (the sine of the angle between r and the axis gives R/r):
Baxis=2(R2+x2)3/2μ0NIR2
Every element is perpendicular to its r, so dB=4πμ0R2+x2Idℓ.
Along the axis: dBsinα with sinα=R2+x2R; the perpendicular parts cancel in pairs.
Sum over the loop, ∮dℓ=2πR, and multiply by N turns: B=2(R2+x2)3/2μ0NIR2.
Figure 9: Field on the axis of a circular loop. The element at the top gives dB perpendicular to r. Its component dBsinα lies along the axis; the component dBcosα is cancelled by the diametrically opposite element, leaving Baxis=2(R2+x2)3/2μ0NIR2 along the axis.
4.1Special cases
Centre (x=0): B=2Rμ0NI (recovers loop-centre result).
Far from loop (x≫R): B≈2x3μ0NIR2=4πμ0x32M, where M=NIA=NIπR2 is the magnetic dipole moment of the loop. This matches the axial field of a magnetic dipole: the loop behaves as a tiny bar magnet.
Direction of M: along the axis, given by the right-hand rule (fingers along I, thumb along M). A loop with clockwise current as you see it has M pointing away from you; anticlockwise, towards you.
Figure 10: Variation of B along the axis of a loop. B is maximum at the centre (B0=2Rμ0NI), falls off symmetrically on both sides, changes curvature at x=±R/2, and far away falls as 1/x3 like a dipole field.Figure 11: (a) Field lines of a current loop, computed from Biot-Savart: straight along the axis through the centre, closing round each side of the wire. (b) A short bar magnet has the same pattern far away. The face from which lines emerge acts as a north pole, so a loop is a magnetic dipole of moment M=NIA.
At the centre (x=0)
B0=2Rμ0NI, the largest value on the axis. Depends on R as 1/R. Curve is flat here (maximum).
Far on the axis (x≫R)
B≈4πμ0x32M, a dipole field. Depends on the loop only through M=NIA. Falls as 1/x3, not 1/x2.
Solved Example 4
In Bohr's model, an electron orbits a hydrogen nucleus in a circle of radius 5.1×10−11m at a frequency ν=6.8×1015rev/s. Find (a) the magnetic field at the centre and (b) the equivalent magnetic dipole moment.
Solution:
(a) The orbiting electron is equivalent to a current i=eν=(1.6×10−19)(6.8×1015)=1.088×10−3A.
Rotating charges are currents. A ring of charge q and radius R spinning at angular speed ω is a current I=2πqω. So at its centre, and for its magnetic moment,
A disc with surface charge density σ is a set of rings: the ring between r and r+dr carries dI=σωrdr and gives dB=μ0dI/2r=21μ0σωdr. Integrating from 0 to R, with total charge Q=σπR2:
B=2μ0σωR=2πRμ0Qω
Solved Example 6
A coil of 50 turns and radius 10cm carries 2A. (a) Find the field at its centre. (b) At what distance x on its axis is the field 81 of the centre value, and what is the field there?
(b)B0B=(R2+x2R2)3/2=81 gives R2+x2R2=41, so x=3R≈17.3cm.
There B=8B0≈7.85×10−5T, along the axis.
Quick Recall: tap to checkField at the centre of an N-turn loop of radius R?
B=2Rμ0NI, along the axis by the right-hand curl rule.
Field at x=R on the axis, as a fraction of the centre value?
(21)3/2=221≈0.35 of B0.
Where does the axial B(x) curve change curvature?
At x=±R/2 (points of inflection), where B=0.72B0.
Magnetic moment of an N-turn loop of area A?
M=NIA, along the axis by the right-hand rule.
Key idea
On the axis, B is largest at the centre and falls as 1/x3 far away: a current loop is a magnetic dipole of moment M=NIA.
5Direction Conventions Summary
Geometry
Rule
Result
Straight wire
Right-hand thumb along I
Curled fingers give circular B around wire
Circular loop (from front)
Right-hand curl along I
Thumb gives axial B direction
Anticlockwise current (viewed)
-
B out of page (⊙)
Clockwise current (viewed)
-
B into page (⊗)
Exam Trick
Sign first, then add. For a point in the plane of the circuit every part gives B either out of the page (⊙, take +) or into it (⊗, take −). Find each magnitude, attach its sign, and add the numbers. Any straight piece whose line passes through the point contributes nothing, so drop it before you start.
Figure 12: Flowchart for finding B at a point: split the conductor into straight pieces and arcs, find each part's magnitude, give it a sign from its direction, then add.
Solved Example 7
A long hairpin is made of two parallel wires joined by a semicircle of radius R=5cm (Figure 13). It carries I=5A. Find the field at the centre O of the semicircle.
Figure 13: A hairpin: two long parallel wires joined by a semicircle of radius R. Each straight wire ends level with O, so it is semi-infinite as seen from O; all three parts give B out of the page.
Solution:
Each straight wire ends level with O at perpendicular distance R, so each is semi-infinite as seen from O: B1=B2=4πRμ0I. The semicircle gives B3=4Rμ0I.
Directions: top wire, current to the left with O below it: out of the page. Bottom wire, current to the right with O above it: out of the page. The semicircle is traversed anticlockwise: out of the page. All three add.
B=4πRμ0I(2+π)=0.0510−7×5×5.14≈5.14×10−5T, out of the page.
Figure 14: Mind map of the magnetic field due to currents: Biot-Savart law, straight wires, loop centre and arcs, loop axis, the dipole picture and the direction rules.
Practice Questions
A short element dℓ of length 2mm along +x at the origin carries 5A. Find dB at (0,0.2m,0).Answer: 2.5×10−8T along +z (i^×j^=k^, θ=90°).
Which graph shows B against distance r from a long straight wire? (A) a straight line rising from the origin (B) a rectangular hyperbola (C) a straight line falling to zero (D) a horizontal lineAnswer: (B), since B∝r1.
A square loop of side 10cm carries 2A. Find B at its centre.Answer: πa22μ0I≈2.26×10−5T.
A wire bent into a single circular turn gives field B at its centre. The same wire is rewound into 3 turns with the same current. New field?Answer: 9B (B∝n2 for a fixed length of wire).
What fraction of the centre value is the field on the axis of a loop at x=R?Answer: 221≈0.35.
A quarter circle of radius 4cm with two straight radial leads carries 8A. Find B at the centre.Answer: 8Rμ0I=π×10−5T≈3.14×10−5T (the leads give zero).
Numerical answer: two concentric coplanar loops have radii 10cm and 20cm. The inner one carries 2A clockwise. What current (in A) must flow anticlockwise in the outer one for zero field at the centre?Answer: 4, since R2I2=R1I1.
Statement I: the field at the centre of a semicircular arc is half that of the full loop. Statement II: straight leads along radii add to the field at the centre. (A) both true (B) I true, II false (C) I false, II true (D) both falseAnswer: (B). The leads' lines pass through the centre, so they give zero.
Common Mistakes to Avoid
Watch out
Sign of angles in the finite-wire formula:sinθ1+sinθ2 is the general form, but when both endpoints lie on the same side of the foot of perpendicular, one θ is negative. A common error is to add the two sines as magnitudes every time; you must draw the diagram and check.
Confusing radius with distance in loop-centre versus straight-wire formulas: for a loop use R; for a straight wire use perpendicular distance r.
Forgetting the N factor for a multi-turn coil: field scales linearly with number of turns (at fixed R).
Applying the axial-loop formula to any point: the formula B=2(R2+x2)3/2μ0IR2 is only for points on the axis, not off-axis.
Thinking the zero field of a straight wire extends beyond its line:B=0 only at points on the line of the wire; shifting even slightly off it restores a finite field.
Mixing up ϕ in radians vs degrees in the arc formula B=4πRμ0Iϕ: always use radians here.
Adding magnitudes when directions differ: mark each part ⊙ or ⊗ (plus or minus) before adding, as in Solved Example 3.
Keeping R fixed when a wire is rewound: a fixed length of wire in n turns has R=2πnL, so B grows as n2, not n.
Frequently Asked Questions
Q1. What is the magnetic field due to a long straight current-carrying wire?
The magnetic field due to a long straight wire carrying current I at perpendicular distance r is B=2πrμ0I, where μ0=4π×10−7T⋅m/A. The field lines are concentric circles around the wire, with direction given by the right-hand thumb rule.
Q2. What is Biot-Savart's law and when do we use it?
Biot-Savart's law gives the magnetic field due to a small current element as dB=4πμ0r2Idℓ×r^. It is used to calculate the field of any current-carrying conductor by integration. It is the magnetic analogue of Coulomb's law for point charges and works even without any symmetry, unlike Ampere's law, which is only useful for highly symmetric configurations.
Q3. What is the magnetic field at the centre of a circular current loop of N turns?
At the centre of a circular loop of radius R carrying current I with N turns, the magnetic field is B=2Rμ0NI, directed perpendicular to the plane of the loop. Use the right-hand curl rule: fingers along I, thumb points along B.
Q4. Why is the magnetic field zero at points along the extension of a straight wire?
On the line of the wire itself (extended beyond either end), the current element dℓ is parallel or antiparallel to the position vector r. So dℓ×r^=0 for every element, and integration gives B=0. This is why the axial line of the wire (its own extension) is a "dead zone" for the field.
Q5. How does the field of a current loop resemble that of a bar magnet?
Far from a current loop (at distance x≫R), the axial field is B≈4πμ0x32M, where M=NIA is the loop's magnetic dipole moment. This is exactly the same expression as for the axial field of a bar magnet of moment M. So a current loop is a magnetic dipole and behaves as a tiny bar magnet.
Q6. What is the field at the centre of a semicircular arc of radius R?
For a semicircular arc (ϕ=π), B=4πRμ0Iϕ=4Rμ0I. This is exactly half the field at the centre of a full loop of the same radius, as expected by symmetry.
Q7. What is the SI unit of magnetic field and its value in CGS?
The SI unit of magnetic field is the tesla (T), equal to 1Wb/m2 or 1N/(A⋅m). In CGS, the unit is the gauss (G), with 1T=104G. Earth's magnetic field near the surface is about 25μT to 65μT (0.25 G to 0.65 G).
Q8. Why is μ0/(4π)=10−7 exactly in SI units?
Historically, the ampere was defined so that two long parallel wires each carrying 1A, separated by 1m, exert a force of 2×10−7N/m on each other. Working backwards through Biot-Savart, this forces μ0=4π×10−7T⋅m/A exactly. After the 2019 SI redefinition, the ampere is fixed via the electron charge, and μ0 is a measured quantity extremely close to 4π×10−7.