Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Physics 2
  3. ›12 Magnetism and Electromagnetism
  4. ›12.3 Magnetic fields of current-carrying wires

AP Physics 2 · Unit 12 · Magnetism and Electromagnetism

12.3 Magnetic fields of current-carrying wires

Calculate the field near a straight wire and describe the field patterns of wires, loops, and solenoids.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A current-carrying wire is surrounded by circular field lines
  1. 1A current-carrying wire is surrounded by circular field lines
  2. 2The field strength falls with distance from the wire
  3. 3A loop gathers the field into a line through its center
  4. 4A solenoid creates a strong, nearly uniform field inside
  5. 5Wire shape changes where the field is strongest
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: A current-carrying wire is surrounded by circular field lines

A compass placed beside a wire turns when the wire carries current. Moving the compass around the wire shows that the needle always points along a circle centered on the wire.

The field lines around a long straight wire are circles centered on the wire. They lie in planes perpendicular to the wire.

To find the direction, use the right-hand grip rule. Point your thumb along the direction of the current. Your curled fingers then show the way the field circles.

Figure 1. Seen end on, the field lines form circles around the wire and run counterclockwise when the current points out of the page.

Common mistake

The field does not point along the wire, or toward or away from it. It circles around the wire.

Key term

right-hand grip rule

The right-hand grip rule gives the field direction around a current: thumb along the current, curled fingers following the circling field.

Part 1 done

2

Part 2 of 5: The field strength falls with distance from the wire

Close to the wire the field is stronger, and farther away it weakens. For a long straight wire, the strength is B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}B=2πrμ0​I​.

Here III is the current and rrr is the perpendicular distance from the wire. The constant μ0\mu_0μ0​ is the permeability of free space.

The value of μ0\mu_0μ0​ is 4π×10−7 T m/A4\pi\times10^{-7}\,\mathrm{T\,m/A}4π×10−7Tm/A. For a straight wire, this lets you find the field from the current and distance alone.

Doubling the current doubles the field. Doubling the distance halves it.

Worked example

Calculate the field near a wire

A long straight wire carries 5.0 A5.0\,\mathrm{A}5.0A. Calculate the field strength 0.020 m0.020\,\mathrm{m}0.020m from the wire.
  1. 1
    Write the word equation: field = μ0\mu_0μ0​ × current divided by 2π2\pi2π × distance.
  2. 2
    Write the symbol equation: B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}B=2πrμ0​I​.
  3. 3
    Substitute: B=(4π×10−7 T m/A)(5.0 A)2π(0.020 m)B=\frac{(4\pi\times10^{-7}\,\mathrm{T\,m/A})(5.0\,\mathrm{A})}{2\pi(0.020\,\mathrm{m})}B=2π(0.020m)(4π×10−7Tm/A)(5.0A)​.
  4. 4
    Simplify: B=2π×10−60.040π T=5.0×10−5 TB=\frac{2\pi\times10^{-6}}{0.040\pi}\,\mathrm{T}=5.0\times10^{-5}\,\mathrm{T}B=0.040π2π×10−6​T=5.0×10−5T.

Answer: The field strength is 5.0×10−5 T5.0\times10^{-5}\,\mathrm{T}5.0×10−5T.

Exam tip

Use the perpendicular distance in meters. Convert centimeters to meters before you substitute.

Key term

permeability of free space

The permeability of free space μ0\mu_0μ0​ is the constant 4π×10−7 T m/A4\pi\times10^{-7}\,\mathrm{T\,m/A}4π×10−7Tm/A relating current to the field it produces in a vacuum.

Part 2 done

Quick check

One question on the part you just read

Easy

What shape are the magnetic field lines around a long straight current-carrying wire?
Show answer and explanation

Answer: C · Worked explanation

The field lines form circles centered on the wire, in planes perpendicular to it. Lines parallel to the wire or radial lines would give a field along or away from the wire, which is incorrect. A compass needle placed near the wire turns to follow a circle.
3

Part 3 of 5: A loop gathers the field into a line through its center

Bend a straight wire into a circular loop. The field still circles around each short piece of the wire. Inside the loop, the contributions from every piece point the same way, so they add.

Near the center, the field is roughly perpendicular to the plane of the loop. Use the grip rule again, but curl your fingers along the current. Your thumb then points along the field at the center.

One face of the loop behaves like a north pole, and the other like a south pole. A single loop therefore looks like a very short bar magnet. Far from the loop, its field pattern matches that of a bar magnet.

