AP PHYSICS 2: ALGEBRA-BASED • MAGNETISM AND ELECTROMAGNETISM

Magnetism and Current-Carrying Wires

How moving charges create magnetic fields and experience forces that power electric motors and shape modern technology.

Historical Context & Motivation

The connection between electricity and magnetism was not always obvious—these phenomena were studied as completely separate branches of natural philosophy for centuries. Ancient civilizations were familiar with lodestones, naturally magnetized pieces of magnetite that could attract iron, while the Greeks recognized that rubbed amber could attract lightweight objects. It was not until the early nineteenth century that a pivotal lecture demonstration revealed the deep link between electric current and magnetic phenomena, launching the field of electromagnetism. The decades that followed produced a cascade of discoveries that culminated in a unified mathematical description of electric and magnetic fields, fundamentally changing our understanding of nature and enabling the technologies that define modern life.

1820
Ørsted's Discovery
Hans Christian Ørsted observed that a compass needle deflected when placed near a wire carrying electric current, demonstrating for the first time that electric currents produce magnetic fields.
1820
Biot-Savart Law
Jean-Baptiste Biot and Félix Savart quantified the magnetic field produced by a current element, establishing the mathematical relationship between current and the resulting field.
1820–1825
Ampère's Force Law
André-Marie Ampère showed that two parallel current-carrying wires exert forces on each other—attracting when currents flow in the same direction and repelling when they flow in opposite directions.
1831
Faraday's Induction
Michael Faraday discovered electromagnetic induction, showing that a changing magnetic field could produce an electric current—the inverse of Ørsted's discovery and the basis of generators.
1865
Maxwell's Equations
James Clerk Maxwell unified electricity and magnetism into a single theoretical framework, predicting electromagnetic waves and revealing light itself to be an electromagnetic phenomenon.

These discoveries raised a central question that this lesson addresses: exactly how does a current-carrying wire interact with a magnetic field, and how can we predict both the force on the wire and the magnetic field the wire itself creates? Understanding these interactions is essential for analyzing motors, solenoids, and the transmission of electrical power.

Core Principles & Definitions

Before diving into calculations, it is important to establish the foundational ideas that govern the behavior of current-carrying wires in magnetic fields. The physics rests on two complementary perspectives: a wire carrying current produces its own magnetic field in the surrounding space, and simultaneously, if that wire is placed in an external magnetic field, the field exerts a force on the wire. Both effects arise from the same underlying principle—moving charges are the source of magnetic fields and the objects upon which magnetic fields act.

1

Magnetic Field from a Wire

A long, straight current-carrying wire produces concentric circular magnetic field lines around it. The direction of the field is given by the right-hand rule: point your thumb in the direction of conventional current and your fingers curl in the direction of the B field.
2

Force on a Wire in an External Field

When a current-carrying wire is placed in an external magnetic field B, the wire experiences a force given by F = ILB sin θ, where θ is the angle between the current direction and the field. The force direction is found using a cross-product right-hand rule.
3

Right-Hand Rules

Two right-hand rules are essential: one curls the fingers around a wire to find field direction, and one uses the open palm (fingers along I, curl toward B) to determine force direction. Both stem from the cross product of vectors.
4

Force Between Parallel Wires

Two parallel wires carrying current interact through their magnetic fields. Parallel currents attract each other; antiparallel currents repel. This interaction historically defined the ampere in the SI system.
KEY TAKEAWAY
Think of a current-carrying wire as a garden hose that also creates a gentle whirlpool in the air around it. Just as a whirlpool pattern has a definite swirl direction determined by the flow, the magnetic field loops around the wire in a direction set by the current. If you place that wire inside someone else's whirlpool (an external magnetic field), the two swirling patterns interact and push the hose sideways—that is the magnetic force. The key insight is that current both creates and responds to magnetic fields, and both behaviors are predictable using right-hand rules.

Visual Explanation — Field Around a Wire

The concentric circles represent the magnetic field lines around a current-carrying wire. The field strength B decreases with distance r from the wire as B = μ₀I/(2πr). The arrows on the circles show the field direction determined by the right-hand rule—thumb along the current, fingers curl in the direction of B.

