Magnetic Fields of Wires, Loops, Solenoids, and Toroids
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?
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.
- 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.
- 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.
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.
The Field Depends on $I$ and $r$
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:
- a) What happens to $B$ if the current is doubled while keeping the distance constant?
- b) What if the distance is doubled while keeping the current constant?
- c) Where is the field stronger, near or far from the wire? Relate this to how its field lines spread apart with distance.
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}$.
- a) Rearrange for the current in the expression $B = \frac{\mu_0\times I}{2\pi\times r}$.
- b) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
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}$.
- 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}$.
- 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}$).
- c) Calculate the field at $10\ \text{m}$ from the cable and comment on whether it could affect a compass placed at that distance.
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}$.
- 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}$).
- b) Explain, using the dependence $B \propto \frac{I}{r}$, why the two results are equal.
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}$.
- a) Plot $B$ against $\frac{1}{r}$ in your notebook and explain what type of relationship appears.
- 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}$).
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?
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).
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}$.
- a) Calculate its value.
- b) Express the result in scientific notation, rounded to two significant figures.
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.
- a) Apply the right-hand rule and state the direction of the magnetic field at the center of the loop: upward or downward?
- b) Reason which face of the loop (the top face or the bottom face) acts as a north pole.
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}$.
- a) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
- 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.
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}$?
- a) Rearrange for the radius in the expression $B = \frac{\mu_0\times I}{2\times R}$.
- b) Calculate its value ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$) and express it in centimeters.
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?
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.
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}$.
- a) Calculate its value.
- b) Express it in milliteslas ($1\ \text{mT} = 10^{-3}\ \text{T}$).
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:
- a) What are the field lines like in the central area of the interior: curved, parallel or converging?
- b) As we move through the interior, does the field increase, decrease or remain practically constant?
- c) What happens to the field on the outside compared to the inside?
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.
- a) Calculate the turn density $n = \frac{N}{L}$, in turns per meter.
- 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}$).
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}$.
- a) Solve for the turn density $n$ in the expression $B = \mu_0\times n\times I$.
- b) Calculate how many turns per meter are required ($\mu_0 = 4\pi\times10^{-7}\ \text{T}\times\text{m/A}$).
- c) If the tube on which it is wound measures $40\ \text{cm}$, how many turns will need to be wound in total?
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}$).
- a) Calculate the field inside the solenoid.
- b) How many times larger is it than the Earth's magnetic field?
- 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.
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.
- 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?
- 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.
The Toroid
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.
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}$).
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}$.
- a) Rearrange for the current in the expression $B = \frac{\mu_0\times N\times I}{2\pi\times r}$.
- 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}$).
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.
- a) Calculate the field next to the inner edge ($r = 8\ \text{cm}$) and next to the outer edge ($r = 12\ \text{cm}$).
- b) Calculate the field at the mean radius ($r = 10\ \text{cm}$) and check that it lies between the two previous values.
- c) In light of the results, is the field inside a toroid uniform? Why, then, is the mean radius approximation used?
Superposition: Several Fields at Once
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.
- a) Calculate the magnitude of the field created by each wire at the midpoint of the line segment joining them.
- 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.
- c) If the currents were different, would the field at the midpoint still be zero? Reason your answer.
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.
- 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.
- b) Calculate the total magnetic field at the midpoint.
- 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.
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:
- a) Using the right-hand rule, explain in which region (between the wires or outside them) their magnetic fields have opposite directions.
- 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.
- c) Check the consistency of the result: is the point closer to the wire carrying the smaller current? Why must this be the case?
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.
- a) Calculate the magnitude of the wire's field at the center of the loop.
- b) Calculate the magnitude of the loop's field at its center.
- c) Justify why both fields are perpendicular to the plane of the loop and calculate the total field at the center.
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.