Skip to main content
Physics LibreTexts

2.2: Magnetic Force on a Current-Carrying Wire

  • Page ID
  • \( \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}}} \)

    Consider an infinitesimally-thin and perfectly-conducting wire bearing a current \(I\) (SI base units of A) in free space. Let \({\bf B}\left({\bf r}\right)\) be the impressed magnetic flux density at each point \({\bf r}\) in the region of space occupied by the wire. By impressed, we mean that the field exists in the absence of the current-carrying wire, as opposed to the field that is induced by this current. Since current consists of charged particles in motion, we expect that \({\bf B}({\bf r})\) will exert a force on the current. Since the current is constrained to flow on the wire, we expect this force will also be experienced by the wire. Let us now consider this force.

    To begin, recall that the force exerted on a particle bearing charge \(q\) having velocity \({\bf v}\) is

    \[{\bf F}_m\left({\bf r}\right) = q{\bf v}\left({\bf r}\right) \times {\bf B}\left({\bf r}\right) \nonumber \]

    Thus, the force exerted on a differential amount of charge \(dq\) is

    \[d{\bf F}_m\left({\bf r}\right) = dq~{\bf v}\left({\bf r}\right) \times {\bf B}\left({\bf r}\right) \nonumber \]

    Let \(d{\bf l}\left({\bf r}\right)\) represent a differential-length segment of the wire at \({\bf r}\), pointing in the direction of current flow. Then

    \[dq~{\bf v}\left({\bf r}\right) = I d{\bf l}\left({\bf r}\right) \nonumber \]

    (If this is not clear, it might help to consider the units: On the left, C\(\cdot\)m/s \(=\) (C/s)\(\cdot\)m \(=\) A\(\cdot\)m, as on the right.) Subsequently,

    \[d{\bf F}_m\left({\bf r}\right) = I d{\bf l}\left({\bf r}\right) \times {\bf B}\left({\bf r}\right) \label{m0017_edmforce} \]

    There are three important cases of practical interest. First, consider a straight segment \({\bf l}\) forming part of a closed loop of current in a spatially-uniform impressed magnetic flux density \({\bf B}\left({\bf r}\right)={\bf B}_0\). In this case, the force exerted by the magnetic field on such a segment is given by Equation \ref{m0017_edmforce} with \(d{\bf l}\) replaced by \({\bf l}\); i.e.:

    \[\boxed{ {\bf F}_m = I {\bf l} \times {\bf B}_0 } \label{m0017_emforce} \]


    The force experienced by a straight segment of current-carrying wire in a spatially-uniform magnetic field is given by Equation \ref{m0017_emforce}.

    The second case of practical interest is a rigid closed loop of current in a spatially-uniform magnetic flux density \({\bf B}_0\). If the loop consists of straight sides – e.g., a rectangular loop – then the force applied to the loop is the sum of the forces applied to each side separately, as determined by Equation \ref{m0017_emforce}. However, we wish to consider loops of arbitrary shape. To accommodate arbitrarily-shaped loops, let \(\mathcal{C}\) be the path through space occupied by the loop. Then the force experienced by the loop is

    \[\begin{aligned} {\bf F} &= \int_{\mathcal{C}} d{\bf F}_m\left({\bf r}\right) \nonumber \\ &= \int_{\mathcal{C}} I d{\bf l}\left({\bf r}\right) \times {\bf B}_0 \end{aligned} \nonumber \]

    Since \(I\) and \({\bf B}_0\) are constants, they may be extracted from the integral:

    \[{\bf F} = I \left[ \int_{\mathcal{C}} d{\bf l}\left({\bf r}\right) \right] \times {\bf B}_0 \nonumber \]

    Note the quantity in square brackets is zero. Therefore:

    The net force on a current-carrying loop of wire in a uniform magnetic field is zero.

    Note that this does not preclude the possibility that the rigid loop rotates; for example, the force on opposite sides of the loop may be equal and opposite. What we have found is merely that the force will not lead to a translational net force on the loop; e.g., force that would propel the loop away from its current position in space. The possibility of rotation without translation leads to the most rudimentary concept for an electric motor. Practical electric motors use variations on essentially this same idea; see “Additional Reading” for more information.

    m0017_f2wires.png Figure \(\PageIndex{1}\): Parallel current-carrying wires. ( CC BY-SA 4.0; Y. Zhao)

    The third case of practical interest is the force experienced by two parallel infinitesimally-thin wires in free space, as shown in Figure \(\PageIndex{1}\). Here the wires are infinite in length (we’ll return to that in a moment), lie in the \(x=0\) plane, are separated by distance \(d\), and carry currents \(I_1\) and \(I_2\), respectively. The current in wire 1 gives rise to a magnetic flux density \({\bf B}_1\). The force exerted on wire 2 by \({\bf B}_1\) is:

    \[{\bf F}_2 = \int_{\mathcal{C}} \left[ I_2 d{\bf l}\left({\bf r}\right) \times {\bf B}_1\left({\bf r}\right) \right] \label{m0017_eF2} \]

    where \(\mathcal{C}\) is the path followed by \(I_2\), and \(d{\bf l}\left({\bf r}\right)=\hat{\bf z}dz\). A simple way to determine \({\bf B}_1\) in this situation is as follows. First, if wire 1 had been aligned along the \(x=y=0\) line, then the magnetic flux density everywhere would be

    \[\hat{\bf \phi}\frac{\mu_0 I_1}{2\pi\rho} \nonumber \]

    In the present problem, wire 1 is displaced by \(d/2\) in the \(-\hat{\bf y}\) direction. Although this would seem to make the new expression more complicated, note that the only positions where values of \({\bf B}_1\left({\bf r}\right)\) are required are those corresponding to \(\mathcal{C}\); i.e., points on wire 2. For these points,

    \[{\bf B}_1\left({\bf r}\right) = -\hat{\bf x}\frac{\mu_0 I_1}{2\pi d} ~~~ \mbox{along}~\mathcal{C} \nonumber \]

    That is, the relevant distance is \(d\) (not \(\rho\)), and the direction of \({\bf B}_1\left({\bf r}\right)\) for points along \(\mathcal{C}\) is \(-\hat{\bf x}\) (not \(\hat{\bf \phi}\)). Returning to Equation \ref{m0017_eF2}, we obtain:

    \[\begin{aligned} {\bf F}_2 &= \int_{\mathcal{C}} \left[ I_2~\hat{\bf z}dz \times \left(-\hat{\bf x}\frac{\mu_0 I_1}{2\pi d}\right) \right] \nonumber \\ &= -\hat{\bf y}\frac{\mu_0 I_1 I_2}{2\pi d} ~ \int_{\mathcal{C}} dz\end{aligned} \nonumber \]

    The remaining integral is simply the length of wire 2 that we wish to consider. Infinitely-long wires will therefore result in infinite force. This is not a very interesting or useful result. However, the force per unit length of wire is finite, and is obtained simply by dropping the integral in the previous equation. We obtain:

    \[\frac{{\bf F}_2}{\Delta l} = -\hat{\bf y}\frac{\mu_0 I_1 I_2}{2\pi d} \nonumber \]

    where \(\Delta l\) is the length of the section of wire 2 being considered. Note that when the currents \(I_1\) and \(I_2\) flow in the same direction (i.e., have the same sign), the magnetic force exerted by the current on wire 1 pulls wire 2 toward wire 1.

    The same process can be used to determine the magnetic force \({\bf F}_1\) exerted by the current in wire 1 on wire 2. The result is

    \[\frac{{\bf F}_1}{\Delta l} = +\hat{\bf y}\frac{\mu_0 I_1 I_2}{2\pi d} \nonumber \]

    When the currents \(I_1\) and \(I_2\) flow in the same direction (i.e., when the product \(I_1 I_2\) is positive), then the magnetic force exerted by the current on wire 2 pulls wire 1 toward wire 2.

    We are now able to summarize the results as follows:

    If currents in parallel wires flow in the same direction, then the wires attract; whereas if the currents flow in opposite directions, then the wires repel.


    The magnitude of the associated force is \(\mu_0 I_1 I_2/2\pi d\) for wires separated by distance \(d\) in non-magnetic media.

    If the wires are fixed in position and not able to move, these forces represent stored (potential) energy. It is worth noting that this is precisely the energy which is stored by an inductor – for example, the two wire segments here might be interpreted as segments in adjacent windings of a coil-shaped inductor.

    Example \(\PageIndex{1}\): DC Power Cable

    DC power cable. A power cable connects a 12 V battery to a load exhibiting an impedance of \(10~\Omega\). The conductors are separated by 3 mm by a plastic insulating jacket. Estimate the force between the conductors.


    The current flowing in each conductor is 12 V divided by \(10~\Omega\), which is 1.2 A. In terms of the theory developed in this section, a current \(I_1=+1.2\) A flows from the positive terminal of the battery to the load on one conductor, and a current \(I_2=-1.2\) A returns to the battery on the other conductor. The change in sign indicates that the currents at any given distance from the battery are flowing in opposite directions. Also from the problem statement, \(d=3\) mm and the insulator is presumably non-magnetic. Assuming the conductors are approximately straight, the force between conductors is

    \[\approx \frac{\mu_0 I_1 I_2}{2\pi d} \cong -96.0~\mu\mbox{N} \nonumber \]

    with the negative sign indicating that the wires repel.

    Note in the above example that this force is quite small, which explains why it is not always observed. However, this force becomes significant when the current is large or when many sets of conductors are mechanically bound together (amounting to a larger net current), as in a motor.

    Additional Reading:

    • “Electric motor” on Wikipedia.

    This page titled 2.2: Magnetic Force on a Current-Carrying Wire is shared under a CC BY-SA license and was authored, remixed, and/or curated by Steven W. Ellingson (Virginia Tech Libraries' Open Education Initiative) .

    • Was this article helpful?