Magnetic Field Near A Long Straight Wire: Formula and Direction

By Vegard Gjerde Based on Masterful Learning 12 min read Published
magnetic-field-long-straight-wire physics electromagnetism magnetism learning-strategies

Magnetic Field Near A Long Straight Wire gives the magnetic-field magnitude B=μ0I2πrB=\frac{\mu_0 I}{2\pi r} around a long straight wire carrying steady current. It applies at a point outside the wire. Use it when the wire can be treated as effectively long and straight; the field circles the wire, so rr is radial distance while B\vec{B} is tangent to that circle.

This guide sits in the magnetic-field branch of the Electromagnetism Principle Map. It connects naturally to Magnetic Force On A Wire, where a magnetic field is used to find the force on a current-carrying wire segment. The surrounding decisions are right-hand-rule orientation, choosing the radial distance from the wire axis, deciding whether the wire is long enough for the approximation, and keeping tangent field direction separate from radial distance. Those choices are setup around the principle, not separate principle keys.

Unisium hero image titled Magnetic Field Near A Long Straight Wire showing the principle equation and a conditions card.
The guide centers the inverse-distance field magnitude and keeps the long-wire condition explicit.

On this page: The Principle | Conditions | Misconceptions | Elaborative Encoding | Retrieval Practice | Worked Example | Solve a Problem | Related Principles | FAQ | Related Guides | How This Fits


The Principle

Statement

Magnetic Field Near A Long Straight Wire gives the magnetic-field magnitude at distance rr from a long straight wire carrying steady current II. The field strength falls as 1/r1/r, and the direction is circular around the wire by the right-hand rule.

Mathematical Form

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

Where:

  • BB is the magnetic-field magnitude at the field point, in tesla
  • μ0\mu_0 is the permeability of free space, in Tm/A\text{T}\cdot\text{m/A}
  • II is the steady current in the wire, in amperes
  • rr is the perpendicular distance from the wire axis to the field point, in meters
Current out of the page is shown by the central dot. By the right-hand rule, thumb out of the page means the magnetic-field circles run counterclockwise; at point P, the field is tangent to the circle. The distance r is measured from the wire axis to P.

The diagram is a guide-level orientation scaffold. It shows a wire carrying current out of the page, circular magnetic-field lines around the wire, and a field point at distance rr. At that point, B\vec{B} is tangent to the circle, not along the radial distance line.

Direction rule

The formula gives only the magnitude. To decide direction, point your right thumb with the conventional current; your curled fingers show the direction of the circular magnetic field around the wire. Reversing the current reverses the field direction.


Conditions of Applicability

Condition: long straight wire; steady current; point outside wire

Practical modeling notes

  • Long straight wire means the field point is far from wire ends compared with its distance from the wire.
  • Steady current means the current is not changing in time for the situation being modeled.
  • Point outside wire means rr is measured from the wire axis to a location in the surrounding space, not inside the wire material.
  • The relation gives field magnitude. Direction still comes from the right-hand rule.

When it does not apply directly

  • Near wire ends: the long-wire approximation breaks down, so the field is not given by this simple expression.
  • Inside a thick wire: the field may depend on how current is distributed through the wire cross-section.
  • Curved or finite current path: use a more general source-geometry relation, such as a Biot-Savart setup, when the long-straight approximation is not honest.

Want the complete framework behind this guide? Read Masterful Learning.


Common Misconceptions

Misconception 1: The magnetic field points away from the wire

The truth: The distance rr is radial, but the magnetic field direction is tangent to a circle centered on the wire.

Why this matters: Treating B\vec{B} as radial makes later magnetic-force directions wrong.

Misconception 2: Twice the distance means twice the field

The truth: The field is inversely proportional to distance: doubling rr halves BB.

Why this matters: The equation is easy to memorize but easy to read backward under pressure.

Misconception 3: The formula works for any wire shape

The truth: This compact form depends on the long straight wire model.

Why this matters: Loops, bends, and finite wires need source-geometry reasoning instead of this one-line relation.


Elaborative Encoding

Use these questions to build understanding before memorizing the formula. See Elaborative Encoding for the broader method.

Within the Principle

  • Why does increasing current increase BB, while increasing distance rr decreases BB?
  • What does μ0\mu_0 represent in the relationship between current and magnetic field?

For the Principle

  • What wording in a problem tells you that the wire can be treated as long and straight?
  • How do you know whether a distance label is the perpendicular distance rr from the wire axis?

Between Principles

Generate an Example

  • Describe a setup where two points are at different distances from the same long current-carrying wire and compare their field magnitudes.

Retrieval Practice

Answer from memory, then reveal the result and check it. See Retrieval Practice for the full study method.

State the principle in words: _____A long straight wire carrying steady current creates a circular magnetic field whose magnitude is proportional to current and inversely proportional to distance from the wire.
Write the canonical equation: _____B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}
State the canonical condition: _____long straight wire; steady current; point outside wire

Worked Example

Use this worked example to practice Self-Explanation.

Problem

A long straight wire carries a steady current I=8.0AI=8.0\,\text{A} out of the page. Point PP is r=0.040mr=0.040\,\text{m} from the wire axis. Find the magnetic-field magnitude at PP, and state the field direction at a point to the right of the wire.

Step 1: Verbal Decoding

Target: BB, direction
Given: II, rr
Constraints: long straight wire; steady current; point outside wire; field point is to the right of a current out of the page

Step 2: Visual Decoding

Draw the wire as a dot-in-circle for current out of the page, mark point PP to the right, and draw the perpendicular distance rr from the wire axis to PP. Sketch counterclockwise field circles around the wire. (The key visual fact is that the field at the right-side point is upward.)

