Magnetic Field Of Straight Current Carrying Wire Calculator - Find the field around a wire from current and distance, with the right-hand-rule direction.
Magnetic field of straight current carrying wire calculator that returns field strength in tesla from current and distance using the Biot-Savart result, with the right-hand-rule direction.
Magnetic Field Of Straight Current Carrying Wire Calculator
Results
What Is Magnetic Field Of Straight Current Carrying Wire Calculator?
The magnetic field of straight current carrying wire calculator gives the magnetic field strength B produced by a current I flowing through a long straight conductor at a perpendicular distance r. It applies the Biot-Savart result B = (µ₀ · I) / (2π · r) and shows how the field circles the wire.
Whenever charge moves it sets up a magnetic field. A straight wire carrying a steady current is the simplest case to study, and its field is what makes electromagnets, motors, and transformers work. The pattern is easy to picture: the field lines are not straight like the wire, they wrap around it in closed loops.
Knowing the field magnitude and direction near a wire matters for wiring layout, electromagnetic compatibility, and lab work where a stray field can affect sensitive instruments. A mains cable, a busbar, or a coil winding all start from this same basic result, so getting the single-wire case right is the foundation for everything more complicated.
This tool skips the algebra and the constant µ₀ so you can answer a practical question quickly: how strong is the field a given distance from a conductor that carries a given current? The answer comes straight from the Biot-Savart law integrated along an infinitely long line. Because the geometry is so regular, the result depends on just two quantities, which makes it a useful sanity check before reaching for a numerical field solver.
When the same current is wound into a coil the field is stronger and more uniform, which you can size with the solenoid magnetic field calculator.
How Magnetic Field Of Straight Current Carrying Wire Calculator Works
The calculator evaluates the Biot-Savart expression for a straight wire and reports the result in tesla, with the gauss equivalent shown alongside.
- I (current): Current in amperes (A) flowing through the wire.
- r (distance): Perpendicular distance from the wire in metres (m).
- µ₀ (vacuum permeability): A constant equal to 4π×10⁻⁷ T·m/A that sets how strongly a current makes a field in free space.
The derivation starts from the Biot-Savart law, which says each tiny piece of current contributes a small field. Adding up every piece of an infinitely long straight wire gives the tidy 1/r formula above. The factor 2π appears because the circular symmetry lets most of the components cancel, leaving only the field that points around the wire.
For a finite wire the calculator adds the corrected expression B = (µ₀ · I · L) / (4π · r · √(r² + (L/2)²)) = (µ₀ · I)/(2π·r) · L/√(L² + 4r²), which reduces to the long-wire value as the length L grows. When L is many times larger than r the two expressions agree to within a fraction of a percent.
The result in tesla is shown alongside its gauss equivalent (1 T = 10,000 G) so you can compare against published field values directly. Microtesla (µT) is handy for small fields near household wiring, where the numbers are only a few tens of microtesla.
Example: 1 A at 1 cm
Set I = 1 A and r = 0.01 m.
B = (4π×10⁻⁷ · 1) / (2π · 0.01) = 2×10⁻⁵ T.
B = 20 µT (about 0.2 G).
This is the field strength typical near low-current wiring a centimetre away, well below safety guideline limits but easily measured with a Hall sensor.
According to Wikipedia - Biot-Savart law, the magnetic field around a long straight wire is B = µ₀I / 2πr.
Each wire makes the field above, and the magnetic force between wires calculator shows how two such fields make parallel wires attract or repel.
Key Concepts Explained
The magnetic field of straight current carrying wire calculator rests on a few simple ideas that explain why the formula looks the way it does.
Vacuum permeability µ₀
The constant 4π×10⁻⁷ T·m/A sets how strongly a current creates a field in free space; in other materials the effective value changes with relative permeability. A material with relative permeability 1000 makes the same current produce a field roughly 1000 times stronger.
Inverse distance (1/r)
The field weakens linearly with distance, so moving twice as far from the wire halves the field strength. This is gentler than the 1/r² falloff of a static electric charge, because the wire is long and the field lines spread around a cylinder rather than radiating from a point.
Right-hand rule
Thumb along the current, fingers curl in the field direction; the field lines are circles centred on the wire. Reverse the current and the circulation reverses, which is why the direction depends only on which way the charges flow.
Long-wire approximation
The simple formula holds when the wire is much longer than the distance r; otherwise the finite-wire expression is needed. Near the end of a short wire the field is weaker and no longer purely circular, because there is less current on one side to contribute.
A charge placed in this circular field feels a sideways push that the Lorentz force calculator quantifies from charge, velocity, and field.
How to Use This Calculator
The magnetic field of straight current carrying wire calculator takes three numbers and returns the field, so the steps are short.
- 1 Enter the current: Type the wire current I in amperes; use 0 only to confirm a zero field. For alternating current, use the RMS value to get the RMS field.
- 2 Set the distance: Enter the perpendicular distance r from the wire to the point of interest in metres. Remember r is the shortest distance to the line of the wire, not the distance along it.
- 3 Add the wire length if finite: Leave wire length at 0 for the long-wire formula, or enter L to see the finite-wire correction on the perpendicular bisector. Use this when the wire is comparable to or shorter than r.
- 4 Read the result: Read the field in tesla and its gauss equivalent, plus the right-hand-rule direction. The finite-wire field is shown separately so you can see how much the short-wire correction matters.
Before finding the field you usually set the current with a resistor, which the Ohm's law calculator relates to voltage and resistance.
Benefits of Using This Calculator
It avoids hand errors with µ₀ and powers of ten, and it makes the tesla-to-gauss conversion immediate. Multiplying by 10,000 in your head is where mistakes slip in, especially at the microtesla scale.
Showing the finite-wire correction next to the long-wire value helps you see when the simpler formula is good enough. If the two readings are within a percent of each other you can safely use the long-wire shortcut; if they differ, the geometry matters.
Having the direction stated by the right-hand rule alongside the magnitude means you leave with the full picture: not just how strong the field is, but which way it points, which is what you need for force or induction problems that build on this result. It also keeps the units honest, since tesla and gauss are easy to mix up once numbers get small.
Factors That Affect Your Results
Two inputs drive the answer, and a few practical limits decide when the formula stops being accurate.
Current magnitude
The field scales linearly with I; double the current and the field doubles. Ten amps at a fixed distance gives exactly ten times the field of one amp.
Perpendicular distance
The field scales as 1/r, so distance is the dominant control on field strength near a wire. Halving the distance doubles the field, which is why fields are strongest right at the conductor surface.
Wire length (finite case)
For short wires the field on the perpendicular bisector is smaller than the long-wire formula predicts, because there is less current on each side to contribute to the point you are measuring.
- • The formula assumes a straight wire in free space; nearby ferromagnetic material such as iron distorts the field and can make it much stronger or change its direction.
- • It ignores the wire's own radius, so it is not valid at distances smaller than the conductor thickness. Right at the surface you should use the radius as the minimum r.
According to Encyclopaedia Britannica - Magnetic Field, a steady current produces a magnetic field whose direction is set by the right-hand rule.
The Biot-Savart law is the general source of this result, and the Biot number calculator applies the same law to other conductor shapes.
Frequently Asked Questions
Q: What is the formula for the magnetic field of a straight wire?
A: For a long straight wire the field is B = (µ₀ · I) / (2π · r), where µ₀ is the vacuum permeability (4π×10⁻⁷ T·m/A), I is the current in amperes, and r is the perpendicular distance from the wire. The result comes directly from the Biot-Savart law.
Q: How does the magnetic field change with distance from the wire?
A: The field falls off as 1/r. Doubling the distance halves the field, and halving the distance doubles it. That inverse relationship is why the field is strong right next to a current-carrying wire but weak a few centimetres away.
Q: What is the direction of the magnetic field around a wire?
A: The field forms concentric circles around the wire. Point your right thumb along the current and your curled fingers show the field direction; reversing the current reverses the circulation. This is the right-hand rule.
Q: What unit is the magnetic field measured in?
A: The SI unit is the tesla (T). Small fields are often given in gauss (1 T = 10,000 G) or microtesla (µT). A wire carrying a few amperes produces a field of only microteslas at typical distances.
Q: Does the formula work for a short or finite wire?
A: The simple 1/r formula assumes the wire is long compared with the distance. For a finite wire the corrected Biot-Savart expression is B = (µ₀ · I · L) / (4π · r · √(r² + (L/2)²)), which reduces to the long-wire value as the length L grows.
Q: What is µ₀ in the formula?
A: µ₀ is the vacuum permeability, a physical constant equal to 4π×10⁻⁷ T·m/A (about 1.257×10⁻⁶ H/m). It scales how strongly a current produces a magnetic field in free space.