The diagram above illustrates the fundamental geometry of the magnetic field surrounding a long, straight conductor. Notice that the field lines form closed loops, a defining characteristic of magnetic fields—unlike electric field lines, which begin and end on charges, magnetic field lines always form closed loops. The three dashed circles at increasing radii emphasize that B is inversely proportional to the distance from the wire: doubling the distance halves the field strength. This 1/r dependence (rather than the 1/r² seen in point-charge electric fields) reflects the fact that the wire is an extended, one-dimensional source. The right-hand rule box in the upper-left corner summarizes the procedure: align your right thumb with the direction of conventional current, and your curled fingers indicate the circulation of the B field.

Mathematical Framework

Two key equations govern the physics of current-carrying wires in magnetic fields. The first describes the magnetic field produced by a long, straight wire, and the second gives the force experienced by a current-carrying wire when placed in an external magnetic field. Both are central to the AP Physics 2 exam and appear in the equation sheet provided during the test.

MAGNETIC FIELD OF A LONG STRAIGHT WIRE
B = μ₀I / (2πr)
B = magnetic field magnitude (T), μ₀ = permeability of free space = 4π × 10−7 T·m/A, I = current (A), r = perpendicular distance from wire (m). The field direction is tangent to the circular field line at any point, found via the right-hand rule.
FORCE ON A CURRENT-CARRYING WIRE IN AN EXTERNAL FIELD
F = ILB sin θ
F = magnitude of force on the wire (N), I = current (A), L = length of wire in the field (m), B = external magnetic field magnitude (T), θ = angle between the direction of I and the direction of B. Maximum force when θ = 90°; zero force when θ = 0° (wire parallel to field).
FORCE PER UNIT LENGTH BETWEEN TWO PARALLEL WIRES
F/L = μ₀I₁I₂ / (2πd)
F/L = force per unit length (N/m), I₁ and I₂ = currents in wire 1 and wire 2 (A), d = distance between the wires (m). Currents in the same direction attract; currents in opposite directions repel.

The force between parallel wires can be derived by combining the first two equations. Wire 1 creates a field B₁ = μ₀I₁/(2πd) at the location of wire 2. The force on a length L of wire 2 in that field is F = I₂LB₁ = I₂L × μ₀I₁/(2πd), giving the result shown above. This derivation is a common AP Physics 2 free-response task and illustrates how two fundamental relationships combine to explain the interaction between conductors.

🧭 Direction of the Force
To determine the direction of the force on a current-carrying wire in an external field, use the right-hand rule for cross products: point your fingers in the direction of conventional current (I), curl them toward the external field vector (B), and your thumb points in the direction of the force (F). On the AP exam, you may be given a diagram and asked to identify the force direction—practice applying this rule in three dimensions.

Parallel Wires & Field Superposition

When two long, straight wires are placed parallel to each other and each carries a current, the situation combines both key ideas from this lesson: each wire generates a magnetic field, and each wire sits inside the field created by the other. The result is a mutual force between the wires whose direction depends on whether the currents are parallel (same direction) or antiparallel (opposite directions). This interaction was historically so fundamental that it was used to define the SI unit of current, the ampere, before the 2019 redefinition.

Side-by-side comparison of two parallel wires. In Case A, both currents flow upward and the wires attract. In Case B, the currents flow in opposite directions and the wires repel. Green arrows indicate attractive forces; red arrows indicate repulsive forces. The magnitude of the force per unit length is the same formula in both cases.

The diagram makes a critical point that is frequently tested: the direction of the force depends on the relative orientation of the two currents, not their absolute direction. To see why parallel currents attract, consider the field produced by wire 1 at the location of wire 2. Using the right-hand rule, if I₁ points upward, the field at wire 2's position points into the page (for wire 2 to the right of wire 1). Then the force on wire 2 (carrying current upward through a field into the page) is directed to the left—toward wire 1. A symmetric argument shows wire 1 is pulled toward wire 2. When the currents are antiparallel, the field direction reverses and the force pushes the wires apart.

📝 AP Exam Tip
On the AP Physics 2 exam, you will often need to explain the direction of the force between two wires qualitatively, not just calculate a magnitude. Practice writing a clear verbal argument that references the right-hand rule applied in two steps: first to find the field from one wire at the other's location, then to find the force on the second wire in that field.

Worked Example

Force on a Wire in a Uniform Magnetic Field
1
Step 1 — Read the ProblemA straight wire of length 0.50 m carries a current of 3.0 A and is placed in a uniform external magnetic field of magnitude 0.20 T. The wire is oriented at an angle of 30° relative to the field. Find the magnitude of the magnetic force on the wire.
2
Step 2 — Identify the Relevant EquationThe force on a straight current-carrying wire in a uniform external field is given by F = ILB sin θ, where I is the current, L is the length of wire in the field, B is the field magnitude, and θ is the angle between the current direction and B.
3
Step 3 — Substitute Known ValuesF = (3.0 A)(0.50 m)(0.20 T) sin 30°. We know that sin 30° = 0.50, so this becomes F = (3.0)(0.50)(0.20)(0.50).
4
Step 4 — CalculateF = 3.0 × 0.50 × 0.20 × 0.50 = 0.15 N.
F = 0.15 N
5
Step 5 — Interpret and CheckThe force is 0.15 N, which is less than the maximum possible force of ILB = 0.30 N that would occur if the wire were perpendicular to the field (θ = 90°). Since the wire is at only 30° to the field, the sin factor reduces the force by half, which is physically consistent. The direction of this force would be perpendicular to both the current and the field, determined by the right-hand rule.
Magnetic Field at a Point Near a Wire
1
Step 1 — Read the ProblemA long, straight wire carries a current of 10 A. Calculate the magnitude of the magnetic field at a point 0.04 m from the wire.
2
Step 2 — Write the EquationFor a long, straight wire, B = μ₀I / (2πr), where μ₀ = 4π × 10⁻⁷ T·m/A.
3
Step 3 — SubstituteB = (4π × 10⁻⁷ T·m/A)(10 A) / (2π × 0.04 m). Notice the π cancels: B = (4 × 10⁻⁷ × 10) / (2 × 0.04) = (4 × 10⁻⁶) / (0.08).
4
Step 4 — CalculateB = 5.0 × 10⁻⁵ T = 50 μT.
B = 5.0 × 10⁻⁵ T (50 μT)
5
Step 5 — Context CheckEarth's magnetic field is approximately 50 μT, so a 10 A current at 4 cm produces a field comparable to Earth's field. This is reasonable and illustrates why household wires (carrying several amperes) can deflect a compass at close range.

Comparing Electric and Magnetic Forces on Charges

Students sometimes conflate electric and magnetic forces because both involve charges and fields. A clear comparison highlights important distinctions that appear frequently on the AP Physics 2 exam, particularly in qualitative and conceptual questions.

Comparison of electric and magnetic forces relevant to AP Physics 2
FeatureElectric Force (F = qE)Magnetic Force (F = qvB sin θ / F = ILB sin θ)
Acts onAny charge (moving or stationary)Only moving charges or current-carrying conductors
Direction relative to fieldParallel (or antiparallel) to EPerpendicular to both v (or I) and B
Does work?Yes — can change kinetic energyNo — force is always perpendicular to velocity, so it changes direction but not speed
Depends on velocity?NoYes — zero force if charge is stationary or moving parallel to B
Field linesBegin on + charges, end on − charges (open lines)Always form closed loops — no magnetic monopoles
KEY TAKEAWAY
A useful engineering analogy: the electric force is like a headwind or tailwind on a car—it can speed you up or slow you down along your direction of motion. The magnetic force is like banking on a curved highway—it deflects your path sideways without changing your speed. This is why magnetic forces do no work on individual charges, even though they clearly alter trajectories. In a current-carrying wire, the situation is subtly different—the magnetic force on the moving charges is transmitted to the lattice of the wire, and the wire as a whole can be displaced, so energy can be transferred to the wire's bulk motion (this is how motors work).

Connection to Advanced Theory

The ideas in this lesson—forces on current-carrying wires and the fields they produce—form the foundation for several more advanced topics you will encounter later in the AP Physics 2 course and in college-level electromagnetism. Understanding how the concepts scale up provides motivation and context for deeper study.

