Skip to main content

Physics II course sequence · Interactive lesson

Field of a long straight wire

Nearly every current you meet in a lab is a straight wire to first approximation. This is where μ₀I/2πr comes from, why the field circles the wire instead of pointing away from it, and how long a real wire has to be before you are allowed to call it infinite.

UPII-09.02 · Lesson 2 of 8 in this unit. Position is not a completion score.
Starting model: Field of a long straight wireCross-section of a long straight wire with the current out of the page, drawn with field-line circles at 3, 6 and 9 cm. The probe sits 5.0 cm from the axis; the arrow on it is tangent to its own circle, pointing the way the right hand curls, and its length tracks B = 48.0 µT for I = 12 A. The graph plots that field from 2 cm to 10 cm.cross-section, I out of the pageI = 12 ABd = 5.0 cmB = μ₀I/2πd against dd from 2 cm to 10 cm
Start with a picture. Change the model in the lab below.
1

Build the model

The field of a straight wire circles it, and thins as one over the distance, not one over its square.

The key idea

The field of a long straight wire is azimuthal: at every point outside the conductor it is tangent to the circle through that point centred on the wire, with magnitude μ₀I/2πr, where r is the perpendicular distance from the axis.

Example. A wire carrying 10 A gives B = (2 × 10⁻⁷ T m A⁻¹)(10 A)/(0.050 m) = 4.0 × 10⁻⁵ T at 5.0 cm — about Earth's 50 µT, and pointing across the wire, never along it.

The complete physical model and assumptions

A long straight wire is the one current geometry whose field falls out of Biot-Savart in a single line of calculus, and it becomes the reference every other source in this section is measured against. What makes it tractable is the cross product: every element of the wire points the same way, so every contribution dl × r̂ is perpendicular both to the wire and to the radius, each element pushes the field round the same circle, and the vector integral collapses into one scalar integral in one variable. Doing it gives the segment result B = (μ₀ I/4π R)(sin θ₂ − sin θ₁), and letting both ends run to infinity saturates the sines and leaves B = μ₀ I/2π r — field lines that are closed circles round the wire, thinning as the first power of distance rather than the inverse square of a point charge. That slow decay is what makes the model matter: a 200 A welding return still puts 8.0 × 10⁻⁵ T at 0.50 m, more than Earth's field. It stops working where the wire stops. Within a few multiples of R of an end the segment formula is needed, a bend demands superposition, a nearby return conductor cancels most of the field, and inside the metal itself the 1/r law fails outright, because part of the current now lies on the far side of the field point.

1Symmetry fixes the direction before any integral

Two symmetries survive on an infinite straight wire: slide along it and nothing changes, rotate about it and nothing changes. So the magnitude of B can depend on the perpendicular distance r and on nothing else. The direction comes from the cross product in the Biot-Savart law. Every current element points along the wire, and dl × r̂ is perpendicular both to the wire and to the line joining that element to the field point, so the contribution has no component along the wire and none along the radius. What is left is the azimuthal direction, tangent to the circle through the field point centred on the wire. The right hand fixes the sense: thumb along the conventional current, fingers curling the way B points. The field lines are therefore closed circles lying in planes perpendicular to the wire, with no source to start from and no sink to end on.

2Set the integral up so one variable carries it

Put the wire on the x-axis and the field point P at perpendicular distance R from the origin. An element of length dx sits at position x, a distance √(x² + R²) from P, and the angle φ between the element and the line to P satisfies sin φ = R/√(x² + R²). Biot-Savart then gives dB = (μ₀ I/4π) dx sin φ/(x² + R²), and substituting for sin φ turns that into dB = (μ₀ I/4π) R dx/(x² + R²)³⁄². Because every element contributes in the same azimuthal direction, the vector integral collapses to this single scalar integral — the one feature that makes the straight wire solvable by hand. The integrand also shows why the answer converges: an element at x ≫ R contributes like R dx/x³, so the far reaches of the wire add almost nothing.

3Integrate by angle, then let the ends run away

