Back to homePhysics · Physics · Change subject
Start for free
Physics · Physics
Electromagnetic field · The magnetic field

Fields of wires, loops, solenoids and toroids

In 1820 Hans Christian Oersted discovered, almost by accident, that an electric current deflected the needle of a nearby compass. It was the first proof that electricity and magnetism are the same thing seen from two different angles: every moving charge creates a magnetic field. Today the same idea powers the electromagnets that lift scrap cars in junkyards across the US.

The straight wire and the right-hand rule

If we sprinkle iron filings on a sheet of cardboard pierced by a wire carrying a current, they neither fall toward the wire nor fly away from it, but trace perfect closed circles around it: how does the strength of that invisible field depend on the current and on the distance from the wire?

Straight vertical current-carrying wire with current I upwards passing through a horizontal sheet of card. On the card, the magnetic field lines are circles concentric with the wire, travelling anticlockwise when viewed from above. The vector B is tangent to them at a distance r from the wire. An inset shows the view from above and the right-hand rule. r B I conducting wire very long card perpendicular to the wire field lines: concentric circles B = μ₀·I / (2π·r) view from above I comes out towards you B: anticlockwise right hand: thumb → I, fingers → B
Practice★☆☆Not started
An upward electric current flows through a vertical wire. a) State in your own words the right-hand rule that relates the direction of the current to the direction of…

An upward electric current flows through a vertical wire.

  1. a) State in your own words the right-hand rule that relates the direction of the current to the direction of the magnetic field lines it creates.
  2. b) Apply it: viewed from above, do the field lines rotate clockwise or counterclockwise? Draw the situation in your notebook.

You can do it on paper and send a photo with your answer.

Solve
Practice★☆☆Not started
A current $I = 10\ \text{A}$ flows through a very long straight wire. The magnetic field it creates at a distance $r$ is $B = \frac{\mu_0\times I}{2\pi\times r}$, with…

A current $I = 10\ \text{A}$ flows through a very long straight wire. The magnetic field it creates at a distance $r$ is $B = \frac{\mu_0\times I}{2\pi\times r}$, with $\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$. Calculate the field at $r = 5\ \text{cm}$ from the wire. Remember to convert the distance to meters.

Solve
Practice★☆☆Not started
The field created by a very long straight wire is $B = \frac{\mu_0\times I}{2\pi\times r}$. Without doing numerical calculations, reason using the formula: a) What…

The field created by a very long straight wire is $B = \frac{\mu_0\times I}{2\pi\times r}$. Without doing numerical calculations, reason using the formula:

  1. a) What happens to $B$ if the current is doubled while keeping the distance constant?
  2. b) What if the distance is doubled while keeping the current constant?
  3. c) Where is the field stronger, near or far from the wire? Relate this to how its field lines spread apart with distance.
Solve
Practice★★☆Not started
A lab probe measures the magnetic field at $r = 4\ \text{cm}$ from a very long straight wire and obtains $B = 2\times10^{-4}\ \text{T}$. a) Rearrange the expression…

A lab probe measures the magnetic field at $r = 4\ \text{cm}$ from a very long straight wire and obtains $B = 2\times10^{-4}\ \text{T}$.

  1. a) Rearrange the expression $B = \frac{\mu_0\times I}{2\pi\times r}$ to solve for the current.
  2. b) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
Solve

The field depends on $I$ and on $r$

The overhead line of an Amtrak electric train in the Northeast Corridor carries hundreds of amps: should a compass beside the track worry about it? The answer depends on how fast the field falls off with distance.

Magnetic field of a straight wire: at distance r the field is B(r) and at distance 2r it is half as strong, with field lines further apart as you move away from the wire. wire B is perpendicular to the plane r 2r B(r) B(2r) = B(r)/2

Graph of $B$ against $1/r$

Because $B = \dfrac{\mu_0 I}{2\pi}\cdot\dfrac{1}{r}$, $B$ is directly proportional to $1/r$. If you measure $B$ at several distances and plot $B$ (vertical axis) against $1/r$ (horizontal axis), the points lie on a straight line through the origin. Its slope is $\dfrac{\mu_0 I}{2\pi}$, so you can find the current from the slope: $I = \dfrac{2\pi\cdot\text{slope}}{\mu_0}$.

Practice★★☆Not started
The pantograph cable of an electric train can carry currents of $I = 500\ \text{A}$. a) Rearrange for the distance $r$ in the formula for the field of a wire,…

The pantograph cable of an electric train can carry currents of $I = 500\ \text{A}$.

  1. a) Rearrange for the distance $r$ in the formula for the field of a wire, $B = \frac{\mu_0\times I}{2\pi\times r}$.
  2. b) Calculate at what distance from the cable the field it creates equals the Earth's magnetic field, $B_T \approx 5\times10^{-5}\ \text{T}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
  3. c) Calculate the field at $10\ \text{m}$ from the cable and comment on whether it could affect a compass placed at that distance.
Solve
Practice★★☆Not started
For wire A, which carries a current $I_A = 5\ \text{A}$, we measure the field at a distance of $10\ \text{cm}$; for wire B, which carries $I_B = 20\ \text{A}$, we…

For wire A, which carries a current $I_A = 5\ \text{A}$, we measure the field at a distance of $10\ \text{cm}$; for wire B, which carries $I_B = 20\ \text{A}$, we measure it at $40\ \text{cm}$.

  1. a) Calculate both fields using $B = \frac{\mu_0\times I}{2\pi\times r}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
  2. b) Explain, using the dependence $B \propto \frac{I}{r}$, why the two results are equal.
Solve
Practice★★★Not started
In the lab, the magnetic field created by a very long wire is measured at several distances, with the following results: at $r = 20\ \text{cm}$ we obtain…

In the lab, the magnetic field created by a very long wire is measured at several distances, with the following results: at $r = 20\ \text{cm}$ we obtain $B = 2\times10^{-5}\ \text{T}$; at $r = 10\ \text{cm}$, $B = 4\times10^{-5}\ \text{T}$; at $r = 5\ \text{cm}$, $B = 8\times10^{-5}\ \text{T}$.

  1. a) Plot $B$ against $\frac{1}{r}$ in your notebook and explain what type of relationship appears.
  2. b) The slope of the above line is $\frac{\mu_0\times I}{2\pi}$; estimate it from the data and deduce the value of the current $I$ flowing through the wire ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
Solve

The field at the center of a loop

When we bend a straight wire into a circle, the circular field lines from each section build up and pass together through the central gap in the same direction: how strong is the field at the center of that loop?

Circular loop seen in perspective, carrying a current I anticlockwise, with the magnetic field B perpendicular to the plane and coming out at its center. I R B (coming out, towards you) center

Use the right-hand rule again: if you curl the fingers of your right hand in the direction of the current, the thumb gives the direction of the field at the center: this tells you, without any calculation, which face of the loop acts as a north pole.

Practice★☆☆Not started
A circular loop of radius $R = 10\ \text{cm}$ carries a current $I = 2\ \text{A}$. The magnetic field at its center is $B = \frac{\mu_0\times I}{2\times R}$, with…

A circular loop of radius $R = 10\ \text{cm}$ carries a current $I = 2\ \text{A}$. The magnetic field at its center is $B = \frac{\mu_0\times I}{2\times R}$, with $\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$.

  1. a) Calculate its value.
  2. b) Express the result in scientific notation, rounded to two significant figures.
Solve
Practice★☆☆Not started
A counterclockwise current, viewed from above, flows through a circular loop placed horizontally. The loop, viewed from above, is shown in the figure. a) Apply the…

A counterclockwise current, viewed from above, flows through a circular loop placed horizontally. The loop, viewed from above, is shown in the figure.

I B = ? top view
  1. a) Apply the right-hand rule and state the direction of the magnetic field at the center of the loop: upward or downward?
  2. b) Reason which face of the loop (the top face or the bottom face) acts as a north pole.
Solve
Practice★★☆Not started
A flat coil with $N = 50$ turns has a radius $R = 8\ \text{cm}$ and carries a current $I = 0.3\ \text{A}$. The field at its center is…

A flat coil with $N = 50$ turns has a radius $R = 8\ \text{cm}$ and carries a current $I = 0.3\ \text{A}$. The field at its center is $B = \frac{\mu_0\times N\times I}{2\times R}$.

  1. a) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
  2. b) How many times greater is it than the field of a single loop of the same radius carrying the same current? Explain your answer using the formula.
Solve
Practice★★☆Not started
What radius should a circular loop carrying a current of $I = 1\ \text{A}$ have so that the field at its center equals the Earth's magnetic field,…

What radius should a circular loop carrying a current of $I = 1\ \text{A}$ have so that the field at its center equals the Earth's magnetic field, $B_T \approx 5\times10^{-5}\ \text{T}$?

  1. a) Rearrange for the radius in the expression $B = \frac{\mu_0\times I}{2\times R}$.
  2. b) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$) and express it in centimeters.
Solve

The solenoid: a uniform field inside

When many loops are lined up to form a tube, iron filings reveal a pattern of straight, parallel and very dense lines inside it, identical to that of a cylindrical magnet: what does the strength of that uniform internal field depend on?

Cross-section along the length of a solenoid: the current comes out of the page in the top row of loops and goes into the page in the bottom row. Inside, the field lines are straight, parallel and dense, and the field is uniform. Outside, the lines close up far apart and the field is almost zero. outside: field almost zero (lines far apart) ⊙ I comes out of the page ⊗ I goes into the page inside: uniform B, B = μ₀·n·I
Practice★☆☆Not started
A solenoid has $n = 1000\ \text{espiras/m}$ and carries a current $I = 0.5\ \text{A}$. The magnetic field inside it is $B = \mu_0\times n\times I$, with…

A solenoid has $n = 1000\ \text{espiras/m}$ and carries a current $I = 0.5\ \text{A}$. The magnetic field inside it is $B = \mu_0\times n\times I$, with $\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$.

  1. a) Calculate its value.
  2. b) Express it in milliteslas ($1\ \text{mT} = 10^{-3}\ \text{T}$).
Solve
Practice★☆☆Not started
Describe the magnetic field inside a long solenoid carrying a current: a) What are the field lines like in the central area of the interior: curved, parallel, or…

Describe the magnetic field inside a long solenoid carrying a current:

  1. a) What are the field lines like in the central area of the interior: curved, parallel, or converging?
  2. b) As we move through the interior, does the field increase, decrease, or remain practically constant?
  3. c) What happens to the field on the outside compared to the inside?
Solve
Practice★★☆Not started
We want to construct a solenoid that generates a field of $B = 2.5\times10^{-3}\ \text{T}$ inside it with a maximum current of $I = 2\ \text{A}$. a) Rearrange for the…

We want to construct a solenoid that generates a field of $B = 2.5\times10^{-3}\ \text{T}$ inside it with a maximum current of $I = 2\ \text{A}$.

  1. a) Rearrange for the turn density $n$ in the expression $B = \mu_0\times n\times I$.
  2. b) Calculate how many turns per meter are required ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
  3. c) If the tube on which it is wound measures $40\ \text{cm}$, how many turns will need to be wound in total?
Solve
Practice★★☆Not started
In the laboratory, $N = 400$ turns are wound around a tube of length $L = 20\ \text{cm}$ and a current $I = 1.5\ \text{A}$ is passed through it. a) Calculate the turn…

In the laboratory, $N = 400$ turns are wound around a tube of length $L = 20\ \text{cm}$ and a current $I = 1.5\ \text{A}$ is passed through it.

  1. a) Calculate the turn density $n = \frac{N}{L}$, in turns per meter.
  2. b) Calculate the field inside the solenoid, $B = \mu_0\times n\times I$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
Solve
Practice★★★Not started
The magnets in a magnetic resonance imaging (MRI) scanner are solenoids carrying large currents. Consider one with $n = 2000\ \text{espiras/m}$ and $I = 15\ \text{A}$…

The magnets in a magnetic resonance imaging (MRI) scanner are solenoids carrying large currents. Consider one with $n = 2000\ \text{espiras/m}$ and $I = 15\ \text{A}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$; Earth's magnetic field $B_T \approx 5\times10^{-5}\ \text{T}$).

  1. a) Calculate the field inside the solenoid.
  2. b) How many times larger is it than the Earth's magnetic field?
  3. c) Real scanners use superconducting coils instead of normal coils. Comment on the advantage provided by the superconductor having no electrical resistance when large, permanent currents are required.
Solve

The toroid

Top view of a toroid: a ring-shaped core with loops of current I wound around it. The field lines B are closed circles inside the core, at a distance r from the central axis; outside the toroid the field is zero. central axis r B I I loops (current I) toroid core field line B outside: B = 0 Since B depends on 1/r, it is slightly stronger near the inner edge

Unlike the straight solenoid, the toroid has no "ends" where the field weakens: the approximation is excellent throughout its interior, although the field is not perfectly uniform (it is slightly stronger near the inner edge than near the outer one, because $r$ is smaller there).

Superposition: several fields at once

The same principle works for different shapes of conductor, for example a straight wire passing near a loop: calculate each field separately, find its direction with the right-hand rule, then add or subtract them at the point you want.

Two parallel wires with currents in the same direction, coming out of the plane, and the opposite magnetic fields B₁ and B₂ that they create at the midpoint P, where they cancel. I₁ I₂ comes out of the plane comes out of the plane P B₁ B₂ d d P: Btotal = B₁ + B₂ (vectors) = 0
Practice★★★Not started
Two straight parallel conductors, separated by $20\ \text{cm}$, carry currents in the same direction $I_1 = I_2 = 10\ \text{A}$ (…

Two straight parallel conductors, separated by $20\ \text{cm}$, carry currents in the same direction $I_1 = I_2 = 10\ \text{A}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$). The arrangement, in the plane perpendicular to the wires, is shown in the figure.

· I₁ = 10 A · I₂ = 10 A midpoint B total = ? d = 20 cm · current out of the plane
  1. a) Calculate the magnitude of the field created by each wire at the midpoint of the line segment joining them.
  2. b) Using the right-hand rule, determine the direction of each of these fields at the midpoint and justify why the total field there is zero.
  3. c) If the currents were different, would the field at the midpoint still be zero? Reason your answer.
Solve
Practice★★★Not started
Two straight, very long, parallel conductors, perpendicular to the plane of the paper and $20\ \text{cm}$ apart, carry currents in opposite directions,…

Two straight, very long, parallel conductors, perpendicular to the plane of the paper and $20\ \text{cm}$ apart, carry currents in opposite directions, $I_1 = I_2 = 10\ \text{A}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$). The situation is shown in the figure.

Two parallel wires 20 cm apart with opposite currents, the midpoint between them and a point P 10 cm from wire 2, outside the segment I₁ = 10 A wire 1 I₂ = 10 A wire 2 midpoint P d = 20 cm 10 cm Dot: current out of the page · Cross: current into the page
  1. a) Using the right-hand rule, determine the direction of the magnetic field created by each wire at the midpoint and check that, since the currents are opposite, the fields add up there.
  2. b) Calculate the total magnetic field at the midpoint.
  3. c) Calculate the total magnetic field at point $P$ on the line joining the wires, located outside the segment, $10\ \text{cm}$ from wire 2 and $30\ \text{cm}$ from wire 1, indicating whether the fields add or subtract there.
Solve
Practice★★★Not started
Two straight parallel conductors, separated by $d = 40\ \text{cm}$, carry currents in the same direction, $I_1 = 30\ \text{A}$ and $I_2 = 10\ \text{A}$ (…

Two straight parallel conductors, separated by $d = 40\ \text{cm}$, carry currents in the same direction, $I_1 = 30\ \text{A}$ and $I_2 = 10\ \text{A}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$). Observe the diagram:

· I₁ = 30 A · I₂ = 10 A P x = ? d = 40 cm · current out of the plane
  1. a) Using the right-hand rule, explain in which region (between the wires or outside them) their magnetic fields have opposite directions.
  2. b) Set up the condition $B_1 = B_2$ for a point located at a distance $x$ from the first wire, within the segment joining them, and solve the resulting equation.
  3. c) Check the consistency of the result: is the point closer to the wire carrying the smaller current? Why must this be the case?
Solve
Practice★★★Not started
A very long straight wire, lying in the plane of a circular loop of radius $R = 10\ \text{cm}$, passes at $d = 5\ \text{cm}$ from its center. A current of…

A very long straight wire, lying in the plane of a circular loop of radius $R = 10\ \text{cm}$, passes at $d = 5\ \text{cm}$ from its center. A current of $I_1 = 10\ \text{A}$ flows through the wire and $I_2 = 4\ \text{A}$ through the loop, with directions chosen such that their magnetic fields at the center of the loop have opposite directions ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).

Diagram of a coplanar straight wire and circular loop carrying electric currentsd = 5 cmR = 10 cmOBtotal = ?I₁ = 10 AStraight wireI₂ = 4 ACircular loop
  1. a) Calculate the magnitude of the wire's magnetic field at the center of the loop.
  2. b) Calculate the magnitude of the loop's magnetic field at its center.
  3. c) Justify why both fields are perpendicular to the plane of the loop and calculate the total magnetic field at the center.
Solve

Back to the beginning: Oersted's compass needle turned because the field lines form circles concentric with the current; the needle simply aligned itself with the direction tangent to that circle, which is at right angles to the wire.

Summary

See all the exercises in this section