Lesson 5 of 12 · 18 min

Calculating magnetic fields: wires and solenoids

Calculate the magnetic field around a straight wire and inside a solenoid, combine the fields of two wires, and interpret data on how a magnet's field changes with distance.

What you will be able to do

  • Calculate the field around a long straight wire with B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}, including its direction.
  • Calculate the field inside a solenoid with B=μ0nIB = \mu_0 nI.
  • Combine the fields of two wires at a point.
  • Interpret data on how the field of a magnet or a wire changes with distance.

Now put numbers on the fields you have been sketching. How strong is the field a few centimetres from a cable? How much current does an MRI magnet need? And if you measure a magnet's field at different distances, how do you work out the rule it follows?

Field at distance rr from a long straight wire carrying current II, with μ0=4π×10−7 T m A−1\mu_0 = 4\pi \times 10^{-7}\ \mathrm{T\,m\,A^{-1}} (the magnetic permeability of free space).
B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

The field is proportional to the current and inversely proportional to the distance from the wire: double rr and BB halves. That makes it different from Coulomb's law, which is an inverse-square law.

Because μ0=4π×10−7\mu_0 = 4\pi \times 10^{-7}, the π\pi cancels and the formula becomes B=2×10−7 IrB = 2 \times 10^{-7}\,\frac{I}{r}, which is quick to use. The direction comes from the right-hand grip rule, as in the last lesson.

Worked example

Magnetic field near a power cable

  • Simple familiar
  • Technology active

A long straight cable carries a steady current of 12 A12\ \mathrm{A}. Calculate the magnetic field strength 5.0 cm5.0\ \mathrm{cm} from it and compare it with Earth's field, which is about 5×10−5 T5 \times 10^{-5}\ \mathrm{T}.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Use B=μ0I2πrB = \frac{\mu_0 I}{2\pi r} with rr in metres.

  2. Simplify to B=2×10−7 IrB = 2 \times 10^{-7}\,\frac{I}{r} if it helps.

Watch out for

  • Squaring rr. The field of a wire falls as 1r\frac{1}{r}, not 1r2\frac{1}{r^2}.

The field 2.0 cm2.0\ \mathrm{cm} from a long straight wire is 6.0×10−5 T6.0 \times 10^{-5}\ \mathrm{T}. What is the field 6.0 cm6.0\ \mathrm{cm} from the wire?

Choose one answer

When two or more wires are near a point, find each wire's field there, using the right-hand grip rule for its direction, and add them as vectors. Between two wires carrying current in the same direction the fields point opposite ways and partly cancel. Between wires with opposite currents they point the same way and add.

Worked example

Combined field of two parallel wires

  • Complex familiar
  • Technology active

Two long parallel wires, X and Y, are 10 cm10\ \mathrm{cm} apart, with X on the left. Both carry current out of the page: 5.0 A5.0\ \mathrm{A} in X and 15 A15\ \mathrm{A} in Y. Find the magnitude and direction of the magnetic field at M, midway between them.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Calculate each wire's field at the point.

  2. Find each direction with the right-hand grip rule.

  3. Add the fields as vectors (here, along one line).

Watch out for

  • Adding the sizes when the fields point in opposite directions. Between two wires with currents in the same direction, the fields partly cancel.

Field inside a long solenoid carrying current II, with nn turns per metre: n=NLn = \frac{N}{L} for NN turns along a length LL.
B=μ0nIB = \mu_0 nI

Inside a long solenoid the field is uniform, so it doesn't depend on where you are inside it, or on the solenoid's radius. Only the current and how tightly the turns are packed matter.

Filling the solenoid with an iron core multiplies the field hundreds of times, which is how electromagnets, relays and door locks work. The formula B=μ0nIB = \mu_0 nI is for an air-filled solenoid.

Interactive

Inside a solenoid

Double the current, then double the number of turns. What happens to the field inside? Does it change if you look near the edge of the coil instead of the centre?

A solenoid 0.30 m0.30\ \mathrm{m} long has 600 turns and carries a current of 2.5 A2.5\ \mathrm{A}. Calculate the magnetic field inside it, to two significant figures.

in T

Give 2 significant figures.

History

Superconductivity

In 1911 Heike Kamerlingh Onnes cooled mercury below 4.2 K4.2\ \mathrm{K} and found its electrical resistance vanished completely: the first superconductor. In 1933 Walther Meissner and Robert Ochsenfeld showed that superconductors also push magnetic fields out of themselves, and in 1957 John Bardeen, Leon Cooper and Robert Schrieffer explained superconductivity with electrons that travel in bound pairs. In 1986–87 ceramic "high-temperature" superconductors were discovered that work above 77 K77\ \mathrm{K}, the temperature of liquid nitrogen, and the search for materials that superconduct at higher temperatures continues.

Worked example

The superconducting magnet in an MRI scanner

  • Complex unfamiliar
  • Technology active

An MRI scanner's main magnet is a long solenoid wound with 4.0×1034.0 \times 10^{3} turns per metre.

(a) Calculate the current needed to make a 3.0 T3.0\ \mathrm{T} field inside it.

(b) If the same coil were made of ordinary copper wire with a total resistance of 0.20 Ω0.20\ \Omega, calculate the power it would dissipate.

(c) Explain why MRI magnets are wound with superconducting wire.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Rearrange B=μ0nIB = \mu_0 nI for the unknown.

  2. Use P=I2RP = I^2R to judge the heating a large current would cause.

  3. Link zero resistance to zero heating in the explanation.

Watch out for

  • Using the total number of turns instead of turns per metre.

Note

Working safely around strong magnets

An MRI or NMR magnet is superconducting, so its field is always on, even when no scan is running. That shapes the safety procedures:

  • everyone entering is screened for pacemakers, metal implants and metal fragments
  • steel and iron objects (oxygen cylinders, tools, trolleys) are kept out of controlled zones, because the field can pull them into the scanner as projectiles
  • signs, locked doors and zones mark where the field is strong
  • the magnet room has a vent pipe in case the liquid helium boils off suddenly (a "quench").

Investigate: the strength of a magnet at different distances. Measure the field of a magnet along its axis with a Hall probe, or with the magnetometer in a smartphone. Zero the sensor first, or subtract Earth's field, which is always there in the background. Here are one student's results for a small bar magnet.

Field of a bar magnet measured along its axis. The field falls off much faster than 1r\frac{1}{r}.

To test whether B∝1rnB \propto \frac{1}{r^n}, calculate BrnBr^n for each reading. If the relationship holds, BrnBr^n is the same for every reading, apart from random scatter.

Testing B∝1r2B \propto \frac{1}{r^2} and B∝1r3B \propto \frac{1}{r^3}
rr (cm)BB (μT\mu\mathrm{T})Br2Br^2 (μT cm2\mu\mathrm{T\,cm^2})Br3Br^3 (μT cm3\mu\mathrm{T\,cm^3})
4.0151024 20096 600
5.076019 00095 000
6.045016 20097 200
8.018511 80094 700
10.0979 70097 000
12.0547 78093 300

Br2Br^2 falls steadily, so the inverse-square law doesn't fit. Br3Br^3 stays close to 9.6×104 μT cm39.6 \times 10^{4}\ \mu\mathrm{T\,cm^3}, varying by only a few per cent, so B∝1r3B \propto \frac{1}{r^3} fits these readings. That is typical of a bar magnet once you are a few magnet-lengths away. A graph of BB against 1r3\frac{1}{r^3} would be a straight line through the origin.

A long straight wire is different: B∝1rB \propto \frac{1}{r}, so a graph of BB against 1r\frac{1}{r} is a straight line through the origin with gradient μ0I2π\frac{\mu_0 I}{2\pi}.

Using Br3=9.6×104 μT cm3Br^3 = 9.6 \times 10^{4}\ \mu\mathrm{T\,cm^3}, predict the field of the bar magnet 20 cm20\ \mathrm{cm} from it, in microtesla.

in muT

Give 2 significant figures.

Exam tip

Data questions on field strength

State the relationship and the evidence for it: "Br3Br^3 stays within about 2% of its mean, so B∝1r3B \propto \frac{1}{r^3}", or "the graph of BB against 1r\frac{1}{r} is linear through the origin". Then comment on uncertainty: the background field of Earth, the position of the sensor inside the phone, and how the readings scatter about the trend.

Summary

  • Straight wire: B=μ0I2πr=2×10−7 IrB = \frac{\mu_0 I}{2\pi r} = 2 \times 10^{-7}\,\frac{I}{r}. B∝IB \propto I and B∝1rB \propto \frac{1}{r}.

  • Solenoid: B=μ0nIB = \mu_0 nI with n=NLn = \frac{N}{L} turns per metre. The field inside is uniform.

  • Fields from several wires add as vectors; find each direction with the right-hand grip rule.

  • Test a relationship B∝1rnB \propto \frac{1}{r^n} by checking whether BrnBr^n is constant, or by plotting BB against 1rn\frac{1}{r^n}.

  • MRI magnets are superconducting solenoids. Zero resistance lets hundreds of amperes flow without heating, and their always-on field needs strict safety procedures.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 5 of 120% read

Save your progress with a free account