HIGH SCHOOL PHYSICS (NEXT GENERATION SCIENCE STANDARDS) • MOTION AND STABILITY

Investigate electric current and magnetic field relationships

Discover how moving electric charges create magnetic fields and how these fields shape modern technology.

Historical Context & Motivation

For centuries, electricity and magnetism were thought to be completely separate phenomena with no connection to each other. People understood lodestones as natural magnets and static electricity as a parlor trick, but nobody suspected a deeper link. That all changed in 1820, when a Danish professor made a startling observation during a lecture demonstration. His discovery launched an entirely new branch of physics called electromagnetism, which unified two forces that had seemed unrelated. The race to understand the connection between electric current and magnetic fields would transform science and engineering within a single generation.

1820
Ørsted's Discovery
Hans Christian Ørsted noticed that a compass needle deflected when placed near a wire carrying electric current, proving that electricity can produce magnetism.
1820
Ampère's Mathematical Law
André-Marie Ampère quickly followed Ørsted's discovery by showing that two parallel wires carrying current exert forces on each other, and he developed a mathematical law relating current to the magnetic field it produces.
1831
Faraday's Electromagnetic Induction
Michael Faraday demonstrated that a changing magnetic field can induce an electric current in a wire loop, completing the two-way relationship between electricity and magnetism.
1865
Maxwell's Equations
James Clerk Maxwell published a unified set of four equations that completely described all electric and magnetic phenomena, predicting electromagnetic waves including light itself.

The central question driving this lesson is straightforward: how exactly does an electric current create a magnetic field, and what determines that field's strength and direction? Understanding this relationship is the foundation for motors, generators, transformers, and nearly every electrical device you use. By the end of this lesson, you will be able to predict the magnetic field around a current-carrying wire using both conceptual reasoning and mathematical tools.

Core Principles & Definitions

Before diving into calculations, you need to understand a few foundational ideas that connect electric current to magnetism. These principles form the conceptual backbone of everything that follows. Each one builds on the previous, so take them in order.

1

Moving Charges Create Magnetic Fields

A stationary electric charge produces only an electric field. However, when that charge moves — forming an electric current — it also generates a magnetic field in the space around it. No permanent magnet is required.
2

The Right-Hand Rule

Point your right thumb in the direction of conventional current (positive to negative). Your fingers curl in the direction the magnetic field lines wrap around the wire, forming concentric circles.
3

Field Strength Depends on Current and Distance

The magnetic field is stronger when the current is larger and weaker as you move farther from the wire. Specifically, field strength is directly proportional to current and inversely proportional to distance.
4

Superposition of Magnetic Fields

When two or more current-carrying wires are near each other, their magnetic fields combine through vector addition. At any point in space, you add the individual field vectors to find the net magnetic field.
KEY TAKEAWAY
KEY TAKEAWAY

Visual Explanation: The Magnetic Field Around a Wire

The diagram below shows a long, straight wire carrying conventional current upward (out of the page). The magnetic field lines form concentric circles centered on the wire. Notice how the circles are more closely spaced near the wire and spread apart farther away, indicating that the field strength decreases with distance.

The dot symbol ⊙ at the center represents current flowing out of the page toward you. Using the right-hand rule with your thumb pointing out of the page, your fingers curl counterclockwise, which matches the arrows on the field lines. Notice the field lines are closest together near the wire at r1, indicating the strongest field is nearest the wire.

There are two important symbols to remember when viewing cross-sectional diagrams of wires. A dot (⊙) means the current flows out of the page toward you, like the tip of an arrow coming at you. An X (⊗) means the current flows into the page away from you, like the tail feathers of an arrow flying away. These conventions let us represent three-dimensional current directions in a flat diagram.

Applying the Right-Hand Rule Carefully

Mathematical Framework

Now that you understand the conceptual picture, it is time to put numbers to it. The key equation for the magnetic field around a long, straight wire was developed from Ampère's law. This formula lets you calculate the exact magnetic field strength at any distance from a current-carrying wire.

MAGNETIC FIELD OF A LONG STRAIGHT WIRE
B = μ₀I / (2πr)
B = magnetic field strength (in tesla, T); μ₀ = permeability of free space = 4π × 10⁻⁷ T·m/A; I = current in the wire (in amperes, A); r = perpendicular distance from the wire (in meters, m).

