Straight Wire Magnetic Field Calculator
Find the magnetic field around a long straight current-carrying wire with Ampere's law.
About a straight wire's magnetic field
Straight-wire examples
Each example uses the long, thin wire approximation.
| Inputs | Magnetic field | Observation |
|---|---|---|
| I = 5 A, r = 0.1 m, μr = 1 | B = 10 μT | A free-space field ten centimetres from the wire. |
| I = 2 A, r = 0.04 m, μr = 4 | B = 40 μT | Permeability multiplies the vacuum field by four. |
| I = 100 A, r = 0.5 m, μr = 1 | B = 40 μT | A high-current conductor observed half a metre away. |
How to calculate the field
- Enter the magnitude of current in amperes.
- Measure radial distance from the wire's central axis and enter it in metres.
- Use a relative permeability of one for air or vacuum, or enter the medium's known value.
- Select Calculate magnetic field to see the result in teslas and microteslas.
Frequently asked questions
Which law does this calculator use?
It uses Ampere's circuital law for a long straight conductor with cylindrical symmetry. The same result can be derived from the Biot-Savart law for an infinite wire.
Where is distance measured from?
Distance is measured radially from the wire's central axis, not from an arbitrary nearby surface. The thin-wire model is most accurate when that distance is larger than the conductor radius.
What relative permeability should I use for air?
Use one for normal air and vacuum calculations because their permeability is extremely close for this purpose. A different value is appropriate only when a known material uniformly surrounds the conductor.
Does the calculator show field direction?
It reports magnitude only. Determine direction with the right-hand grip rule, and reverse that direction when conventional current reverses.
Can this model calculate a short wire?
A finite wire needs a geometry-dependent Biot-Savart expression, especially near either end. The long-wire result becomes a good approximation when wire length is much greater than the radial distance.