FundamentholLog inStart lesson 1 freeBack to app

Magnetic Field due to Electric Current

PhysicsMagnetic Effects of Current and Magnetism
For NEET aspirants

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 . 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 (), of a finite wire (), of a circular arc at its centre (), 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
  1. ★ Must learnBiot-Savart law: , with
  2. ★ Must learnInfinite straight wire at perpendicular distance :
  3. Finite wire (perpendicular distance , ends at angles ):
  4. Semi-infinite wire (one end at foot of perpendicular):
  5. ★ Must learnCircular loop centre ( turns):
  6. Circular arc of angle (radians) at centre:
  7. ★ Must learnLoop on its axis, distance :
  8. Direction: right-hand thumb rule for straight wires; right-hand curl rule for loops
Colours in figures: magnetic field current

1Biot-Savart Law

Consider a wire carrying steady current . Divide it into infinitesimal length vectors pointing along the direction of current. The magnetic field produced at a point at position from the element is given by Biot-Savart's law:

Here is the permeability of free space, and . The magnitude is , where is the angle between and .

Biot-Savart law geometry A curved wire carrying current I. A small element I d-ell is tangent to the wire. The position vector r runs from the element to point P at angle theta to d-ell. The field dB at P points into the page, perpendicular to both d-ell and r. I r θ I dℓ P dB into page
Figure 1: Biot-Savart geometry. The element and both lie in the page, so is perpendicular to the page (here into it), with magnitude .
  • Current element: 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: is perpendicular to the plane containing and . On the line of itself ( or ), .
  • Superposition: the field is linear in its source, so the fields of all the elements add as vectors.
  • Link to light: , so fixing fixes (Chapter 8, electromagnetic waves).
Coulomb's law (electric)

Source: charge , a scalar.
is along the line joining source and point (away from a positive charge).
No angle factor.
Falls as ; superposition holds.

Biot-Savart law (magnetic)

Source: current element , a vector.
is perpendicular to both and .
Angle factor : zero along .
Falls as ; superposition holds.

Direction (right-hand rule)

The direction of is that of . Practically: point the right-hand thumb along the current ; the curl of the fingers gives the direction of around the wire.

Magnetic field lines around a straight current-carrying wire Side view: a vertical wire with current upward and circular field lines around it. Top view: concentric circles around the wire with the field tangent to each circle, anticlockwise when the current comes out of the page. I B (a) side view r B B = μ0I / 2πr (b) top view, I out of page
Figure 2: Field of a long straight wire. (a) Field lines are circles in planes perpendicular to the wire; thumb along , curled fingers give the sense of . (b) Seen from above (current out of page), circulates anticlockwise and is tangent to each circle, with .
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 , is perpendicular to both and , 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 be a point at perpendicular distance from the wire. Let and be the angles subtended at by the two ends, measured from the perpendicular dropped from onto the wire. Then

★ Must learnFinite straight wire:

Where it comes from, in four steps ( is the angle at measured from ):

  1. An element at height above is at distance from ; the angle between and has sine .
  2. Biot-Savart: , and every element gives in the same direction.
  3. Put , so and .
  4. Integrate from to : .

Sign convention: and 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.

Finite straight wire field geometry A finite vertical wire with current upward. Point P is at perpendicular distance d from the wire, O is the foot of the perpendicular. Angles theta1 and theta2 are measured at P from the perpendicular to the two ends. The field at P points into the page. I O θ1 θ2 d P B into page
Figure 3: Finite straight wire. is the foot of the perpendicular from ; and are measured at from to the two ends. For current upward, at points into the page, with .

2.2Special cases

  • Infinite wire: , so . Field lines are concentric circles around the wire.
  • Semi-infinite wire (one end at foot of perpendicular): , , giving .
  • Point on the extension of the wire: so , hence .
