Magnetic Field from a Wire Calculator

Find the field around a long straight wire from the current and distance.

Physics and EnergyUpdated 2026-11-172 min read
Magnetic Field from a Wire Calculator
Magnetic field
...
Field in gauss...
Distance in metres...

What it does

A current flowing in a long straight wire produces a magnetic field that circles the wire. The field strength depends on the current and on how far you are from the wire, following a simple inverse distance rule derived from Ampere's law.

This calculator evaluates that rule and reports the field in tesla and in gauss. It also echoes the distance in metres so you can check the unit conversion when working in feet.

The default wire carries 10 A and the point of interest is 0.05 m away. The result is 4e-5 T, which is 0.4 gauss. For comparison, the Earth's magnetic field is roughly 0.5 gauss, so this is a similar order of magnitude.

The formula assumes a wire that is effectively infinite in length and very thin compared with the distance being considered. Close to a short wire or a thick conductor the field differs from this ideal value.

Direction is not part of the calculation. The field circles the wire according to the right hand rule, but this tool reports magnitude only.

How to use

  1. Choose metric for metres or imperial for feet.
  2. Enter the current in amperes.
  3. Enter the distance from the wire in the chosen length unit.
  4. Press calculate and read the field in tesla.
  5. Use the gauss line when comparing with older references.
  6. Check the distance in metres if you entered feet.

Formula

B = μ₀ I / (2 π r), with μ₀ = 4π × 10⁻⁷ T·m/A.
I
Current in the wire, in amperes.
r
Perpendicular distance from the wire, in metres after conversion.
μ₀
Permeability of free space, 4π × 10⁻⁷ tesla metre per ampere.
B
Magnetic field strength in tesla.

A current of zero gives zero field, which the tool reports directly. Distance must be above zero because the field would diverge at the wire itself. One tesla is ten thousand gauss. One foot is exactly 0.3048 m, and the tool converts before evaluating the formula.

Worked example

Example: 10 A at 0.05 m from a wire

Metric defaults describing a laboratory scale current.

  1. Write the formula with mu0 equal to 4 pi times ten to the minus seven.
  2. Substitute current 10 A and distance 0.05 m.
  3. Compute 2e-7 times 10 divided by 0.05, which is 4e-5 T.
  4. Convert to gauss: 4e-5 times 10,000 is 0.4 G.
  5. The tool shows 4e-5 T, 0.4 G and 0.05 m.

Reference table

Field at several distances from a 10 A wire
DistanceField (T)Field (G)
0.01 m2e-4 T2 G
0.05 m4e-5 T0.4 G
0.1 m2e-5 T0.2 G
1 m2e-6 T0.02 G

Limits

  • Assumes an infinitely long, thin, straight wire.
  • Reports magnitude only, with no field direction.
  • Uses the permeability of free space, not of a magnetic material nearby.
  • Breaks down at distances comparable with the wire radius.

Common mistakes

  • Using the wire diameter where the distance from the centre is needed.
  • Confusing tesla with gauss when quoting a result.
  • Entering feet in the metric mode.
  • Expecting the field to fall with the square of distance.
  • Using a finite wire formula at distances comparable with its length.

Try it yourself

Quick checks. Answers sit tucked under each question.

Imperial: 10 A at 0.164042 ft?

4e-5 T, 0.4 G, distance 0.05 m.

100 A at 0.1 m?

0.0002 T, 2 G, distance 0.1 m.

Questions

What is the field around a straight wire?

It circles the wire and has magnitude mu0 I over 2 pi r.

How does the field change with distance?

It halves when the distance doubles, so it falls as one over r.

How many gauss in a tesla?

Ten thousand. The tool converts automatically.

Which hand rule gives the direction?

Point the right thumb along the current and the fingers curl in the direction of the field.

Can I enter feet?

Yes. Choose imperial and the tool converts the distance to metres before calculating.

What if the wire is short?

The full Biot-Savart law is needed. This formula is for a long straight conductor.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.