# 7.5: Magnetic Field of an Infinitely-Long Straight Current-Bearing Wire

- Page ID
- 3941

In this section, we use the magnetostatic form of Ampere’s Circuital Law (ACL) to determine the magnetic field due to a steady current \(I\) (units of A) in an infinitely-long straight wire. The problem is illustrated in Figure \(\PageIndex{1}\). The wire is an electrically-conducting circular cylinder of radius \(a\). Since the wire is a cylinder, the problem is easiest to work in cylindrical coordinates with the wire aligned along the \(z\) axis.

Here’s the relevant form of ACL:

\[\oint_{\mathcal C}{ {\bf H} \cdot d{\bf l} } = I_{encl} \label{m0119_eACL}\]

where \(I_{encl}\) is the current enclosed by the closed path \({\mathcal C}\). ACL works for *any* closed path, so to exploit the symmetry of the cylindrical coordinate system we choose a circular path of radius \(\rho\) in the \(z=0\) plane, centered at the origin. With this choice we have

\[I_{encl}=I ~~ \mbox{for}~\rho\ge a\]

For \(\rho<a\), we see that \(I_{encl}<I\). a steady (DC) current will be distributed uniformly throughout the wire (Section 6.4). Since the current is uniformly distributed over the cross section, \(I_{encl}\) is less than the total current \(I\) by the same factor that the area enclosed by \({\mathcal C}\) is less than \(\pi a^2\), the cross-sectional area of the wire. The area enclosed by \({\mathcal C}\) is simply \(\pi \rho^2\), so we have

\[I_{encl} =I \frac{\pi \rho^2}{\pi a^2} =I \frac{\rho^2}{a^2} ~~ \mbox{for}~\rho<a\]

For the choice of \({\mathcal C}\) made above, Equation \ref{m0119_eACL} becomes

\[\int_{\phi=0}^{2\pi} { {\bf H} \cdot \left(\hat{\bf \phi}~\rho~d\phi\right) } = I_{encl} \label{m0119_eACL1}\]

Note that we have chosen to integrate in the \(+\phi\) direction. Therefore, the right-hand rule specifies that positive \(I_{encl}\) corresponds to current flowing in the \(+z\) direction, which is consistent with the direction indicated in Figure \(\PageIndex{1}\). (Here’s an excellent exercise to test your understanding. Change the direction of the path of integration and confirm that you get the same result obtained at the end of this section. Changing the direction of integration should not change the magnetic field associated with the current!)

The simplest way to solve for \({\bf H}\) from Equation \ref{m0119_eACL1} is to use a symmetry argument, which proceeds as follows:

- Since the distribution of current is uniform and infinite in the \(z\)-dimension, \({\bf H}\) can’t depend on \(z\), and so \({\bf H}\cdot\hat{\bf z}\) must be zero everywhere.
- The problem is identical after any amount of rotation in \(\phi\); therefore, the magnitude of \({\bf H}\) cannot depend on \(\phi\). This is a form of radial symmetry. Since we determined above that \({\bf H}\) can’t depend on \(z\) either, it must be that the magnitude of \({\bf H}\) can depend only on \(\rho\).
- The radial symmetry of the problem also requires that \({\bf H}\cdot\hat{\bf \rho}\) be equal to zero. If this were not the case, then the field would not be radially symmetric. Since we determined above that \({\bf H}\cdot\hat{\bf z}\) is also zero, \({\bf H}\) must be entirely \(\pm\hat{\bf \phi}\)-directed.

From the above considerations, the most general form of the magnetic field intensity can be written \({\bf H} = \hat{\bf \phi}H(\rho)\). Substituting this into Equation \ref{m0119_eACL1}, we obtain

\begin{aligned}

I_{e n c l} &=\int_{\phi=0}^{2 \pi}[\hat{\phi} H(\rho)] \cdot(\hat{\phi} \rho d \phi) \\

&=\rho H(\rho) \int_{\phi=0}^{2 \pi} d \rho \\

&=2 \pi \rho H(\rho)

\end{aligned}

Therefore, \(H(\rho)=I_{encl}/2\pi \rho\). Reassociating the known direction, we obtain:

\[{\bf H} = \hat{\bf \phi}\frac{I_{encl}}{2\pi \rho}\]

Therefore, the field outside of the wire is:

\[\boxed{ {\bf H} = \hat{\bf \phi}\frac{I}{2\pi \rho} ~~ \mbox{for} ~ \rho\ge a } \label{m0119_eACLLCe}\]

whereas the field inside the wire is:

\[\boxed{ {\bf H} = \hat{\bf \phi}\frac{I\rho}{2\pi a^2} ~~ \mbox{for} ~ \rho<a } \label{m0119_eACLLCi}\]

(By the way, this is a good time for a units check.)

Note that as \(\rho\) increases from zero to \(a\) (i.e., inside the wire), the magnetic field is proportional to \(\rho\) and therefore increases. However, as \(\rho\) continues to increase beyond \(a\) (i.e., outside the wire), the magnetic field is proportional to \(\rho^{-1}\) and therefore decreases.

If desired, the associated magnetic flux density can be obtained using \({\bf B} = \mu {\bf H}\).

## Summarizing

The magnetic field due to current in an infinite straight wire is given by Equations [m0119_eACLLCe] (outside the wire) and [m0119_eACLLCi] (inside the wire). The magnetic field is \(+\hat{\bf \phi}\)-directed for current flowing in the \(+z\) direction, so the magnetic field lines form concentric circles perpendicular to and centered on the wire.

Finally, we point out another “right-hand rule” that emerges from this solution, shown in Figure \(\PageIndex{2}\) and summarized below:

The magnetic field due to current in an infinite straight wire points in the direction of the curled fingers of the right hand when the thumb of the right hand is aligned in the direction of current flow.

This simple rule turns out to be handy in quickly determining the relationship between the directions of the magnetic field and current flow in many other problems, and so is well worth committing to memory.

## Contributors and Attributions

Ellingson, Steven W. (2018) Electromagnetics, Vol. 1. Blacksburg, VA: VT Publishing. https://doi.org/10.21061/electromagnetics-vol-1 Licensed with CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0. Report adoption of this book here. If you are a professor reviewing, adopting, or adapting this textbook please help us understand a little more about your use by filling out this form.