Fundamentholfundamenthol

Magnetic Field due to Electric Current

PhysicsMagnetic Effects of Current and MagnetismFor JEE 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.

Key Formulas - Quick Reference
  1. Biot-Savart law: , with
  2. Infinite straight wire at perpendicular distance :
  3. Finite wire (perpendicular distance , ends at angles ):
  4. Semi-infinite wire (one end at foot of perpendicular):
  5. Circular loop centre ( turns):
  6. Circular arc of angle (radians) at centre:
  7. Loop 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 1Biot-Savart geometry. The element and both lie in the page, so is perpendicular to the page (here into it), with magnitude .

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 Left: side view of a vertical wire with current upward and three circular field lines drawn in perspective, circulating anticlockwise when viewed from above. Right: top view with the wire as a dot (current out of page) and concentric field circles with anticlockwise arrows; B is tangent to a circle of radius r. I B (a) side view r B B = μ₀I / 2πr (b) top view, I out of page
Figure 2Field 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.

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

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 vertical wire of finite length carrying current upward. O is the foot of the perpendicular from point P at distance d. Dashed lines from P to the two ends make angles theta-1 (to the upper end) and theta-2 (to the lower end) with PO. The field at P is into the page. d I O θ₁ θ₂ P B into page
Figure 3Finite 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. (a) An infinite wire with P at distance d; lines from P parallel to the wire make 90 degree angles with PO. (b) A semi-infinite wire starting at O level with P; angles are 0 and 90 degrees. (c) A wire segment with P on its extension; d-ell is parallel to r so the field is zero. I d P θ₁ = θ₂ = 90° (a) B = μ₀I/2πd I O d P θ₁ = 0°, θ₂ = 90° (b) B = μ₀I/4πd dℓ r P dℓ ∥ r (c) B = 0
Figure 4Special 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 .
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 carrying anticlockwise current. From the centroid O, a perpendicular of length d meets the base at its midpoint M, and dashed lines to the base corners make 60 degree angles with OM. The field at O is out of the page. I a 60° 60° d M O B out of page
Figure 5Equilateral 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:

.

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. The left loop carries anticlockwise current and the field at its centre points out of the page. The right loop carries clockwise current and the field at its centre points into the page. R I B Anticlockwise I: B out of page R I B Clockwise I: B into page
Figure 6Field 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 :

Circular arc subtending angle phi at the centre An arc of radius R subtending angle phi at centre O, carrying current anticlockwise, fed by two straight leads that lie along radii. The field at O is out of the page. The leads point towards O and contribute no field at O. φ R I O B out of page lead along a radius
Figure 7A 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)
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 .
Two semicircular arcs with a common centre Panel a: outer and inner semicircles on the same side of the diameter, joined by straight segments; the outer arc carries anticlockwise current and the inner arc clockwise, so the net field at O is into the page. Panel b: the inner arc is above and the outer arc below the diameter; both are traversed anticlockwise, so the fields add and point out of the page. R₁ R₂ O B = (μ₀I/4)(1/R₁ − 1/R₂) into page (inner arc wins) (a) same side: subtract R₁ R₂ O B = (μ₀I/4)(1/R₁ + 1/R₂) out of page (both arcs agree) (b) opposite sides: add
Figure 8Two 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 ):

Axial field of a circular loop A circular loop of radius R seen obliquely, with its axis horizontal. The element at the top carries current out of the page; the element at the bottom carries current into the page. From the top element, r goes to P on the axis at distance x, making angle alpha with the axis. dB at P is perpendicular to r and splits into dB sin alpha along the axis and dB cos alpha perpendicular to it. The opposite element gives dB-prime whose perpendicular part cancels. axis R C r x I dℓ I dℓ′ dB′ dB dB cos α dB sin α α P
Figure 9Field 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.
Graph of axial field B against distance x A bell-shaped curve of B against x, symmetric about x equals zero, with maximum B0 equal to mu-zero N I over 2R at the centre. Points of inflection are marked at x equals plus and minus R over 2. Far from the loop the curve decays as one over x cubed. x B −R R −R/2 R/2 0 points of inflection B₀ = μ₀NI/2R B ∝ 1/x³
Figure 10Variation 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 Left: cross-section of a circular loop in the plane of the page, with current out of the page at the top and into the page at the bottom. Computed field lines pass straight through the centre from left to right and loop back around the outside. The right face acts as north. Right: a bar magnet with S on the left and N on the right, with dipole field lines of the same shape. I N S (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 .
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:

.

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 ()

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 always writing ; 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.
  • Applying the axial-loop formula to any point: the formula is only for points on the axis, not off-axis.
  • Assuming a straight wire on its extension has zero field only at that point: yes, at points along the line of the wire, but only there - shifting even slightly off restores a finite field.
  • Mixing up in radians vs degrees in the arc formula : always use radians here.

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 .

Previous year questions on Magnetic Field due to Electric Current

21 questions from past papers, each with a step-by-step solution.

Show all 21 questions

Ready to master Magnetic Effects of Current and Magnetism?

Take a full mock test, practice concept-by-concept, and get an AI-powered rank prediction — all on Fundamenthol.