Set x = R tan θ, with θ measured at P from the perpendicular. Then dx = R sec²θ dθ and (x² + R²)³⁄² = R³ sec³θ, so the integrand simplifies to dB = (μ₀ I/4π R) cos θ dθ, which integrates in one line to B = (μ₀ I/4π R)(sin θ₂ − sin θ₁), where θ₁ and θ₂ locate the two ends. Nothing about being long has been assumed yet; this is the field of any straight segment. Now push the ends away. θ₂ → +90° and θ₁ → −90°, both sines saturate at ±1, their difference is 2, and B = μ₀ I/2π R. With μ₀ = 4π × 10⁻⁷ T m A⁻¹ the prefactor is μ₀/2π = 2 × 10⁻⁷ T m A⁻¹ exactly, so 30 A at 6.0 cm gives 1.0 × 10⁻⁴ T without touching π.

4What an inverse first power feels like

The 1/r law decays slowly. A 10 A wire gives 40 µT at 5.0 cm, 20 µT at 10 cm and still 2.0 µT at 1.0 m, where a point charge would have fallen by a factor of 400 over the same span and a dipole by 8000. That is why one power feeder can swing a magnetometer several metres away. The slow decay also makes the law easy to test: plot measured B against 1/r and the points lie on a straight line through the origin of slope μ₀I/2π, which is 2.0 × 10⁻⁶ T m for I = 10 A. Curvature in that plot means the wire is not long enough or a neighbour is contributing. Note what r is measured from: the axis, not the surface. Outside a round conductor the field does not know how thick it is, so a 1 mm wire and a 10 mm rod carrying the same current give the same field at 50 mm.

5How long a wire has to be to count as infinite

For a segment of half-length L with the field point on its perpendicular bisector the two sines are equal, and B = μ₀ I L/(2π R √(L² + R²)). The fraction L/√(L² + R²) is the price of finiteness. At L = 10R it is 0.995, so the infinite formula reads 0.5% high; at L = 5R it is 0.981 and the infinite formula reads 2.0% high; at L = 2R it is 0.894, 12% high; and at L = R only 0.707, 41% high. A usable rule: the wire should extend at least ten times the field distance either side of the foot of the perpendicular. Off the bisector the shortfall is worse — on the perpendicular through the end of a semi-infinite wire only one sine survives and B is exactly μ₀ I/4π R, half the full value. And an isolated finite current cannot exist alone: charge would pile up at its ends, so a real circuit closes, and near the corners the return path must be added.

6Several wires add as vectors

Superposition holds exactly for magnetic fields, so with more than one wire you take each field from its own perpendicular distance and its own right-hand sense, then add the vectors. Two cases repay knowing. Parallel currents in the same direction give fields that oppose between the wires, so a null sits on the joining line wherever I₁/r₁ = I₂/r₂: for 4.0 A and 12.0 A separated by 0.16 m that is 0.040 m from the weaker wire, where each field is 2.0 × 10⁻⁵ T. Antiparallel currents reinforce between the wires and nearly cancel outside, and at a distance r much larger than their separation s the survivor is about μ₀ I s/2π r², an inverse-square tail. A pair carrying 8.0 A with s = 4.0 mm gives 3.2 µT at 0.50 m as a lone wire but only 26 nT as a pair, which is the whole reason a signal cable carries its return alongside.

2

Key equations

Read the units, assumptions and limits before substituting.

Straight-wire field element

dB = (μ₀ I/4π) R dx/(x² + R²)³⁄²

The R on top is what survives of sin φ = R/√(x² + R²) once the geometry is put in.

R is the perpendicular distance in m, x the element's position along the wire in m, dB in T

Field of a straight segment

B = (μ₀ I/4π R)(sin θ₂ − sin θ₁)

The general straight-wire result; every other case on this page is a limit of it.

θ₁ and θ₂ are the signed angles at the field point from the perpendicular to each end

Long straight wire

B = μ₀ I/2π r

Both ends at infinity saturate the sines; 25 A at 10 cm gives 5.0 × 10⁻⁵ T.

μ₀ = 4π × 10⁻⁷ T m A⁻¹, so μ₀/2π = 2 × 10⁻⁷ T m A⁻¹ exactly; I in A, r in m, B in T

Direction of the field

B = (μ₀ I/2π r) φ̂

Field lines are closed circles: B has no component along the wire and none along the radius.

φ̂ is the unit vector circling the wire, its sense set by the right hand on the conventional current

