The field around a current-carrying wire
A current in a wire produces a magnetic field that circles the wire. Hans Christian Oersted noticed the effect in 1820 when a compass needle deflected near a current. This page puts a number on the field at a chosen distance for an ideal long straight wire. Enter the current in amperes and the distance from the wire in meters, and it returns the field strength in teslas. It suits textbook problems, quick comparisons between wires and sanity checks, such as whether the field from a cable is large or small next to the Earth's background field.
Field around a long straight conductor
Ampere's law for an infinitely long straight conductor gives B = μ0 I / (2π r). Here μ0 is the permeability of free space, I the current and r the perpendicular distance from the wire's axis. The page uses μ0 = 1.25663706127e-6 N/A², a measured value close to 4π × 10^-7. Since the 2019 redefinition of the SI the constant is no longer exactly 4π × 10^-7, though the difference is under one part in a billion. OpenStax College Physics treats the topic in its section on magnetic fields produced by currents. The field falls in inverse proportion to distance and grows in direct proportion to current, so a plot of field against distance is a simple hyperbola.
Ten amperes measured at 0.1 meter
The page starts with 10 A and a distance of 0.1 m. The result is about 2 × 10^-5 T, or 20 microtesla, shown as 0.00002 T. The quantity μ0 / (2π) is about 2 × 10^-7 T·m/A, so the calculation is 2 × 10^-7 × 10 / 0.1 = 2 × 10^-5. For comparison, the Earth's field at the surface is roughly 25 to 65 microtesla depending on location, so a 10 A wire at 10 cm produces a field of a similar order. Doubling the distance halves the field, and doubling the current doubles it. Moving to 1 m, ten times farther, drops the field to 2 microtesla, well below the Earth's background.
More distances and currents
A current of 100 A at 0.5 m gives 2 × 10^-7 × 100 / 0.5 = 4 × 10^-5 T, or 40 microtesla. A household circuit carrying 15 A, measured 2 cm from the conductor, gives 1.5 × 10^-4 T, or 150 microtesla. Note that real household wiring uses two conductors that carry equal and opposite currents, so their fields largely cancel a short distance away. A heavy overhead line with 1,000 A measured 10 m below gives 2 × 10^-5 T, or 20 microtesla. A current of 1 A at 1 m gives only 2 × 10^-7 T, 0.2 microtesla.
Direction and the sign of the result
The output is called a signed circumferential field because the field lines form circles around the wire. Use the right-hand rule: point your right thumb along the current and your fingers curl in the direction of the field. A positive current in the page's convention gives a positive circumferential component, and reversing the current reverses the sign. Entering -10 A with the default distance gives -0.00002 T, the same magnitude with the opposite sense of circulation. The page reports one scalar component and does not build a three-dimensional vector.
What counts as a long wire
The formula describes a wire much longer than the distance at which you evaluate the field. Roughly, the observation point should be within a small fraction of the wire length from the wire and away from its ends. Near the end of a finite wire the field drops. The wire is also treated as infinitely thin, so the distance must exceed the conductor radius. Inside a thick conductor the field is smaller and follows a different relation. If you need the field of a loop, a coil or a solenoid, a different formula applies, and this page does not cover it.
Where the field matters in practice
Field strength from wires affects compass readings near power cables, interference in sensitive instruments, and the force between parallel conductors, which is the basis for the former definition of the ampere. Two parallel wires 1 m apart each carrying 1 A experience a force of 2 × 10^-7 N per meter of length. Cable designers pair conductors or twist them so that opposite currents cancel fields at a distance. Remember that the page gives the field of a single wire, so the net field near a real cable depends on the return conductor as well. To see the effect, take two wires 2 cm apart carrying 15 A in opposite directions. At a point 1 m away the two fields differ by only a tiny amount, because the distances from the two wires are nearly equal, so the net field is far smaller than the 3 microtesla of one wire alone. Superposition lets you handle several wires by adding the signed fields from each.
Tesla and gauss
The tesla is the SI unit of magnetic flux density. One tesla equals one weber per square meter and also one newton per ampere meter. An older unit, the gauss, equals 10^-4 tesla, so the Earth's field of about 0.5 gauss is 50 microtesla. A fridge magnet produces something like 5 millitesla at its surface, and an MRI scanner uses a field of 1.5 to 3 T. Keep the units in mind when you compare the page output with instrument readings, which often show microtesla or milligauss. Ten milligauss is one microtesla. Smartphone magnetometers report microtesla, and a reading well above the local Earth field usually means a nearby magnet, speaker or steel object. Hall-effect probes and fluxgate sensors give more precise values, and their datasheets state the range and resolution in tesla or gauss.
Ideal long wire in vacuum only
The page assumes an ideal long straight wire in vacuum with a steady current. Air is close enough to vacuum for most purposes, but magnetic materials nearby, such as iron or steel, change the field substantially. Alternating currents, nearby return conductors and finite wire length modify real values. The permeability constant is a rounded measured value, and the result must be finite. Distance cannot be zero, since the formula would divide by zero, and a distance smaller than the wire radius falls inside the conductor, where the formula no longer applies. A steady direct current is the simplest case, because it avoids induced currents and skin effect in the conductor. This is an educational calculation and not an electromagnetic compatibility, exposure or safety assessment.