This equation tells us two important proportionalities. First, B is directly proportional to I — doubling the current doubles the magnetic field. Second, B is inversely proportional to r — doubling the distance cuts the field in half. The constant μ₀ is a fundamental property of empty space that describes how easily magnetic fields can form in a vacuum.

MAGNETIC FIELD AT CENTER OF A SOLENOID
B = μ₀nI
n = number of turns per unit length (turns/m); I = current (A). A solenoid is a coil of wire that creates a nearly uniform field inside, behaving like a bar magnet.
FORCE BETWEEN TWO PARALLEL WIRES
F/L = μ₀I₁I₂ / (2πd)
F/L = force per unit length (N/m); I₁ and I₂ = currents in each wire (A); d = distance between wires (m). Parallel currents (same direction) attract; antiparallel currents (opposite directions) repel.
Units Tip

Magnetic Fields from Two Parallel Wires

When two parallel wires each carry current, the magnetic field at any point is the vector sum of the individual fields from each wire. The behavior at the midpoint between the wires depends critically on whether the currents flow in the same direction (parallel) or in opposite directions (antiparallel). This distinction is essential and a common source of confusion, so study the diagram carefully.

Left panel: two wires carry current in the same direction (both out of page). At the midpoint, the fields from each wire point in opposite vertical directions and cancel. The wires attract. Right panel: the currents are antiparallel (one out, one in). At the midpoint, both fields point upward and add together. The wires repel.

The key insight here requires careful application of the right-hand rule at the midpoint for each wire individually. For the parallel case (both currents out of page), consider the midpoint between them. Wire 1's field at the midpoint — which is to the right of wire 1 — points upward. Wire 2's field at the midpoint — which is to the left of wire 2 — points downward. Since the two field contributions are in opposite directions, they cancel. For the antiparallel case, wire 1 (out of page) still produces an upward field at the midpoint, but wire 2 (into the page) also produces an upward field at the midpoint (to its left). Both contributions are in the same direction, so they add.

Memory Aid

Worked Example

Let's work through a complete problem that brings together the equation for a single wire's magnetic field and the concept of superposition for two wires.

1
Step 1 — Read the ProblemTwo long, straight, parallel wires are separated by a distance d = 0.20 m. Wire 1 carries a current I₁ = 5.0 A to the north, and wire 2 carries a current I₂ = 3.0 A to the south. Find the magnitude and direction of the net magnetic field at the midpoint between the two wires.
2
Step 2 — Identify Given Valuesd = 0.20 m, so the midpoint is at r = 0.10 m from each wire. I₁ = 5.0 A (northward). I₂ = 3.0 A (southward). μ₀ = 4π × 10⁻⁷ T·m/A. Because the currents are antiparallel, the fields at the midpoint will point in the same direction and add.
3
Step 3 — Determine Field Directions Using the Right-Hand RuleFor wire 1 (current north): point your right thumb north. At the midpoint (which is to the east of wire 1 if we view from above with wire 1 on the left), your fingers curl into the page. So B₁ points into the page at the midpoint. For wire 2 (current south): point your right thumb south. At the midpoint (which is to the west of wire 2), your fingers also curl into the page. So B₂ also points into the page. Since both fields point into the page, they add.
4
Step 4 — Calculate Individual Field MagnitudesB₁ = μ₀I₁ / (2πr) = (4π × 10⁻⁷)(5.0) / (2π × 0.10). Simplify: the π cancels, giving B₁ = (4 × 10⁻⁷ × 5.0) / (2 × 0.10) = (2.0 × 10⁻⁶) / (0.20) = 1.0 × 10⁻⁵ T. Similarly, B₂ = (4π × 10⁻⁷)(3.0) / (2π × 0.10) = (4 × 10⁻⁷ × 3.0) / (0.20) = (1.2 × 10⁻⁶) / (0.20) = 6.0 × 10⁻⁶ T.
B₁ = 1.0 × 10⁻⁵ T; B₂ = 6.0 × 10⁻⁶ T
5
Step 5 — Find the Net FieldBecause both fields point into the page, we add their magnitudes: B_net = B₁ + B₂ = 1.0 × 10⁻⁵ + 6.0 × 10⁻⁶ = 1.6 × 10⁻⁵ T. The net magnetic field at the midpoint is 1.6 × 10⁻⁵ T directed into the page.
B_net = 1.6 × 10⁻⁵ T, directed into the page
Verification Check