Step 3: Physics Modeling

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

Step 4: Mathematical Procedures

  1. B=(4π×107Tm/A)I2πrB=\frac{(4\pi\times10^{-7}\,\text{T}\cdot\text{m/A})I}{2\pi r}
  2. B=2×107Tm/AIrB=\frac{2\times10^{-7}\,\text{T}\cdot\text{m/A}\, I}{r}
  3. B=(2×107Tm/A)(8.0A)0.040mB=\frac{(2\times10^{-7}\,\text{T}\cdot\text{m/A})(8.0\,\text{A})}{0.040\,\text{m}}
  4. B=4.0×105T\underline{B=4.0\times10^{-5}\,\text{T}}
  5. Direction at PP: B\vec{B} is upward.

Step 5: Reflection

  • Dimensional analysis: Tm/A\text{T}\cdot\text{m/A} times amperes divided by meters gives tesla.
  • Interpretation: The field is tangent to the circular field line, so the right-side direction is upward for current out of the page.
  • Parameter dependence: Doubling the current would double BB, while doubling the distance would halve BB.

Before moving on: self-explain the model

Try explaining why Step 3 uses the long-wire field relation, why rr is distance from the wire rather than the field direction, and why the right-hand rule is still needed after the magnitude is calculated.

Physics model with explanation

Principle: We use Magnetic Field Near A Long Straight Wire because the problem asks for the field from one long straight current-carrying wire at a point outside the wire.

Conditions: The wire is treated as long and straight, the current is steady, and the point is outside the wire at a known distance.

Relevance: The target includes field magnitude, so the canonical magnitude relation is the direct model.

Description: Current out of the page makes counterclockwise magnetic-field circles. At a point to the right of the wire, the tangent direction is upward.

Goal: Compute the magnitude from current and distance, then attach the right-hand-rule direction.


Solve a Problem

Apply what you have learned with Problem Solving.

Problem

A long straight wire carries a steady current I=12AI=12\,\text{A} into the page. Point QQ is r=0.060mr=0.060\,\text{m} from the wire axis and lies to the right of the wire. Find the magnetic-field magnitude at QQ, and state the field direction there.

Hint: Current into the page reverses the field circulation compared with the worked example.

Show Solution

Step 1: Verbal Decoding

Target: BB, direction
Given: II, rr
Constraints: long straight wire; steady current; point outside wire; field point is to the right of a current into the page

Step 2: Visual Decoding

Draw the wire as an x-in-circle for current into the page, mark point QQ to the right, and draw the perpendicular distance rr from the wire axis to QQ. Sketch clockwise field circles around the wire. (The key visual fact is that the field at the right-side point is downward.)

Step 3: Physics Modeling

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

Step 4: Mathematical Procedures

  1. B=(4π×107Tm/A)I2πrB=\frac{(4\pi\times10^{-7}\,\text{T}\cdot\text{m/A})I}{2\pi r}
  2. B=2×107Tm/AIrB=\frac{2\times10^{-7}\,\text{T}\cdot\text{m/A}\, I}{r}
  3. B=(2×107Tm/A)(12A)0.060mB=\frac{(2\times10^{-7}\,\text{T}\cdot\text{m/A})(12\,\text{A})}{0.060\,\text{m}}
  4. B=4.0×105T\underline{B=4.0\times10^{-5}\,\text{T}}
  5. Direction at QQ: B\vec{B} is downward.

Step 5: Reflection

  • Dimensional analysis: The units reduce to tesla.
  • Interpretation: Reversing current direction reverses the circular field direction.
  • Verification: The magnitude matches the worked example because the ratio I/rI/r is the same.

See Electromagnetism: The Principle Map for where this current-source relation sits in the magnetic branch.

PrincipleRelationship to Magnetic Field Near A Long Straight Wire
Magnetic Force On A WireUses magnetic field to find force on a current-carrying wire segment.
Lorentz ForceUses magnetic field as part of the total force on a moving charge.
Magnetic Field In A Long SolenoidAnother steady-current field model, but for the interior of a long coil instead of outside a straight wire.

See Principle Structures for a broader view of how source relations and force relations connect across a subdomain.


FAQ

What is the magnetic field near a long straight wire?

The magnetic-field magnitude near a long straight wire carrying steady current is B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}. The field direction circles the wire.

When does the long straight wire magnetic field formula apply?

It applies under the canonical condition: long straight wire; steady current; point outside wire. If the point is near an end, inside a thick wire, or near a curved section, the compact relation may not apply directly.

Which direction is the magnetic field around a wire?

Use the right-hand rule: point your right thumb with conventional current, and your curled fingers show the magnetic-field direction around the wire.

What does r mean in the long wire magnetic field formula?

rr is the perpendicular distance from the wire axis to the field point. It is not the direction of the magnetic field.

Why does the field get weaker farther from the wire?

The formula has rr in the denominator, so the field magnitude follows an inverse-distance pattern. At twice the distance, the field magnitude is half as large for the same current.



How This Fits in Unisium

Unisium treats Magnetic Field Near A Long Straight Wire as a principle because the formula is short but the representation is easy to blur. The useful learning path is to encode what rr means, retrieve the magnitude relation with the exact condition, self-explain the circular field direction, and solve new problems where current direction and field-point location change.

Ready to master Magnetic Field Near A Long Straight Wire? Check access and join the Unisium waitlist or explore the full framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The book behind these guides: a study system for physics, math, & programming built on retrieval, connection, explanation, and problem solving.

Ready to apply this strategy?

Unisium turns these evidence-based techniques into guided study sessions for math and physics. Places are limited during early access. Check current availability to start a trial; joining the mailing list is optional.

See plans and availability Read More Guides

Already have access? Sign in