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 , including its direction.
- Calculate the field inside a solenoid with .
- 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?
The field is proportional to the current and inversely proportional to the distance from the wire: double and halves. That makes it different from Coulomb's law, which is an inverse-square law.
Because , the cancels and the formula becomes , 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
A long straight cable carries a steady current of . Calculate the magnetic field strength from it and compare it with Earth's field, which is about .
Step 1: Write the formula and convert
with and .
Step 2: Substitute
The cancels: , so . That shortcut saves time on calculator-free arithmetic.
Step 3: Compare
The cable's field is about the same size as Earth's, so a compass held from it would swing noticeably.
Try it yourself first, then check the working one step at a time.
Answer
, about the same as Earth's field.
Method
Use with in metres.
Simplify to if it helps.
Watch out for
Squaring . The field of a wire falls as , not .
The field from a long straight wire is . What is the field from the wire?
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
Two long parallel wires, X and Y, are apart, with X on the left. Both carry current out of the page: in X and in Y. Find the magnitude and direction of the magnetic field at M, midway between them.
Step 1: Field from X at M
. With current out of the page the field circles anticlockwise, so at M (to the right of X) it points up the page.
Step 2: Field from Y at M
. M is to the left of Y, and on the left-hand side of an anticlockwise circle the field points down the page.
Use the right-hand grip rule for each wire separately, then picture where M sits on each wire's circle.
Step 3: Combine
The fields are opposite, so subtract: , in the direction of the larger field.
Try it yourself first, then check the working one step at a time.
Answer
, down the page.
Method
Calculate each wire's field at the point.
Find each direction with the right-hand grip rule.
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.
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 is for an air-filled 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 long has 600 turns and carries a current of . Calculate the magnetic field inside it, to two significant figures.
History
Superconductivity
In 1911 Heike Kamerlingh Onnes cooled mercury below 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 , 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
An MRI scanner's main magnet is a long solenoid wound with turns per metre.
(a) Calculate the current needed to make a field inside it.
(b) If the same coil were made of ordinary copper wire with a total resistance of , calculate the power it would dissipate.
(c) Explain why MRI magnets are wound with superconducting wire.
Step 1: Rearrange the solenoid formula
Step 2: Find the current
, or to two significant figures.
Step 3: Find the power in a copper coil
is the heating in a resistor from Unit 1. With hundreds of amperes, even a small resistance turns a lot of energy into heat.
Step 4: Explain the superconductor
Cooled in liquid helium to about , below its critical temperature, the niobium–titanium wire has zero resistance. The current then flows with no heating, so no power is wasted in the wire and the current keeps circulating without a power supply. A copper coil would need about around the clock and would overheat.
Try it yourself first, then check the working one step at a time.
Answer
(a) (b) (c) Zero resistance means no heating, so a very large current can flow continuously without wasting energy.
Method
Rearrange for the unknown.
Use to judge the heating a large current would cause.
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 .
To test whether , calculate for each reading. If the relationship holds, is the same for every reading, apart from random scatter.
| (cm) | () | () | () |
|---|---|---|---|
| 4.0 | 1510 | 24 200 | 96 600 |
| 5.0 | 760 | 19 000 | 95 000 |
| 6.0 | 450 | 16 200 | 97 200 |
| 8.0 | 185 | 11 800 | 94 700 |
| 10.0 | 97 | 9 700 | 97 000 |
| 12.0 | 54 | 7 780 | 93 300 |
falls steadily, so the inverse-square law doesn't fit. stays close to , varying by only a few per cent, so fits these readings. That is typical of a bar magnet once you are a few magnet-lengths away. A graph of against would be a straight line through the origin.
A long straight wire is different: , so a graph of against is a straight line through the origin with gradient .
Using , predict the field of the bar magnet from it, in microtesla.
Exam tip
Data questions on field strength
State the relationship and the evidence for it: " stays within about 2% of its mean, so ", or "the graph of against 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: . and .
Solenoid: with 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 by checking whether is constant, or by plotting against .
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.