Part 3 done

4

Part 4 of 5: A solenoid creates a strong, nearly uniform field inside

Stack many loops side by side and their fields add. A long coil of wire like this is a solenoid. Inside it, the field is strong, nearly uniform, and parallel to the axis.

Outside, the field is much weaker and looks like that of a bar magnet. One end acts as a north pole and the other as a south pole. Curl your fingers along the current to find the field direction inside.

More current or more turns per unit length gives a stronger field. An iron core strengthens it further, because its domains line up with the field.

Common mistake

The field inside a solenoid is not zero. It is strongest and most uniform inside, and weak outside.

Go deeperThe field inside a long solenoid

For a long solenoid, the field inside is B=μ0nIB=\mu_0 nIB=μ0​nI. Here nnn is the number of turns per meter of length and III is the current.

Doubling the turns per meter doubles the field, and so does doubling the current. The length and radius of the coil do not matter, as long as the coil is long compared with its width.

Key term

solenoid

A solenoid is a long coil of wire with many closely spaced turns that produces a strong, nearly uniform field inside when it carries current.

Part 4 done

Quick check

One question on the part you just read

Easy

The current in a long straight wire doubles. At a fixed distance from the wire, the field strength
Show answer and explanation

Answer: D · Worked explanation

The field strength B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}B=2πrμ0​I​ is proportional to the current, so doubling III doubles BBB at the same distance. Halving or quadrupling the field would need a different relationship, and an unchanged field ignores the current entirely. The field depends on the current in this direct, proportional way as long as the distance does not change.
5

Part 5 of 5: Wire shape changes where the field is strongest

Now compare the three shapes side by side. Each uses the same principle. Every bit of current makes a circling field, and the fields from different bits add. Shape matters because it sets how many bits of current lie near a given point.

Fields of different wire shapes

ShapeField patternStrongest or most uniform
Straight wireCircles around the wireClose to the wire
Single loopPasses through the loop and returns around itAt the loop’s center
SolenoidUniform inside, bar-magnet pattern outsideInside, along the axis
Shape
Straight wire
Field pattern
Circles around the wire
Strongest or most uniform
Close to the wire
Shape
Single loop
Field pattern
Passes through the loop and returns around it
Strongest or most uniform
At the loop’s center
Shape
Solenoid
Field pattern
Uniform inside, bar-magnet pattern outside
Strongest or most uniform
Inside, along the axis

A straight wire’s field spreads out in every direction around it, so it weakens quickly with distance. A solenoid concentrates the field inside its coil. That is why electromagnets use coils.

Exam tip

When comparing shapes, name the field pattern and say where the field is largest.

Note read