Special cases for the field of a straight wire Three panels. An infinite wire with both angles 90 degrees gives mu-zero I over 2 pi d. A semi-infinite wire with P level with its end gives mu-zero I over 4 pi d. A point on the line of the wire has d-ell parallel to r, so the field is zero. I d P (a) I O d P (b) dℓ r P (c) θ1 = θ2 = 90° B = μ0I/2πd θ1 = 90°, θ2 = 0° B = μ0I/4πd dℓ ∥ r B = 0
Figure 4: Special cases of the finite-wire formula. (a) Infinite wire: both angles are . (b) Semi-infinite wire with level with the end: and . (c) on the line of the wire: , so .
Key idea
Every straight-wire answer is one formula, : only the two angles change. Infinite: . Level with one end: .
Solved Example 1
A current of flows through an equilateral triangular loop of side . Find the magnetic field at the centroid.
Equilateral triangle loop with field at the centroid An equilateral triangle loop with anticlockwise current. From the centroid O a perpendicular of length d meets the base at M; lines to the base corners make 60 degrees with it. The field at O points out of the page. 60° 60° d M a I O B out of page
Figure 5: Equilateral triangle of side . Each side is at perpendicular distance from the centroid and subtends on either side of the perpendicular. Anticlockwise current makes every side's field point out of the page at .
Solution:

By symmetry, the three sides contribute equally. For one side, the perpendicular distance from the centroid is , and each side subtends at the centroid.

Total: , perpendicular to the plane of the triangle.

Solved Example 2
A long straight wire carries a current of . Find the magnetic field at a distance of from the wire.
Solution:

Using for an infinite straight wire:

.

Exam Trick

Regular polygon shortcut. A regular -sided loop with circumradius (centre to corner) carrying has, at its centre,

Each side is at distance and subtends on each side of its perpendicular. Check: a triangle of side () gives , which is for Solved Example 1; a square of side gives ; and as , , giving the circle's .

Quick Recall: tap to check
Field at distance from a long straight wire?
, along circles round the wire (right-hand thumb rule).
is level with one end of a long wire, at distance . Field?
: half the infinite-wire value ( and ).
Field at a point on the line of the wire, beyond its end?
Zero: for every element.
Both ends of a finite wire lie on the same side of . What changes?
One angle is negative, so with magnitudes the bracket becomes .

3Field at the Centre of a Circular Loop

For a circular loop of radius carrying current , every element is perpendicular to (which points from the element to the centre), so and each element contributes in the same direction (perpendicular to the loop). Integrating over :

Circular loops with field at the centre Two circular loops of radius R. Anticlockwise current gives a field out of the page at the centre; clockwise current gives a field into the page. I B R Anticlockwise I B out of page I B R Clockwise I B into page
Figure 6: Field at the centre of a circular loop, . Curl the right-hand fingers along ; the thumb gives . Anticlockwise current gives out of the page; clockwise gives into the page.

3.1Field due to a circular arc

An arc of radius subtending angle (in radians) at the centre carries the same reasoning but integrates over from to :

★ Must learnArc at its centre:

Circular arc subtending angle phi at the centre A circular arc of radius R subtends angle phi at its centre O. Current enters along one radial lead, goes round the arc anticlockwise and leaves along the other lead. The field at O points out of the page. I φ R O B out of page lead along a radius
Figure 7: A circular arc of radius subtending angle at gives at the centre. The straight leads lie along radii, so their lines pass through and they add nothing there.
  • Semicircle ():
  • Quarter circle ():
  • Full loop (): (recovers loop result)
Key idea
An arc is a fraction of a loop: . Leads that run along radii add nothing at the centre.
Exam Trick

Same wire, more turns: . A wire of fixed length wound into turns has , so . Rewinding one turn into two turns of the same wire makes the field at the centre times larger (twice the turns, half the radius).