Finite wire on its bisector

B = μ₀ I L/(2π R √(L² + R²))

How much of the infinite answer a real wire delivers: 0.995 at L = 10R, 0.707 at L = R.

L is the half-length of the segment in m; the fraction L/√(L² + R²) has no unit

Superposition of several wires

B = Σᵢ (μ₀ Iᵢ/2π rᵢ) φ̂ᵢ

A null on the line between two like currents needs I₁/r₁ = I₂/r₂.

rᵢ is each wire's own perpendicular distance in m and φ̂ᵢ its own circulation sense
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

12 A
6 to 24 A; steps of 2.
5.0 cm
3 to 9 cm; steps of 0.5.

Try this. Hold the current and drag the probe from 3 to 6 cm: the arrow halves and the marker slides down the curve. Then double the current as well and the arrow is back where it started, because only I/d matters. For 50 µT at this distance you would need I = {2.5*d|1} A.

Live results

FIELD AT THE PROBE
48.0 µT
FIELD AT TWICE THE DISTANCE
24.0 µT
EARTH'S FIELD MULTIPLE
0.96 ×
DISTANCE GIVING 50 µT
4.80 cm

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics II modelCross-section of a long straight wire with the current out of the page, drawn with field-line circles at 3, 6 and 9 cm. The probe sits 5.0 cm from the axis; the arrow on it is tangent to its own circle, pointing the way the right hand curls, and its length tracks B = 48.0 µT for I = 12 A. The graph plots that field from 2 cm to 10 cm.cross-section, I out of the pageI = 12 ABd = 5.0 cmB = μ₀I/2πd against dd from 2 cm to 10 cm
Cross-section of a long straight wire with the current out of the page, drawn with field-line circles at 3, 6 and 9 cm. The probe sits 5.0 cm from the axis; the arrow on it is tangent to its own circle, pointing the way the right hand curls, and its length tracks B = 48.0 µT for I = 12 A. The graph plots that field from 2 cm to 10 cm.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. Current I: 12 A; Probe distance d: 5.0 cm

Baseline 12; choose 6 to 24, in steps of 2.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

Catch the common trap

The 1/r that a long wire shares with a long line of charge tempts students to borrow the electric picture too, drawing an arrow straight out from the wire as if B were E = λ/2πε₀r. That is the one direction B never has. The cross product in Biot-Savart puts B perpendicular to the radius and perpendicular to the current, so it circles the wire: carry a compass once round a wire at fixed distance and the needle swings through a full turn while the magnitude never changes, tangent everywhere, pointing neither at the wire nor away from it, and never along it. The consequence is structural. Along a radius the field contributes nothing, and the lines close on themselves instead of starting somewhere, so there is no magnetic charge in the wire to count. Two smaller slips ride along: curling the right hand around the electron drift rather than the conventional current reverses every answer, and writing μ₀I/4πr in place of μ₀I/2πr halves every one.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

A long straight wire carries a steady 12 A. Find the magnitude of its magnetic field 4.0 cm from the axis, then find the distance at which that field has fallen to 2.0 × 10⁻⁵ T, a typical horizontal component of Earth's field.

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.

MediumExample 2

Two long parallel wires lie 0.20 m apart in air and carry currents in the same direction: 6.0 A in wire 1 and 10.0 A in wire 2. Find the net field at the midpoint of the line joining them, and locate the point on that line where the net field is zero.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

HardExample 3

A straight bus-bar 0.90 m long carries 140 A. A sensor sits 0.12 m from the bar's line, with the foot of that perpendicular 0.25 m from one end and 0.65 m from the other. Find the field at the sensor, and say how far wrong the infinite-wire formula would be.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

6

Quick check

Select an answer and explain it before checking.

A long horizontal wire runs north-south and carries 10 A toward the north. What is the magnetic field at a point 5.0 cm directly above the wire? Take μ₀/2π = 2 × 10⁻⁷ T m A⁻¹ and ignore Earth's field.
7

Review & continue

The field of a long straight wire is azimuthal: at every point outside the conductor it is tangent to the circle through that point centred on the wire, with magnitude μ₀I/2πr, where r is the perpendicular distance from the axis.

  • 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.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.