Check your recall[14 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Calculate[3 marks]

    Calculate the magnetic field strength 0.050 m0.050\,\mathrm{m}0.050m from a long straight wire carrying 8.0 A8.0\,\mathrm{A}8.0A.

    Show mark schemeHide mark scheme

    Model answer

    B=μ0I2πr=(4π×10−7 T m/A)(8.0 A)2π(0.050 m)=3.2×10−5 TB=\frac{\mu_0 I}{2\pi r}=\frac{(4\pi\times10^{-7}\,\mathrm{T\,m/A})(8.0\,\mathrm{A})}{2\pi(0.050\,\mathrm{m})}=3.2\times10^{-5}\,\mathrm{T}B=2πrμ0​I​=2π(0.050m)(4π×10−7Tm/A)(8.0A)​=3.2×10−5T.

    • 1 mark for using B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}B=2πrμ0​I​
    • 1 mark for substituting μ0=4π×10−7 T m/A\mu_0=4\pi\times10^{-7}\,\mathrm{T\,m/A}μ0​=4π×10−7Tm/A, I=8.0 AI=8.0\,\mathrm{A}I=8.0A, and r=0.050 mr=0.050\,\mathrm{m}r=0.050m
    • 1 mark for obtaining 3.2×10−5 T3.2\times10^{-5}\,\mathrm{T}3.2×10−5T
  2. 2.Describe[2 marks]

    Describe the pattern and direction of the magnetic field around a long straight current-carrying wire.

    Show mark schemeHide mark scheme

    Model answer

    The field lines are circles centered on the wire, in planes perpendicular to it. The right-hand grip rule gives the direction: thumb along the current, fingers curling the way the field circles.

    • 1 mark for stating that the field lines are circles centered on the wire
    • 1 mark for using the right-hand grip rule to give the direction
  3. 3.Predict[2 marks]

    Predict how the field strength changes when the distance from a straight wire triples and the current stays constant.

    Show mark schemeHide mark scheme

    Model answer

    The field becomes one third as strong, because BBB is inversely proportional to the distance rrr.

    • 1 mark for predicting that the field becomes one third
    • 1 mark for linking this to BBB being inversely proportional to rrr
  4. 4.Describe[3 marks]

    Describe the magnetic field of a solenoid inside and outside the coil.

    Show mark schemeHide mark scheme

    Model answer

    Inside, the field is strong, nearly uniform, and parallel to the axis. Outside, it is weak and resembles the field of a bar magnet. The ends act like a north pole and a south pole.

    • 1 mark for stating that the field inside is strong, nearly uniform, and parallel to the axis
    • 1 mark for stating that the field outside is weak and like a bar magnet’s
    • 1 mark for stating that the ends act like north and south poles
  5. 5.Explain[2 marks]

    Explain why a single current loop behaves like a short bar magnet.

    Show mark schemeHide mark scheme

    Model answer

    The field lines pass through the loop in one direction and return around the outside. One face then has lines leaving, like a north pole, and the other has lines entering, like a south pole.

    • 1 mark for stating that the field passes through the loop and returns around the outside
    • 1 mark for identifying one face as like a north pole and the other as like a south pole
  6. 6.Determine[2 marks]

    Determine the direction of the field at a point to the right of a long vertical wire carrying current upward in the plane of the page.

    Show mark schemeHide mark scheme

    Model answer

    The thumb points up along the current. At a point to the right, the curled fingers point into the page, so the field is into the page.

    • 1 mark for applying the right-hand grip rule with the thumb along the current
    • 1 mark for giving the direction as into the page

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Identify[1 mark]

Which of these has a strong, nearly uniform magnetic field inside it?
Show answer and explanation

Answer: B · Worked explanation

Many closely spaced turns in a solenoid add their fields inside the coil, producing a strong, nearly uniform field. A straight wire’s field circles around it and varies with distance. A charge at rest makes no magnetic field, and unmagnetized copper does not either.
4.

Medium·Calculate[1 mark]

Calculate the field strength 0.10 m0.10\,\mathrm{m}0.10m from a long straight wire carrying 20 A20\,\mathrm{A}20A.
Show answer and explanation

Answer: D · Worked explanation

B=μ0I2πr=(2×10−7 T m/A)(20 A)0.10 m=4.0×10−5 TB=\frac{\mu_0 I}{2\pi r}=\frac{(2\times10^{-7}\,\mathrm{T\,m/A})(20\,\mathrm{A})}{0.10\,\mathrm{m}}=4.0\times10^{-5}\,\mathrm{T}B=2πrμ0​I​=0.10m(2×10−7Tm/A)(20A)​=4.0×10−5T. The value 2.5×10−5 T2.5\times10^{-5}\,\mathrm{T}2.5×10−5T comes from a power-of-ten slip; leaving out the 2π2\pi2π would instead give about 2.5×10−4 T2.5\times10^{-4}\,\mathrm{T}2.5×10−4T. The value 4.0×10−6 T4.0\times10^{-6}\,\mathrm{T}4.0×10−6T comes from forgetting to divide by the distance. The value 8.0×10−5 T8.0\times10^{-5}\,\mathrm{T}8.0×10−5T results from using 4×10−74\times10^{-7}4×10−7 in place of 2×10−72\times10^{-7}2×10−7, so it is twice the correct value. Check the factor of 2π2\pi2π with care.
5.

Medium·Predict[1 mark]

At 0.040 m0.040\,\mathrm{m}0.040m from a long straight wire the field is 6.0×10−5 T6.0\times10^{-5}\,\mathrm{T}6.0×10−5T. What is the field at 0.12 m0.12\,\mathrm{m}0.12m from the same wire?
Show answer and explanation

Answer: A · Worked explanation

The distance triples, and BBB is inversely proportional to distance, so the field falls to one third: 6.0×10−53=2.0×10−5 T\frac{6.0\times10^{-5}}{3}=2.0\times10^{-5}\,\mathrm{T}36.0×10−5​=2.0×10−5T. The value 6.7×10−6 T6.7\times10^{-6}\,\mathrm{T}6.7×10−6T treats the field as falling with the square of the distance, which is wrong for a wire. The value 1.8×10−4 T1.8\times10^{-4}\,\mathrm{T}1.8×10−4T multiplies by three instead of dividing, so it moves the field the wrong way for a point that is farther out.
6.

