How to use the Magnetic Field of a Straight Current-Carrying Wire Calculator
A current flowing through a long, straight wire creates a magnetic field that circles the wire in concentric loops. Ampere's law gives the field strength at any perpendicular distance from the wire: B = μ₀I / (2πr), where B is the magnetic flux density in tesla, I is the current in amperes, r is the perpendicular distance from the wire in meters, and μ₀ is the permeability of free space (4π × 10⁻⁷ T·m/A ≈ 1.2566 × 10⁻⁶ T·m/A). This calculator converts your current and distance to SI units, applies the formula, and reports the result in tesla, microtesla, and gauss.
Deriving and applying the formula
- Ampere's law: integrating the magnetic field around a circular loop of radius r centered on the wire gives ∮B·dl = μ₀I_enclosed. Because B is constant in magnitude around that loop, this simplifies to B(2πr) = μ₀I, or B = μ₀I / (2πr).
- Medium matters: μ₀ is the permeability of vacuum (air is close enough for everyday use). If the wire runs through a magnetic material, multiply by that material's relative permeability μr — use the optional field above (leave at 1 for air or vacuum).
- Right-hand rule: point your right thumb along the direction of conventional current flow; your curled fingers show the direction the field circles the wire at every point around it.
- Unit conversions: 1 tesla (T) = 10⁶ microtesla (µT) = 10,000 gauss (G). Fields near household wiring are typically a few microtesla; Earth's surface field averages roughly 25–65 µT.
Practical notes and limits
- This formula assumes an infinitely long, thin, straight wire. It is an excellent approximation when the distance r is small compared to the wire's length and you are not near its ends.
- The field strength depends only on distance from the wire's axis, not on which side you measure from — the field lines form perfect circles around a straight conductor.
- For two parallel wires, the total field at a point is the vector sum of each wire's individual field — direction, not just magnitude, matters when combining sources.
- Multi-turn coils and solenoids use different formulas (Biot-Savart integrated over the coil geometry); this calculator applies specifically to a single straight conductor.