Applications and Limitations

The relationship between electric current and magnetic fields is the basis for an enormous range of technologies. However, the simple equations we use in this lesson have important limitations. The table below compares key real-world applications with the assumptions and limits of our mathematical models.

Real-world applications and the limits of the straight-wire/solenoid models
Application / FeatureHow It Uses Current–Field RelationshipModel Limitations
Electric motorsCurrent through a coil in a magnetic field creates a torque that spins a rotor, converting electrical energy to mechanical energy.Our straight-wire formula does not account for coil geometry; solenoid and loop formulas are needed.
Electromagnets (MRI, scrapyard)A solenoid with many turns produces a strong, nearly uniform field inside, intensified by an iron core.Our model assumes vacuum; ferromagnetic cores multiply the field by factors of 100–10,000, requiring additional material constants.
GeneratorsA spinning coil in a magnetic field induces a changing magnetic flux, which creates an alternating current (Faraday's law).Our lesson focuses on static fields from steady currents; generators require time-varying field analysis.
TransformersAlternating current in a primary coil creates a changing magnetic field that induces a voltage in a secondary coil, allowing voltage conversion.Requires AC, not DC; our equations apply to steady (DC) currents and do not cover electromagnetic induction.
KEY TAKEAWAY
KEY TAKEAWAY

Connections to Advanced Electromagnetism

The ideas in this lesson form the starting point for a much richer theory. In advanced physics courses, you will encounter more powerful mathematical tools that generalize what we have learned. The table below shows how the concepts from this lesson connect to their more advanced counterparts.

Introductory vs. advanced electromagnetism concepts
This Lesson (Introductory Level)Advanced Theory
B = μ₀I/(2πr) for a long straight wireBiot–Savart law: dB = (μ₀/4π) × (Idl × r̂)/r², which calculates the field from any shape of current-carrying conductor.
Right-hand rule for field directionCross-product vector mathematics (v × B) used systematically in three dimensions.
Superposition: add fields from two wiresAmpère's law in integral form: ∮B·dl = μ₀I_enclosed, which exploits symmetry to find fields in complex geometries.
Steady currents produce steady magnetic fieldsMaxwell's equations unify changing electric and magnetic fields, predicting electromagnetic waves and describing all classical electromagnetism.

If you continue to AP Physics C or a college-level electricity and magnetism course, you will learn the Biot–Savart law and Ampère's law in their full vector-calculus forms. These tools let you calculate the magnetic field from any arbitrary current distribution, not just straight wires and solenoids. Maxwell's equations — the crown jewel of classical physics — show that changing electric fields also create magnetic fields, completing the symmetry that Faraday first glimpsed in 1831.

Practice Problems

1
A long, straight wire carries a conventional current directed toward the east. A compass is placed directly above the wire. Using the right-hand rule, which direction does the compass needle deflect?
2
A straight wire carries a current of 4.0 A. Using the formula B = μ₀I / (2πr), where μ₀ = 4π × 10−7 T·m/A, calculate the magnetic field strength at a distance of 0.10 m from the wire.
3
Two long, parallel wires are separated by a small distance. Wire 1 carries current to the east; Wire 2 also carries current to the east. Consider a point P located exactly halfway between the two wires. What is the net magnetic field at point P, and do the wires attract or repel?
4
An engineer needs to double the magnetic field strength at a sensor located 0.05 m from a straight wire that currently carries 3.0 A. She cannot move the sensor. By what factor must she change the current, and what is the new magnetic field? (Use B = μ₀I / (2πr), μ₀ = 4π × 10−7 T·m/A.)
5
Two long parallel wires are separated by 0.20 m. Wire 1 carries 5.0 A eastward and Wire 2 carries 5.0 A westward (antiparallel currents). At midpoint P between the wires, what happens to the magnetic fields, and do the wires attract or repel?
Varsity Tutors • High School Physics (Next Generation Science Standards) • Investigate electric current and magnetic field relationships