Medium·Determine[2 marks]

A long straight wire carries current out of the page. What is the direction of the field at a point to the right of the wire?
Show answer and explanation

Answer: C · Worked explanation

With the thumb pointing out of the page, the fingers curl counterclockwise. At a point to the right of the wire, counterclockwise motion is up the page. Down the page would hold for current into the page. Into the page or toward the wire cannot be tangent to a circle around the wire.
7.

Medium·Identify[1 mark]

Which change would strengthen the field inside a solenoid?
Show answer and explanation

Answer: B · Worked explanation

An iron core strengthens the field because its domains line up with the field. Reducing the current or spreading the turns over a longer length would weaken the field. Reversing the current flips the field direction but not its strength.
8.

Hard[2 marks]

Point P is 0.050 m0.050\,\mathrm{m}0.050m from a long straight wire carrying 6.0 A6.0\,\mathrm{A}6.0A. Point Q is 0.15 m0.15\,\mathrm{m}0.15m from a second long straight wire carrying 18 A18\,\mathrm{A}18A. How do the field strengths at P and Q compare?
Show answer and explanation

Answer: D · Worked explanation

BP=(2×10−7)(6.0)0.050=2.4×10−5 TB_\mathrm{P}=\frac{(2\times10^{-7})(6.0)}{0.050}=2.4\times10^{-5}\,\mathrm{T}BP​=0.050(2×10−7)(6.0)​=2.4×10−5T and BQ=(2×10−7)(18)0.15=2.4×10−5 TB_\mathrm{Q}=\frac{(2\times10^{-7})(18)}{0.15}=2.4\times10^{-5}\,\mathrm{T}BQ​=0.15(2×10−7)(18)​=2.4×10−5T. The currents differ by a factor of three, but so do the distances, so the fields are equal. Focusing on the current alone ignores the distance, and claiming the field at P is three times larger reverses the roles of the two factors. Both change by the same factor here, so they cancel.
9.

Hard·Explain[2 marks]

A student says the field inside a solenoid is zero because fields from opposite sides of the coil cancel. Which correction is accurate?
Show answer and explanation

Answer: A · Worked explanation

Each turn contributes a field pointing along the axis in the same direction inside the coil, so the contributions add. Cancellation occurs outside the coil, where the field is weak. Widely spaced turns would give a weaker, less uniform field, not a stronger one.
10.

Hard·Calculate[2 marks]

Two long parallel wires are 0.20 m0.20\,\mathrm{m}0.20m apart. Each carries 5.0 A5.0\,\mathrm{A}5.0A, in opposite directions. Calculate the field strength at the midpoint between them.
Show answer and explanation

Answer: C · Worked explanation

Each wire is 0.10 m0.10\,\mathrm{m}0.10m from the midpoint, giving (2×10−7)(5.0)0.10=1.0×10−5 T\frac{(2\times10^{-7})(5.0)}{0.10}=1.0\times10^{-5}\,\mathrm{T}0.10(2×10−7)(5.0)​=1.0×10−5T each. For opposite currents the fields at the midpoint point the same way, so they add to 2.0×10−5 T2.0\times10^{-5}\,\mathrm{T}2.0×10−5T. Zero would apply to equal currents in the same direction. The value 1.0×10−5 T1.0\times10^{-5}\,\mathrm{T}1.0×10−5T counts only one wire, and 5.0×10−6 T5.0\times10^{-6}\,\mathrm{T}5.0×10−6T uses the full 0.20 m0.20\,\mathrm{m}0.20m separation as the distance for a single wire.

Keep going

Next topic12.4 Electromagnetic inductionPrevious topic12.2 Magnetism and moving charges

More in Unit 12 · Magnetism and Electromagnetism

  1. 12.1Magnetic fieldsNotes · 10 questions
  2. 12.2Magnetism and moving chargesNotes · 10 questions
  3. 12.3Magnetic fields of current-carrying wiresNotes · 10 questions
  4. 12.4Electromagnetic inductionNotes · 10 questions

All AP Physics 2 topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1A current-carrying wire is surrounded by circular field lines
  2. 2The field strength falls with distance from the wire
  3. 3A loop gathers the field into a line through its center
  4. 4A solenoid creates a strong, nearly uniform field inside
  5. 5Wire shape changes where the field is strongest
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe