Back to homePhysics · High School Year 3 · Physics-Math · Change subject
Start for free
Prep 3 Tech · Physics
Electromagnetic field · The magnetic field

Magnetic Fields of Wires, Loops, Solenoids, and Toroids

Before you start, make sure you know: Electric and Magnetic Phenomena (Secondary Year 2)

In 1820 Hans Christian Oersted noticed, almost by accident, that an electric current deflected the needle of a nearby compass. It was the first proof that electricity and magnetism are two sides of the same phenomenon: currents generate magnetic fields, just like magnets do. On this page you will learn how to calculate those fields and how to tell which way they point.

The Straight Wire and the Right-Hand Rule

If you sprinkle iron filings on a piece of cardboard with a wire carrying a current through it, they do not move toward the wire or fly off: they draw closed circles around it. How does the strength of that invisible field depend on the current and on the distance from the wire?

Vertical conducting wire with current I upward passing through a horizontal piece of cardboard. The magnetic field lines are circles concentric with the wire, counterclockwise as seen from above. The vector B is tangent to them at a distance r. An inset shows the view from above and the right-hand rule. r B I conducting wire very long cardboard perpendicular to the wire field lines: concentric circles B = μ₀·I / (2π·r) view from above I comes out toward you B: counterclockwise 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 anticlockwise? Draw the situation in your exercise book.

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

The Field Depends on $I$ and $r$

View from above of a wire with current coming out toward you. Two concentric circles of radii r and 2r, with the field B tangent to them at two points: at distance 2r the vector is half as long as at distance r. wire r r B(r) B(2r) = B(r)/2 The distance 2r is measured from the wire. B is tangent to each circle.
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 laboratory 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 for the…

A laboratory 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 for the current in the expression $B = \frac{\mu_0\times I}{2\pi\times r}$.
  2. b) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
Solve
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 laboratory, 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 laboratory, 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 gradient 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

If you bend a straight wire into a circle, the field lines from each segment pass together through the central opening in the same direction. What is the field at the center?

Circular loop in perspective with current I counterclockwise and magnetic field B perpendicular to the plane, coming out at its center. I R B (toward you) center

With the right hand, curl your fingers in the direction of the current: the thumb gives the direction of the field at the center. The face of the loop that the field comes out of behaves like a north pole, and the face it goes into, like a south pole (just like a magnet).

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? Reason 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

If you line up many loops to form a tube, iron filings show straight, parallel, tightly packed lines inside, just like in a bar magnet. What does the strength of that field depend on?

Longitudinal cross-section of a solenoid: the current comes out of the paper in the top row of loops and goes in at the bottom. Inside, the field lines are straight, parallel, and dense; outside, very far apart and the field is almost zero. outside: field almost zero (lines very far apart) ⊙ I comes out of the paper ⊗ I goes into the paper inside: uniform B, B = μ₀·n·I

A solenoid behaves like a magnet

A bar magnet has two poles. Its field lines leave the north pole, go around the magnet, and enter at the south pole; inside the magnet they run from south to north, so they are closed lines. If you look at the drawing, the lines of the solenoid are identical: they leave at one end (north pole), close up outside, and enter at the other end (south pole). A solenoid with a current is a magnet you can turn on and off. To tell which end is the north pole, curl the fingers of your right hand in the direction of the current: the thumb points to the north pole.

The field at the end

Far from the ends the field is $\mu_0 n I$. And right at an end? Imagine a very long solenoid cut into two equal halves: each half is a solenoid that ends at the cut. Together, they produce the full field $\mu_0 n I$ at the junction point. By symmetry, each half contributes the same amount, so at the center of an end the field is approximately

$$B_{\text{extremo}} \approx \frac{\mu_0 n I}{2}$$

that is, half of the interior field. The lines spread out as they leave, which is why the field weakens. Outside the solenoid, near its midpoint, the lines are very far apart and the field is almost zero.

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
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
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) Solve for the turn…

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) Solve 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
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
Practice★★★Not started
A long solenoid has a field $B = 8\times10^{-3}\ \text{T}$ at its interior center. a) By imagining the solenoid as the combination of two semi-infinite solenoids, reason…

A long solenoid has a field $B = 8\times10^{-3}\ \text{T}$ at its interior center.

  1. a) By imagining the solenoid as the combination of two semi-infinite solenoids, reason that the field at the center of one of its ends must be approximately half the interior field. What is the value of this field at the end?
  2. b) What is the approximate value of the field at an exterior point close to the midpoint of the solenoid? Justify your answer by considering what happens to the field lines as they emerge.
Solve

The Toroid

Top view of a toroid: ring-shaped core with current loops I. The field lines B are closed circles inside the core, at a distance r from the central axis; outside 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 somewhat larger near the inner edge

Unlike the straight solenoid, the toroid has no ends where the field weakens. Even so, the field is not perfectly uniform: it is somewhat larger near the inner edge, because there $r$ is smaller.

Practice★☆☆Not started
A toroid is a coil wound in the shape of a ring. The field inside it, at a distance $r$ from the axis, is $B = \frac{\mu_0\times N\times I}{2\pi\times r}$, where $N$ is…

A toroid is a coil wound in the shape of a ring. The field inside it, at a distance $r$ from the axis, is $B = \frac{\mu_0\times N\times I}{2\pi\times r}$, where $N$ is the total number of turns. A toroid with $N = 500$ turns carries a current $I = 2\ \text{A}$. Calculate the field at points $r = 10\ \text{cm}$ from the axis ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).

Solve
Practice★★☆Not started
A toroid with $N = 1000$ turns has a mean radius of $15\ \text{cm}$. a) Rearrange for the current in the expression $B = \frac{\mu_0\times N\times I}{2\pi\times r}$. b)…

A toroid with $N = 1000$ turns has a mean radius of $15\ \text{cm}$.

  1. a) Rearrange for the current in the expression $B = \frac{\mu_0\times N\times I}{2\pi\times r}$.
  2. b) Calculate the current required for the field inside to be $B = 4\times10^{-3}\ \text{T}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
Solve
Practice★★★Not started
A toroid with $N = 600$ turns has an inner radius of $8\ \text{cm}$ and an outer radius of $12\ \text{cm}$, and carries a current $I = 5\ \text{A}$. The field inside it,…

A toroid with $N = 600$ turns has an inner radius of $8\ \text{cm}$ and an outer radius of $12\ \text{cm}$, and carries a current $I = 5\ \text{A}$. The field inside it, at a distance $r$ from the axis, is $B = \frac{\mu_0\times N\times I}{2\pi\times r}$ ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$). Observe the cross-section of the toroid in the figure.

axis r = 8 cm r = 12 cm mean radius = 10 cm B = ? N = 600 turns · I = 5 A
  1. a) Calculate the field next to the inner edge ($r = 8\ \text{cm}$) and next to the outer edge ($r = 12\ \text{cm}$).
  2. b) Calculate the field at the mean radius ($r = 10\ \text{cm}$) and check that it lies between the two previous values.
  3. c) In light of the results, is the field inside a toroid uniform? Why, then, is the mean radius approximation used?
Solve

Superposition: Several Fields at Once

Two parallel wires with currents in the same direction, coming out of the plane, and the opposite fields they create at the midpoint P: B₁, from the left wire, points up and B₂, from the right wire, points down, so they cancel. I₁ I₂ comes out of the plane comes out of the plane P B₁ B₂ d d At P: B₁ + B₂ (vector sum) = 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 $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 $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 so that their fields at the center of the loop have opposite directions ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$). The geometry of the system is shown in the figure.

I₁ = 10 A I₂ = 4 A R = 10 cm d = 5 cm O B total = ?
  1. a) Calculate the magnitude of the wire's field at the center of the loop.
  2. b) Calculate the magnitude of the loop's field at its center.
  3. c) Justify why both fields are perpendicular to the plane of the loop and calculate the total field at the center.
Solve

Back to the beginning: the needle of Oersted's compass lined up perpendicular to the wire because the field lines are concentric circles around the current: the needle aligned with the tangent to that circle.

Summary

See all the exercises in this section