Skip to main content

Unit 12 · Topic 12.3

12.3 Magnetism and Current-Carrying Wires

A current in a wire is lots of moving charges, so it makes a magnetic field and feels magnetic forces. A long straight wire's field circles it with strength B = μ₀I/(2πr), and a wire in a magnetic field feels a force IℓB sin θ. Together these explain why parallel currents attract and how electric motors work.

Key terms

  • magnetic field of a wire
  • right-hand rule
  • vacuum permeability
  • force on a current-carrying wire
  • parallel wires

The field around a straight wire

A long, straight wire carrying current I makes a magnetic field that wraps around it in circles centered on the wire. At every point the field points along that circle. It never points toward the wire, away from it, or along its length. Its size at a perpendicular distance r from the wire is:

B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

μ₀ = 4π × 10⁻⁷ T·m/A. The field is proportional to the current and inversely proportional to the distance (1/r, not 1/r²).

Direction: grab the wire with your right hand, thumb along the current. Your fingers curl the way the field circles. For a wire coming out of the page, the field circles counterclockwise.

Loops and several wires

Bend a wire into a circular loop and the fields from every part of it point the same way at the center, along the loop's axis. Curl the fingers of your right hand around the loop in the direction of the current, and your thumb points along the field at the center. A loop acts like a small bar magnet, with its north side where the field comes out.

With two or more wires, find each wire's field at the point (size and direction) and add them as vectors. Between two parallel wires with currents in opposite directions, the fields point the same way and add. With currents in the same direction, they point opposite ways and partly cancel.

The force on a current-carrying wire

A wire carrying current through a magnetic field feels a force, because the field pushes on each moving charge inside it. For a straight length ℓ of wire inside a uniform field:

FB=IℓBsin⁡θF_B = I\ell B\sin\theta

θ is the angle between the current and the field. The force is biggest when the wire runs perpendicular to the field and zero when it runs along the field. For direction, use the same right-hand rule as for a moving positive charge, with the current in place of the velocity. Electric motors use this force to spin coils of wire.

Parallel wires

Each of two parallel wires sits in the other's magnetic field, so each feels a force. Currents in the same direction attract; currents in opposite directions repel. This is the reverse of the rule for charges, so learn it separately.

The forces on the two wires form a Newton's third law pair: they're equal in size and opposite in direction, even if one wire carries much more current than the other.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1Calculator allowed

    Field near a wire

    A long straight wire lies along the page and carries 10 A to the right. Find the size of the magnetic field 5.0 cm above the wire (in the plane of the page), and its direction there.

    Show the solution
    1. Step 1: B=μ0I2πr=(4π×10−7)(10)2π(0.050)=4.0×10−5B = \dfrac{\mu_0 I}{2\pi r} = \dfrac{(4\pi \times 10^{-7})(10)}{2\pi(0.050)} = 4.0 \times 10^{-5} T.
    2. Step 2: Direction: right thumb along the current (to the right). Above the wire, your fingers come out of the page toward you.
    3. Step 3: That's close to the size of Earth's field, which is why a compass held near a wire with a few amps flowing visibly turns.

    Answer: 4.0 × 10⁻⁵ T, out of the page

  2. Example 2Calculator allowed

    Two wires with opposite currents

    Two long parallel wires are 0.10 m apart. One carries 10 A and the other carries 20 A in the opposite direction. (a) Find the magnetic field at the midpoint between them. (b) Find the force on a 2.0 m length of each wire, and say whether they attract or repel.

    Show the solution
    1. Step 1: (a) Each wire is 0.050 m from the midpoint. The 10 A wire makes 4.0 × 10⁻⁵ T there and the 20 A wire makes 8.0 × 10⁻⁵ T. With opposite currents, both fields point the same way between the wires, so they add: 1.2 × 10⁻⁴ T.
    2. Step 2: (b) The field of the 10 A wire at the 20 A wire, 0.10 m away: B=(4π×10−7)(10)2π(0.10)=2.0×10−5B = \dfrac{(4\pi \times 10^{-7})(10)}{2\pi(0.10)} = 2.0 \times 10^{-5} T.
    3. Step 3: Force on 2.0 m of the 20 A wire: F = IℓB = (20)(2.0)(2.0 × 10⁻⁵) = 8.0 × 10⁻⁴ N.
    4. Step 4: By Newton's third law, the 10 A wire feels the same 8.0 × 10⁻⁴ N in the opposite direction. Opposite currents repel.

    Answer: (a) 1.2 × 10⁻⁴ T. (b) 8.0 × 10⁻⁴ N on each wire, repelling.

  3. Example 3Calculator allowed

    Wire between magnet poles

    A horizontal wire carries 5.0 A toward the east. A 0.30 m length of it sits in a uniform 0.40 T magnetic field pointing north. Find the size and direction of the force on the wire. What if the current flowed north instead?

    Show the solution
    1. Step 1: The current (east) is perpendicular to the field (north), so θ = 90°: F = IℓB = (5.0)(0.30)(0.40) = 0.60 N.
    2. Step 2: Direction: fingers east, curl toward north, thumb points straight up. The force is upward.
    3. Step 3: If the current flowed north, it would run along the field (θ = 0°), and the force would be zero.

    Answer: 0.60 N upward; zero if the current runs north

Common mistakes

  • Using 1/r² for a wire's field. It falls off as 1/r.
  • Mixing up the parallel-wire rule with the charge rule. Same-direction currents attract; same-sign charges repel.
  • Thinking the wire with more current feels the bigger force. The forces are a third-law pair and are equal.
  • Drawing a wire's field pointing toward or away from the wire. It circles around the wire.

On the exam

  • Expect to draw field directions around wires (into or out of the page) and to add the fields of two wires at a point.
  • Factor-of-change questions on B = μ₀I/(2πr) and F = IℓB are common, as is explaining why parallel wires attract or repel using one wire's field and the force on the other.

Connected topics

Videos

  • AP Physics 2 - Unit 12 - Lesson 2 - Magnetic Fields from Current-Carrying Wires

    Allen Tsao The STEM CoachWatch on YouTube (opens in a new tab)

  • Magnetic Field of a Wire

    Bozeman ScienceWatch on YouTube (opens in a new tab)

  • Magnetic Force on a Current Carrying Wire

    The Organic Chemistry TutorWatch on YouTube (opens in a new tab)

  • Magnetic Force on Two Wires EXPLAINED! | AP Physics 2 - Unit 12 Lesson 5

    Allen Tsao The STEM CoachWatch on YouTube (opens in a new tab)

  • AP Physics C - Magnetic Fields due to Current-Carrying Wires

    Dan Fullerton (APlusPhysics)Watch on YouTube (opens in a new tab)

  • Force Between Two Parallel Current-Carrying Wires | Doc Physics

    Doc SchusterWatch on YouTube (opens in a new tab)

Check yourself

4 questions on 12.3 Magnetism and Current-Carrying Wires. Pick an answer to see if you got it, and why.

Question 1 of 4Calculator allowed

A long, straight wire carries a current of 10 A. What is the magnitude of the magnetic field 0.050 m from the wire?

Question 2 of 4Calculator allowed

The magnetic field at a distance r from a long, straight current-carrying wire is B. What is the field at a distance 3r?

Question 3 of 4Calculator allowed

A long vertical wire carries current straight up. Take east as +x and north as +y. What is the direction of the magnetic field at a point due east of the wire?

Question 4 of 4Calculator allowed

A 0.40 m length of wire carries a current of 5.0 A at right angles to a uniform 0.20 T magnetic field. What is the magnitude of the magnetic force on that length of wire?

0 of 4 answered