Skip to main content
K12 LibreTexts

19.1: Electromagnet

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

    \(\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}\)
    An electric powered Tesla
    Figure 19.1.1

    One of the most famous electric car companies is Tesla, named after Nikola Tesla. These electric cars, and all others, require an electromagnet to run the engine.


    A long coil of wire consisting of many loops of wire and making a complete circuit is called a solenoid. The magnetic field within a solenoid can be quite large since it is the sum of the fields due to the current in each individual loop.

    Diagram of the magnetic field of a solenoid
    Figure 19.1.2

    The magnetic field around the wire is determined by a hand rule. Since this description doesn’t mention electron flow, we must assume that the current indicated by I is conventional current (positive). Therefore, we would use a right hand rule. We grasp a section of wire with our right hand pointing the thumb in the direction of the current flow and our fingers will curl around the wire in the direction of the magnetic field. Therefore, the field points down the cavity in these loops from right to left as shown in the sketch.

    If a piece of iron is placed inside the coil of wire, the magnetic field is greatly increased because the domains of the iron are aligned by the magnetic field of the current. The resulting magnetic field is hundreds of time stronger than the field from the current alone. This arrangement is called an electromagnet. The picture below shows an electromagnet with an iron bar inside a coil.

    Electromagnet formed by a wire wrapped around an iron core
    Figure 19.1.3

    Our knowledge of electromagnets developed from a series of observations. In 1820, Hans Oersted discovered that a current-carrying wire produced a magnetic field. Later in the same year, André-Marie Ampere discovered that a coil of wire acted like a permanent magnet and François Arago found that an iron bar could be magnetized by putting it inside of a coil of current-carrying wire. Finally, William Sturgeon found that leaving the iron bar inside the coil greatly increased the magnetic field.

    Two major advantages of electromagnets are that they are extremely strong magnetic fields, and that the magnetic field can be turned on and off. When the current flows through the coil, it is a powerful magnet, but when the current is turned off, the magnetic field essentially disappears.

    A telegraph is one example of a device that utilizes an electromagnet and its ability to be turned on and off to transmit information very long distances. When the electromagnet is on, it creates a click. When it is off, there is no click. We translate the language of clicks and no-clicks into alphabet characters, known as Morse Code. Launch the Telegraph simulation below and click on a letter in the Morse code chart. Then, press play to hear how the telegraph communicates this letter using electromagnets:

    Interactive Element

    Electromagnets find use in many practical applications. Electromagnets are used to lift large masses of magnetic materials such as scrap iron, rolls of steel, and auto parts.

    Electromagnet on a loading dock
    Figure 19.1.4

    The overhead portion of this machine (painted yellow) is a lifting electromagnet. It is lowered to the deck where steel pipe is stored and it picks up a length of pipe and moves it to another machine where it is set upright and lowered into an oil well drill hole.

    Electromagnets are essential to the design of the electric generator and electric motor and are also employed in circuit breakers, television receivers, loudspeakers, electric dead bolts, car starters, clothes washers, atomic particle accelerators, and electromagnetic brakes and clutches. Electromagnets are commonly used as switches in electrical machines or even a simple doorbell. Launch the Doorbell simulation below to learn more:

    Interactive Element


    • A solenoid is a long coil of wire consisting of many loops of wire that makes a complete circuit.
    • An electromagnet is a piece of iron inside a solenoid.
    • While the magnetic field of a solenoid may be quite large, an electromagnet has a significantly larger magnetic field.
    • Electromagnets' magnetic fields can be easily turned off by just halting the current.


    1. Magnetism is always present when electric charges ___________.
    2. What happens to the strength of an electromagnet if the number of loops of wire is increased?
    3. What happens to the strength of an electromagnet if the current in the wire is increased?
    4. Which direction does the magnetic field point in the solenoid sketched here?
    Practice problem for determining the direction of the magnetic field of a solenoid
    Figure 19.1.5

    Explore More

    Use this resource to answer the questions that follow.

    1. What components are needed to make a homemade electromagnet?
    2. What objects were attracted by the electromagnet in the video?

    Additional Resources

    Study Guide: Magnetism Study Guide

    Real World Application: Lucky Discovery


    This page titled 19.1: Electromagnet is shared under a CK-12 license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    CK-12 Foundation
    CK-12 Foundation is licensed under CK-12 Curriculum Materials License
    • Was this article helpful?