Ampere's Law — Straight Wire

Find B at distance r from a long straight wire

Parameters

Aⓘ
mⓘ
Show Trail

Controls

xⓘ

Calculated Values

Magnetic Field:
0.00;T0.00;T

Examples

I=10 A, r=0.05 m

Near wire.

    Visualization

    Ampere's Law — Field of a Long Straight Wire

    The magnetic field at perpendicular distance r from a very long straight wire carrying steady current I is one of the cornerstone results of magnetostatics: B = μ₀I/(2πr). Field lines are concentric circles centered on the wire, lying in planes perpendicular to the current. The field falls off as 1/r — slower than electrostatic 1/r² because field lines close in loops without beginning or ending on magnetic charges (there are no magnetic monopoles).

    μ₀ = 4π × 10⁻⁷ T·m/A is the permeability of free space. Numerical check: I = 10 A at r = 0.05 m gives B = (4π×10⁻⁷)(10)/(2π×0.05) = 4×10⁻⁵ T = 40 μT — comparable to Earth's field but from a lab current.

    Direction uses the right-hand grip rule: thumb along current, curled fingers show B direction around the wire. Reversing current reverses the sense of circulation.

    Ampère's circuital law ∮ B⃗·dℓ⃗ = μ₀I_enc generalizes this: choose a circular Amperian loop of radius r around the wire; symmetry gives B constant on the loop, so B(2πr) = μ₀I.

    The formula assumes the wire is much longer than r so end effects are negligible. For finite wires, use the Biot–Savart law and integrate. Inside a thick wire with uniform current density, B grows linearly with r inside and falls as 1/r outside.

    Applications include estimating fields near power lines, designing electromagnets (as building block for solenoids), and explaining why two parallel wires exert forces on each other.

    Key Concepts

    • B = μ₀I/(2πr)
    • B ∝ 1/r outside long wire
    • Circular B lines
    • μ₀ = 4π×10⁻⁷ T·m/A
    • RHR for B direction
    • ∮B·dl = μ₀I_enc

    Real-World Applications

    • Field near power cables
    • Solenoid field derivation
    • Two-wire force / ampere definition
    • Lab compass deflection demos
    • Class 12 Ampère law numericals

    Explore Further

    More magnetism tools

    Physics Equations

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

    Step-by-Step Solution

    See how the main results are calculated.

    1

    Step 1: Ampere's Circuital Law

    Equation:

    ∮B⃗⋅dl⃗=μ0Ienc\oint \vec{B}\cdot d\vec{l} = \mu_0 I_{\text{enc}}

    Explanation:

    For a circular path around a long straight wire, symmetry gives constant |B| on the circle.

    2

    Step 2: Field of Long Wire

    Equation:

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

    Explanation:

    r is perpendicular distance from wire; B forms concentric circles.

    3

    Step 3: Constant μ₀

    Result:

    μ0=4π×10−7=1.2566e−6 T\cdotpm/A\mu_0 = 4\pi \times 10^{-7} = 1.2566e-6\ \text{T·m/A}
    4

    Step 4: Substitute

    Calculation:

    B=1.2566e−6×102π×0.05B = \frac{1.2566e-6 \times 10}{2\pi \times 0.05}

    Explanation:

    Ensure r is in meters and I in amperes.

    5

    Step 5: Result

    Calculation:

    B=4.0000e−5 TB = 4.0000e-5\ \text{T}

    Result:

    B=4.0000e−5TB = 4.0000e-5 T
    6

    Step 6: Scaling Laws

    Double I → double B. Double r → half B.

    Explanation:

    Valid when wire length ≫ r (infinite wire approximation).

    Frequently Asked Questions (FAQ)

    Finite wire?

    Use Biot-Savart; 1/r law approximate when r << length.

    Inside wire?

    Uniform current: B = μ₀Ir/(2πR²) inside.

    Practice MCQs

    1. B at distance r from long wire:
    2. Double distance r:
    3. μ₀ value:
    4. Field lines around wire:
    5. Double current:
    6. Ampere law relates B to: