# 12.7: Solenoids and Toroids

- Page ID
- 4426

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)By the end of this section, you will be able to:

- Establish a relationship for how the magnetic field of a solenoid varies with distance and current by using both the Biot-Savart law and Ampère’s law
- Establish a relationship for how the magnetic field of a toroid varies with distance and current by using Ampère’s law

Two of the most common and useful electromagnetic devices are called solenoids and toroids. In one form or another, they are part of numerous instruments, both large and small. In this section, we examine the magnetic field typical of these devices.

## Solenoids

A long wire wound in the form of a helical coil is known as a **solenoid**. Solenoids are commonly used in experimental research requiring magnetic fields. A solenoid is generally easy to wind, and near its center, its magnetic field is quite uniform and directly proportional to the current in the wire.

Figure \(\PageIndex{1}\) shows a solenoid consisting of **N** turns of wire tightly wound over a length **L**. A current **I** is flowing along the wire of the solenoid. The number of turns per unit length is **N**/**L**; therefore, the number of turns in an infinitesimal length **dy** are (**N**/**L**)**dy** turns. This produces a current

\[dI = \frac{NI}{L} dy. \label{12.24}\]

We first calculate the magnetic field at the point **P** of Figure \(\PageIndex{1}\). This point is on the central axis of the solenoid. We are basically cutting the solenoid into thin slices that are **dy** thick and treating each as a current loop. Thus, **dI** is the current through each slice. The magnetic field \(d\vec{B}\) due to the current **dI** in **dy** can be found with the help of Equation 12.5.3 and Equation \ref{12.24}:

\[d\vec{B} = \frac{\mu_0 R^2 dI}{2(y^2 + R^2)^{3/2}}\hat{j} = \left( \frac{\mu_0 IR^2 N}{2L}\hat{j}\right) \frac{dy}{(y^2 + R^2)^{3/2}} \label{12.25}\]

where we used Equation \ref{12.24} to replace **dI**. The resultant field at **P** is found by integrating \(d\vec{B}\) along the entire length of the solenoid. It’s easiest to evaluate this integral by changing the independent variable from **y** to \(\theta\). From inspection of Figure \(\PageIndex{1}\), we have:

\[sin \, \theta = \frac{y}{\sqrt{y^2 + R^2}}.\label{12.26}\]

Taking the differential of both sides of this equation, we obtain

\[cos \, \theta \, d\theta = \left[ - \frac{y^2}{(y^2 + R^2)^{3/2}} + \frac{1}{\sqrt{y^2 + R^2}}\right] dy \]

\[ = \frac{R^2 dy}{(y^2 + R^2)^{3/2}}.\]

When this is substituted into the equation for \(d\vec{B}\), we have

\[\vec{B} = \frac{\mu_0 I N}{2L}\hat{j} \int_{\theta_1}^{\theta_2} cos \, \theta \, d\theta = \frac{\mu_0 I N}{2L} (sin \, \theta_2 - sin \, \theta_1)\hat{j}, \label{12.27}\]

which is the magnetic field along the central axis of a finite solenoid.

Of special interest is the infinitely long solenoid, for which \(L \rightarrow \infty\). From a practical point of view, the infinite solenoid is one whose length is much larger than its radius \((L >> R)\). In this case, \(\theta_1 = \frac{-\pi}{2}\) and \(\theta_2 = \frac{\pi}{2}\). Then from Equation \ref{12.27}, the magnetic field along the central axis of an infinite solenoid is

\[\vec{B} = \frac{\mu_0 IN}{2L} \hat{j} [sin(\pi/2) - sin(-\pi/2)] = \frac{\mu_0 IN}{L} \hat{j}\] or

\[\vec{B} = \mu_0 n I \hat{j}, \label{12.28}\]

where **n** is the number of turns per unit length. You can find the direction of \(\vec{B}\) with a right-hand rule: Curl your fingers in the direction of the current, and your thumb points along the magnetic field in the interior of the solenoid.

We now use these properties, along with Ampère’s law, to calculate the magnitude of the magnetic field at any location inside the infinite solenoid. Consider the closed path of Figure \(\PageIndex{2}\). Along segment 1, \(\vec{B}\) is uniform and parallel to the path. Along segments 2 and 4, \(\vec{B}\) is perpendicular to part of the path and vanishes over the rest of it. Therefore, segments 2 and 4 do not contribute to the line integral in Ampère’s law. Along segment 3, \(\vec{B} = 0\) because the magnetic field is zero outside the solenoid. If you consider an Ampère’s law loop outside of the solenoid, the current flows in opposite directions on different segments of wire. Therefore, there is no enclosed current and no magnetic field according to Ampère’s law. Thus, there is no contribution to the line integral from segment 3. As a result, we find

\[\oint \vec{B} \cdot d\vec{l} = \int_1 \vec{B} \cdot d\vec{l} = Bl. \label{12.29}\]

The solenoid has **n** turns per unit length, so the current that passes through the surface enclosed by the path is **nlI**. Therefore, from Ampère’s law,

\[Bl = \mu_0 n lI\] and

\[B = \mu_0 n I \label{12.30}\]

within the solenoid. This agrees with what we found earlier for **B** on the central axis of the solenoid. Here, however, the location of segment 1 is arbitrary, so we have found that this equation gives the magnetic field everywhere inside the infinite solenoid.

Outside the solenoid, one can draw an Ampère’s law loop around the entire solenoid. This would enclose current flowing in both directions. Therefore, the net current inside the loop is zero. According to Ampère’s law, if the net current is zero, the magnetic field must be zero. Therefore, for locations outside of the solenoid’s radius, the magnetic field is zero.

When a patient undergoes a** magnetic resonance imaging** (MRI) scan, the person lies down on a table that is moved into the center of a large solenoid that can generate very large magnetic fields. The solenoid is capable of these high fields from high currents flowing through superconducting wires. The large magnetic field is used to change the spin of protons in the patient’s body. The time it takes for the spins to align or relax (return to original orientation) is a signature of different tissues that can be analyzed to see if the structures of the tissues is normal (Figure \(\PageIndex{3}\)).

A solenoid has 300 turns wound around a cylinder of diameter 1.20 cm and length 14.0 cm. If the current through the coils is 0.410 A, what is the magnitude of the magnetic field inside and near the middle of the solenoid?

**Strategy**

We are given the number of turns and the length of the solenoid so we can find the number of turns per unit length. Therefore, the magnetic field inside and near the middle of the solenoid is given by Equation \ref{12.30}. Outside the solenoid, the magnetic field is zero.

**Solution**

The number of turns per unit length is

\[n = \frac{300 \, turns}{0.140 \, m} = 2.14 \times 10^3 \, turns/m.\]

The magnetic field produced inside the solenoid is

\[B = \mu_0 nI = (4\pi \times 10^{-7} T \cdot m/A)(2.14 \times 10^3 turns/m)(0.410 \, A)\]

\[B = 1.10 \times 10^{-3}T.\]

**Significance**

This solution is valid only if the length of the solenoid is reasonably large compared with its diameter. This example is a case where this is valid.

What is the ratio of the magnetic field produced from using a finite formula over the infinite approximation for an angle \(\theta\) of (a) \(85^o\)? (b) \(89^o\)? The solenoid has 1000 turns in 50 cm with a current of 1.0 A flowing through the coils

**Solution**-
a. 1.00382; b. 1.00015

## Toroids

A toroid is a donut-shaped coil closely wound with one continuous wire, as illustrated in part (a) of Figure \(\PageIndex{4}\). If the toroid has **N** windings and the current in the wire is **I**, what is the magnetic field both inside and outside the toroid?

We begin by assuming cylindrical symmetry around the axis **OO**’. Actually, this assumption is not precisely correct, for as part (b) of Figure \(\PageIndex{4}\) shows, the view of the toroidal coil varies from point to point (for example, \(P_1, \, P_2\) and \(P_3\)) on a circular path centered around **OO**’. However, if the toroid is tightly wound, all points on the circle become essentially equivalent [part (c) of Figure \(\PageIndex{4}\)], and cylindrical symmetry is an accurate approximation.

With this symmetry, the magnetic field must be tangent to and constant in magnitude along any circular path centered on **OO**’. This allows us to write for each of the paths \(D_1, \, D_2\) and \(D_3\) shown in part (d) of Figure \(\PageIndex{4}\),

\[\oint \vec{B} \cdot d\vec{l} = B(2\pi r). \label{12.31}\]

Ampère’s law relates this integral to the net current passing through any surface bounded by the path of integration. For a path that is external to the toroid, either no current passes through the enclosing surface (path \(D_1\)), or the current passing through the surface in one direction is exactly balanced by the current passing through it in the opposite direction (path \(D_3\)). In either case, there is no net current passing through the surface, so

\[\oint B(2\pi r) = 0\] and

\[B = 0 \, (outside \, the \, toroid). \label{12.32}\]

The turns of a toroid form a helix, rather than circular loops. As a result, there is a small field external to the coil; however, the derivation above holds if the coils were circular.

For a circular path within the toroid (path \(D_2\)), the current in the wire cuts the surface **N** times, resulting in a net current **NI** through the surface. We now find with Ampère’s law,

\[B(2\pi r) = \mu_0 NI\] and

\[B = \frac{\mu_0 NI}{2\pi r} \, (within \, the \, toroid). \label{12.33}\]

The magnetic field is directed in the counterclockwise direction for the windings shown. When the current in the coils is reversed, the direction of the magnetic field also reverses.

The magnetic field inside a toroid is not uniform, as it varies inversely with the distance **r** from the axis **OO**’. However, if the central radius **R** (the radius midway between the inner and outer radii of the toroid) is much larger than the cross-sectional diameter of the coils **r**, the variation is fairly small, and the magnitude of the magnetic field may be calculated by Equation \ref{12.33} where \(r = R\).

## Contributors and Attributions

Samuel J. Ling (Truman State University), Jeff Sanny (Loyola Marymount University), and Bill Moebs with many contributing authors. This work is licensed by OpenStax University Physics under a Creative Commons Attribution License (by 4.0).