Skip to main content
Physics LibreTexts

11.3: Magnetic Fields and Lines

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

    By the end of this section, you will be able to:

    • Define the magnetic field based on a moving charge experiencing a force
    • Apply the right-hand rule to determine the direction of a magnetic force based on the motion of a charge in a magnetic field
    • Sketch magnetic field lines to understand which way the magnetic field points and how strong it is in a region of space

    We have outlined the properties of magnets, described how they behave, and listed some of the applications of magnetic properties. Even though there are no such things as isolated magnetic charges, we can still define the attraction and repulsion of magnets as based on a field. In this section, we define the magnetic field, determine its direction based on the right-hand rule, and discuss how to draw magnetic field lines.

    Defining the Magnetic Field

    A magnetic field is defined by the force that a charged particle experiences moving in this field, after we account for the gravitational and any additional electric forces possible on the charge. The magnitude of this force is proportional to the amount of charge q, the speed of the charged particle v, and the magnitude of the applied magnetic field. The direction of this force is perpendicular to both the direction of the moving charged particle and the direction of the applied magnetic field. Based on these observations, we define the magnetic field strength B based on the magnetic force \(\vec{F}\) on a charge q moving at velocity as the cross product of the velocity and magnetic field, that is,

    \[\vec{F} = q\vec{v} \times \vec{B}. \label{eq1}\]

    In fact, this is how we define the magnetic field \(\vec{B}\) - in terms of the force on a charged particle moving in a magnetic field. The magnitude of the force is determined from the definition of the cross product as it relates to the magnitudes of each of the vectors. In other words, the magnitude of the force satisfies

    \[F = qv \, B \sin \, \theta \label{eq2}\]

    where θ is the angle between the velocity and the magnetic field.

    The SI unit for magnetic field strength \(B\) is called the tesla (T) after the eccentric, but brilliant inventor Nikola Tesla (1856–1943), where

    \[1 \, T = \frac{1 \, N}{A \cdot m}.\]

    A smaller unit, called the gauss (G) is sometimes used, where

    \[1 \, G = 10^{-4} \,T\]

    The strongest permanent magnets have fields near 2 T; superconducting electromagnets may attain 10 T or more. Earth’s magnetic field on its surface is only about \(5 \times 10^{-5}\, T\) or \(0.5 \,G\).

    Problem-Solving Strategy: Direction of the Magnetic Field by the Right-Hand Rule

    The direction of the magnetic force \(\vec{F}\) is perpendicular to the plane formed by \(\vec{v}\) and \(\vec{B}\) as determined by the right-hand rule-1 (or RHR-1), which is illustrated in Figure \(\PageIndex{1}\).

    1. Orient your right hand so that your fingers curl in the plane defined by the velocity and magnetic field vectors.
    2. Using your right hand, sweep from the velocity toward the magnetic field with your fingers through the smallest angle possible.
    3. The magnetic force is directed where your thumb is pointing.
    4. If the charge was negative, reverse the direction found by these steps.
      An illustration of the right hand rule. The palm of the right hand faces the same as the field, B, in this case out of the page. The fingers of the right hand point in the direction of v, in this case to the left, and curl toward B, rotating v into B. The thumb of the right hand points in the direction of the force, in this case up.
      Figure \(\PageIndex{1}\): Magnetic fields exert forces on moving charges. The direction of the magnetic force on a moving charge is perpendicular to the plane formed by b\(\vec{v}\) and \(\vec{B}\) and follows the right-hand rule-1 (RHR-1) as shown. The magnitude of the force is proportional to \(q, \, v, \, B,\) and the sine of the angle between \(\vec{v}\) and \(\vec{B}\).
    Note

    Visit this website for additional practice with the direction of magnetic fields.

    There is no magnetic force on static charges. However, there is a magnetic force on charges moving at an angle to a magnetic field. When charges are stationary, their electric fields do not affect magnets. However, when charges move, they produce magnetic fields that exert forces on other magnets. When there is relative motion, a connection between electric and magnetic forces emerges - each affects the other.

    Example \(\PageIndex{1}\): An Alpha-Particle Moving in a Magnetic Field

    An alpha-particle \((q = 3.2 \times 10^{-19}C)\) moves through a uniform magnetic field whose magnitude is 1.5 T. The field is directly parallel to the positive z-axis of the rectangular coordinate system of Figure \(\PageIndex{2}\). What is the magnetic force on the alpha-particle when it is moving (a) in the positive x-direction with a speed of \(5.0 \times 10^4 m/s\)? (b) in the negative y-direction with a speed of \(5.0 \times 10^4 m/s\)? (c) in the positive z-direction with a speed of \(5.0 \times 10^4 m/s\)? (d) with a velocity \(\vec{v} = \left(2.0 \hat{i} - 3.0 \hat{j} + 1.0 \hat{k} \right) \times 10^4 m/s\)?

    Four examples of the magnetic force on a positive particle moving in a magnetic field. In each case, the field is in the z direction (up.) Figure a shows the particle moving in the positive x direction. The force is in the negative y direction. Figure b shows the particle moving in the negative y direction. The force is in the negative x direction. Figure c shows the particle moving in the positive z direction. There is no force. Figure d shows the particle moving in the x y plane in a direction that is in the positive x and negative y quadrant. The force is in the x y plane, perpendicular to the velocity, in the quadrant with negative x and negative y.
    Figure \(\PageIndex{2}\): The magnetic forces on an alpha-particle moving in a uniform magnetic field. The field is the same in each drawing, but the velocity is different.

    Strategy

    We are given the charge, its velocity, and the magnetic field strength and direction. We can thus use the equation \(\vec{F} = q \vec{v} \times \vec{B}\) or \(F = qv \, B sin\, \theta\) to calculate the force. The direction of the force is determined by RHR-1.

    Solution

    1. First, to determine the direction, start with your fingers pointing in the positive x-direction. Sweep your fingers upward in the direction of magnetic field. Your thumb should point in the negative y-direction. This should match the mathematical answer. To calculate the force, we use the given charge, velocity, and magnetic field and the definition of the magnetic force in cross-product form to calculate: \[\vec{F} = q\vec{v} \times \vec{B} = (3.2 \times 10^{-19} C) (5.0 \times 10^4 m/s \, \hat{i}) \times (1.5 \, T \, \hat{k}) = - 2.4 \times 10^{-14} N \, \hat{j}\]
    2. First, to determine the directionality, start with your fingers pointing in the negative y-direction. Sweep your fingers upward in the direction of magnetic field as in the previous problem. Your thumb should be open in the negative x-direction. This should match the mathematical answer. To calculate the force, we use the given charge, velocity, and magnetic field and the definition of the magnetic force in cross-product form to calculate: \[\vec{F} = q\vec{v} \times \vec{B} = (3.2 \times 10^{-19} C) (- 5.0 \times 10^4 m/s \, \hat{i}) \times (1.5 \, T \, \hat{k}) = - 2.4 \times 10^{-14} N \, \hat{i}\] An alternative approach is to use Equation \ref{eq2} to find the magnitude of the force. This applies for both parts (a) and (b). Since the velocity is perpendicular to the magnetic field, the angle between them is 90 degrees. Therefore, the magnitude of the force is: \[F = qv \, B \sin \, \theta = (3.2 \times 10^{-19} C)(5.0 \times 10^4m/s)(1.5 \, T) sin (90^o)) = 2.4 \times 10^{-14} N.\]
    3. Since the velocity and magnetic field are parallel to each other, there is no orientation of your hand that will result in a force direction. Therefore, the force on this moving charge is zero. This is confirmed by the cross product. When you cross two vectors pointing in the same direction, the result is equal to zero.
    4. First, to determine the direction, your fingers could point in any orientation; however, you must sweep your fingers upward in the direction of the magnetic field. As you rotate your hand, notice that the thumb can point in any x- or y-direction possible, but not in the z-direction. This should match the mathematical answer. To calculate the force, we use the given charge, velocity, and magnetic field and the definition of the magnetic force in cross-product form to calculate: \[\vec{F} = q\vec{v} \times \vec{B} = (3.2 \times 10^{-19} C)((2.0 \hat{i} - 3.0 \hat{j} + 1.0 \hat{k}) \times 10^4 m/s) \times (1.5 \, T \hat{k})\] \[(-14.4 \hat{i} - 9.6 \hat{j}) \times 10^{-15}N.\] This solution can be rewritten in terms of a magnitude and angle in the xy-plane: \[|\vec{F}| = \sqrt{F_x^2 + F_y^2} = \sqrt{(-14.4)^2 + (-9.6)^2} \times 10^{-15} N = 1.7 \times 10^{-14}N\] \[\theta = tan^{-1} \left(\frac{F_y}{F_x}\right) = tan^{-1} \left(\frac{-9.6 \times 10^{-15}N}{-14.4 \times 10^{-15}N} \right) = 34^o.\] The magnitude of the force can also be calculated using Equation \ref{eq2}. The velocity in this question, however, has three components. The z-component of the velocity can be neglected, because it is parallel to the magnetic field and therefore generates no force. The magnitude of the velocity is calculated from the x- and y-components. The angle between the velocity in the xy-plane and the magnetic field in the z-plane is 90 degrees. Therefore, the force is calculated to be: \[|\vec{v}| = \sqrt{(2)^2 + (-3)^2} \times 10^4 \frac{m}{s} = 3.6 \times 10^4 \frac{m}{s}\]\[F = qv \, Bsin \, \theta = (3.2 \times 10^{-19}C)(3.6 \times 10^4 m/s) (1.5 \, T) sin (90^o) = 1.7 \times 10^{-14} N\]
    This is the same magnitude of force calculated by unit vectors.

    Significance

    The cross product in this formula results in a third vector that must be perpendicular to the other two. Other physical quantities, such as angular momentum, also have three vectors that are related by the cross product. Note that typical force values in magnetic force problems are much larger than the gravitational force. Therefore, for an isolated charge, the magnetic force is the dominant force governing the charge’s motion.

    Exercise \(\PageIndex{1}\)

    Repeat the previous problem with the magnetic field in the x-direction rather than in the z-direction. Check your answers with RHR-1.

    Answer a

    0 N

    Answer b

    \(2.4 \times 10^{-14}\hat{k} N\)

    Answer c

    \(2.4 \times 10^{-14}\hat{j} N\)

    Answer d

    \(7.2 \hat{j} + 2.2 \hat{k}) \times 10^{-15}N\)

    Representing Magnetic Fields

    The representation of magnetic fields by magnetic field lines is very useful in visualizing the strength and direction of the magnetic field. As shown in Figure \(\PageIndex{3}\), each of these lines forms a closed loop, even if not shown by the constraints of the space available for the figure. The field lines emerge from the north pole (N), loop around to the south pole (S), and continue through the bar magnet back to the north pole.

    Magnetic field lines have several hard-and-fast rules:

    1. The direction of the magnetic field is tangent to the field line at any point in space. A small compass will point in the direction of the field line.
    2. The strength of the field is proportional to the closeness of the lines. It is exactly proportional to the number of lines per unit area perpendicular to the lines (called the areal density).
    3. Magnetic field lines can never cross, meaning that the field is unique at any point in space.
    4. Magnetic field lines are continuous, forming closed loops without a beginning or end. They are directed from the north pole to the south pole.

    The last property is related to the fact that the north and south poles cannot be separated. It is a distinct difference from electric field lines, which generally begin on positive charges and end on negative charges or at infinity. If isolated magnetic charges (referred to as magnetic monopoles) existed, then magnetic field lines would begin and end on them.

    An illustration of magnetic field lines for three configurations. Figure a shows a bar magnet with a north and south pole. The field lines come out of the north pole and curve out and around to the south pole. Figure b shows north and south poles separated by a gap. The field lines again come out of the north pole, curve out, and enter the south pole. The lines are denser in the gap, and less dense outside. Figure c shows two north poles separated by a gap. Field lines come out of both poles and curve outward. The lines coming out of each pole appear as if the repel the lines coming from the other pole.
    Figure \(\PageIndex{3}\): Magnetic field lines are defined to have the direction in which a small compass points when placed at a location in the field. The strength of the field is proportional to the closeness (or density) of the lines. If the interior of the magnet could be probed, the field lines would be found to form continuous, closed loops. To fit in a reasonable space, some of these drawings may not show the closing of the loops; however, if enough space were provided, the loops would be closed.

    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).


    This page titled 11.3: Magnetic Fields and Lines is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.