How this lesson's ideas connect to more advanced electromagnetism
This Lesson (AP Physics 2)Advanced Extension
B = μ₀I/(2πr) for a single long wireAmpère's law (∮B·dl = μ₀I_enc) generalizes to any closed path and any current distribution, enabling calculation of fields for solenoids and toroids
F = ILB sin θ for a straight wireTorque on a current loop (τ = NIAB sin θ) explains how motors rotate and how magnetic dipole moments arise
Force between two parallel wiresElectromagnetic induction (Faraday's law): changing currents in one wire induce EMFs in nearby conductors—basis of transformers
Right-hand rule for F = IL × BFull vector cross-product formalism in calculus-based physics (F = qv × B), leading to Lorentz force and relativistic electrodynamics

Perhaps the most profound forward connection is that the force between two current-carrying wires can be understood from special relativity. In the rest frame of the moving charges in one wire, length contraction alters the apparent charge densities in the other wire, producing what appears to be a net electrostatic force. What we call the "magnetic force" is, at its deepest level, a relativistic correction to the electric force. While this derivation is well beyond the AP Physics 2 syllabus, it underscores a powerful idea: electricity and magnetism are two aspects of a single electromagnetic interaction, unified by Maxwell's equations and illuminated by Einstein's theory of relativity.

Practice Problems

1
A long, straight wire carries a steady current directed to the right. A proton is located directly above the wire and is momentarily at rest. Which of the following best describes the magnetic force on the proton at that instant?
2
A straight wire of length 0.80 m carries a current of 5.0 A perpendicular to a uniform magnetic field of 0.30 T. What is the magnitude of the force on the wire?
3
Two long, parallel wires are separated by 0.10 m. Wire 1 carries a current of 8.0 A and Wire 2 carries a current of 2.0 A, both in the same direction. What is the magnitude of the force per unit length between the wires? (μ₀ = 4π × 10⁻⁷ T·m/A)
PROBLEM 4APPLIED
A student wants to experimentally verify the relationship F/L = μ₀I₁I₂/(2πd) for the force per unit length between two parallel wires. The student has access to: two long, straight, rigid conducting rails mounted horizontally, a variable DC power supply (0–15 A), an ammeter, a sensitive electronic balance, a ruler, and connecting wires. (a) Describe a procedure the student could use to measure the force between two parallel wires as a function of current. Include how the balance is used to measure force. (2 points) (b) Describe what data the student should collect and how they should be graphed to produce a straight line that can be used to verify the relationship. (2 points) (c) Identify one significant source of systematic error in this experiment and explain how it would affect the results. (1 point)
PROBLEM 5CRITICAL THINKING
A horizontal wire of length L = 0.25 m and mass m = 0.010 kg is suspended by two light, flexible conducting threads that allow it to move freely. The wire carries a current I = 6.0 A to the right. A uniform magnetic field B is directed vertically upward in the region of the wire. (a) In what direction must the magnetic field be oriented (relative to the current) to exert a horizontal force on the wire? Explain. (1 point) (b) Determine the magnitude of B required so that the net force on the wire (considering both gravity and the magnetic force) is directed at 45° below the horizontal. (2 points) (c) If the current were doubled while keeping B constant, explain qualitatively how the angle of the net force below the horizontal would change. (1 point)

Lesson Summary

This lesson explored two complementary aspects of magnetism and current-carrying wires. First, a long straight wire carrying current I produces a magnetic field B = μ₀I/(2πr) that forms concentric circular loops around the wire, with the direction given by the right-hand rule. The field decreases inversely with distance from the wire. Second, when a current-carrying wire of length L is placed in an external magnetic field, it experiences a force of magnitude F = ILB sin θ, which is maximum when the wire is perpendicular to the field and zero when parallel.

Combining these ideas explains the force between parallel wires: F/L = μ₀I₁I₂/(2πd), where parallel currents attract and antiparallel currents repel. The critical distinction between electric and magnetic forces is that magnetic forces act only on moving charges, are always perpendicular to the velocity, and do no work on individual charges. These principles underpin electric motors, generators, and electromagnetic induction—technologies that connect directly to the broader framework of Maxwell's equations.

Varsity Tutors • AP Physics 2: Algebra-Based • Magnetism and Current-Carrying Wires