Solved Example 3
Two wire loops form a figure with two semicircular arcs of radii and joined by straight segments carrying current . Find the magnetic field at the common centre in each case of Figure 8.
Two semicircular arcs with a common centre Two loops made of two concentric semicircles of radii R1 and R2 joined by straight segments through the centre O. When both arcs are on the same side the fields subtract; when they are on opposite sides the fields add. R1 R2 O B = (μ0I/4)(1/R1 − 1/R2) into page (inner arc wins) (a) same side: subtract R1 R2 O B = (μ0I/4)(1/R1 + 1/R2) out of page (both arcs agree) (b) opposite sides: add
Figure 8: Two concentric semicircles joined by straight segments that lie on a line through . (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 (or their extensions do), so they contribute nothing. Only the two semicircles matter. Each semicircle contributes at the centre. If both arcs give field in the same direction:

If they give fields in opposite directions: .

4Field on the Axis of a Circular Loop

For a point on the axis of a circular loop at distance from the centre, each element contributes where . By symmetry, only the component along the axis survives (the sine of the angle between and the axis gives ):

  1. Every element is perpendicular to its , so .
  2. Along the axis: with ; the perpendicular parts cancel in pairs.
  3. Sum over the loop, , and multiply by turns: .
Axial field of a circular loop A circular loop of radius R seen obliquely, with its axis horizontal. The top element carries current out of the page and the bottom element into the page. At point P on the axis, distance x from the centre C, the field dB of the top element is perpendicular to r. Its component along the axis, dB sin alpha, adds up; the perpendicular component dB cos alpha cancels with the opposite element's dB-prime. axis R C r α I dℓ I dℓ′ x dB′ dB dB cos α dB sin α P
Figure 9: Field on the axis of a circular loop. The element at the top gives perpendicular to . Its component lies along the axis; the component is cancelled by the diametrically opposite element, leaving along the axis.

4.1Special cases

  • Centre (): (recovers loop-centre result).
  • Far from loop (): , where 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 : along the axis, given by the right-hand rule (fingers along , thumb along ). A loop with clockwise current as you see it has pointing away from you; anticlockwise, towards you.
Graph of axial field B against distance x Graph of the field B on the axis of a current loop against distance x from the centre. The curve is a symmetric bell, maximum at x equal to zero, with points of inflection at x equal to plus or minus R over 2, and falls as one over x cubed far away. x B −R −R/2 R/2 R 0 B0 = μ0NI/2R points of inflection B ∝ 1/x3
Figure 10: Variation of along the axis of a loop. is maximum at the centre (), falls off symmetrically on both sides, changes curvature at , and far away falls as like a dipole field.
Field lines of a circular current loop compared with a bar magnet Top: field lines of a current loop seen in cross-section, with current out of the page at the top and into the page at the bottom; lines run straight through the centre along the axis and close round each side of the wire, so the right face acts as a north pole. Bottom: the field lines of a bar magnet, the same pattern far away. I S N (a) current loop (cross-section) S N (b) bar magnet
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 .
At the centre ()

, the largest value on the axis.
Depends on as .
Curve is flat here (maximum).

Far on the axis ()

, a dipole field.
Depends on the loop only through .
Falls as , not .

Solved Example 4
In Bohr's model, an electron orbits a hydrogen nucleus in a circle of radius at a frequency . 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 .

(b) .

This value is very close to the Bohr magneton , which sets the natural scale for atomic magnetism.

Solved Example 5
A circular coil of radius carries a current of . Find the field on its axis at a point from the centre.
Solution:

.

JEE Advanced

Rotating charges are currents. A ring of charge and radius spinning at angular speed is a current . So at its centre, and for its magnetic moment,

With angular momentum this gives .

A disc with surface charge density is a set of rings: the ring between and carries and gives . Integrating from to , with total charge :

Solved Example 6
A coil of turns and radius carries . (a) Find the field at its centre. (b) At what distance on its axis is the field of the centre value, and what is the field there?
Solution:

(a) .

(b) gives , so .

There , along the axis.

Quick Recall: tap to check
Field at the centre of an -turn loop of radius ?
, along the axis by the right-hand curl rule.
Field at on the axis, as a fraction of the centre value?
of .
Where does the axial curve change curvature?
At (points of inflection), where .
Magnetic moment of an -turn loop of area ?
, along the axis by the right-hand rule.
Key idea
On the axis, is largest at the centre and falls as far away: a current loop is a magnetic dipole of moment .

5Direction Conventions Summary

GeometryRuleResult
Straight wireRight-hand thumb along Curled fingers give circular around wire
Circular loop (from front)Right-hand curl along Thumb gives axial direction
Anticlockwise current (viewed)- out of page ()
Clockwise current (viewed)- into page ()
Exam Trick

Sign first, then add. For a point in the plane of the circuit every part gives 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.

Flowchart: finding the magnetic field at a point Flowchart. Split the wire into straight pieces and arcs. A straight piece whose line passes through P gives zero; any other straight piece uses the finite-wire formula; an arc with P at its centre uses mu-zero I phi over 4 pi R; a loop with P on its axis uses the axis formula; otherwise integrate. Give each part a sign, out of the page positive, into the page negative, and add. yes yes yes yes no no no no Find B at a point P Split the wire into straight pieces and circular arcs Straight, P on its line? B = 0 Straight piece? μ0I/4πd × (sinθ1 + sinθ2) Arc, P at its centre? μ0Iφ/4πR Loop, P on its axis? μ0NIR2/ 2(R2+x2)3/2 otherwise: integrate dB Give each part a sign: out of page +, into page − Add the signed parts
Figure 12: Flowchart for finding 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 (Figure 13). It carries . Find the field at the centre of the semicircle.
Hairpin wire with a semicircular end Two long parallel wires a distance 2R apart joined at their left ends by a semicircle of radius R centred at O. Current flows left along the top wire, round the semicircle and right along the bottom wire. The field at O points out of the page. I I to ∞ to ∞ R O B out of page
Figure 13: A hairpin: two long parallel wires joined by a semicircle of radius . Each straight wire ends level with , so it is semi-infinite as seen from ; all three parts give out of the page.
Solution:

Each straight wire ends level with at perpendicular distance , so each is semi-infinite as seen from : . The semicircle gives .

Directions: top wire, current to the left with below it: out of the page. Bottom wire, current to the right with above it: out of the page. The semicircle is traversed anticlockwise: out of the page. All three add.

, out of the page.

Mind map: magnetic field due to electric current Mind map with six branches: Biot-Savart law, straight wire, loop centre and arcs, loop axis, magnetic dipole and direction rules, each with three key results. Magnetic field of currents Biot-Savart law dB ∝ I dℓ sinθ/r2 μ0/4π = 10-7 dB ⟂ dℓ and r Straight wire sinθ1 + sinθ2 long: μ0I/2πd on its line: 0 Loop centre B = μ0NI/2R arc: μ0Iφ/4πR half: μ0I/4R Loop axis max at centre inflection ±R/2 far: B ∝ 1/x3 Dipole M = NIA loop ≈ magnet N face: lines out Direction wire: thumb on I loop: fingers on I dot out, cross in
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
  1. A short element of length along at the origin carries . Find at .Answer: along (, ).
  2. Which graph shows against distance 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 .
  3. A square loop of side carries . Find at its centre.Answer: .
  4. A wire bent into a single circular turn gives field at its centre. The same wire is rewound into 3 turns with the same current. New field?Answer: ( for a fixed length of wire).
  5. What fraction of the centre value is the field on the axis of a loop at ?Answer: .
  6. A quarter circle of radius with two straight radial leads carries . Find at the centre.Answer: (the leads give zero).
  7. Numerical answer: two concentric coplanar loops have radii and . The inner one carries clockwise. What current (in A) must flow anticlockwise in the outer one for zero field at the centre?Answer: , since .
  8. 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: 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 ; for a straight wire use perpendicular distance .
  • Forgetting the factor for a multi-turn coil: field scales linearly with number of turns (at fixed ).
  • Applying the axial-loop formula to any point: the formula is only for points on the axis, not off-axis.
  • Thinking the zero field of a straight wire extends beyond its line: 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 : always use radians here.
  • Adding magnitudes when directions differ: mark each part or (plus or minus) before adding, as in Solved Example 3.
  • Keeping fixed when a wire is rewound: a fixed length of wire in turns has , so grows as , not .

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 at perpendicular distance is , where . 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 . 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 turns?

At the centre of a circular loop of radius carrying current with turns, the magnetic field is , directed perpendicular to the plane of the loop. Use the right-hand curl rule: fingers along , thumb points along .

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 is parallel or antiparallel to the position vector . So for every element, and integration gives . 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 ), the axial field is , where is the loop's magnetic dipole moment. This is exactly the same expression as for the axial field of a bar magnet of moment . 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 ?

For a semicircular arc (), . 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 or . In CGS, the unit is the gauss (G), with . Earth's magnetic field near the surface is about to (0.25 G to 0.65 G).

Q8. Why is exactly in SI units?

Historically, the ampere was defined so that two long parallel wires each carrying , separated by , exert a force of on each other. Working backwards through Biot-Savart, this forces exactly. After the 2019 SI redefinition, the ampere is fixed via the electron charge, and is a measured quantity extremely close to .

Keep going

All concepts in Magnetic Effects of Current and Magnetism →