Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Physics
  3. /Magnetism Calculators
  4. /Magnetic Field Calculator

Magnetic Field Calculator

Last updated: March 17, 2026

Calculator

Results

Magnetic Field

4.000000e-5

T

Magnetic Field

0.04

mT

Magnetic Field

4.000000e-1

G

Magnetic Field Strength

31.830989

A/m

Results

Magnetic Field

4.000000e-5

T

Magnetic Field

0.04

mT

Magnetic Field

4.000000e-1

G

Magnetic Field Strength

31.830989

A/m

The Magnetic Field Calculator computes the magnetic field strength produced by a long straight current-carrying conductor at a given perpendicular distance. Based on the Biot-Savart law and Ampère's law, this tool applies the fundamental relationship $$B = \frac{\mu_0 I}{2\pi r}$$ where $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A}$$ is the permeability of free space.

Understanding the magnetic field around conductors is essential in electrical engineering, electromagnet design, power transmission safety, and physics research. The field decreases inversely with distance from the wire, forming concentric circular field lines whose direction follows the right-hand rule.

Visual Analysis

How It Works

When electric current flows through a straight conductor, it generates a magnetic field in the surrounding space. The magnitude of this field at a perpendicular distance r from an infinitely long straight wire carrying current I is given by:

$$B = \frac{\mu_0 I}{2\pi r}$$

This result comes from applying Ampère's circuital law along a circular Amperian loop of radius r centered on the wire. The enclosed current is I, and by symmetry the field has constant magnitude along the loop, giving $$\oint \vec{B} \cdot d\vec{l} = B(2\pi r) = \mu_0 I$$.

The direction of the field follows the right-hand rule: if the thumb of your right hand points in the direction of current flow, your fingers curl in the direction of the magnetic field lines. The field lines form closed circles around the wire, and the field magnitude falls off as 1/r.

Key properties of this field:

  • The field is directly proportional to the current — doubling the current doubles the field strength.
  • The field is inversely proportional to the distance — at twice the distance, the field is half as strong.
  • The constant $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A}$$ sets the scale in SI units.
  • For a finite-length wire, the formula must be modified using the Biot-Savart law with angular limits.

Common unit conversions: 1 T = 10,000 G (gauss), 1 T = 1,000 mT. Earth's magnetic field is roughly 25–65 μT (0.25–0.65 G).

Understanding Your Results

The calculated magnetic field B represents the field strength at the specified distance from the wire. Compare your result with common reference values: Earth's field is about 50 μT, a refrigerator magnet produces ~5 mT, and an MRI machine operates at 1.5–3 T. If the field exceeds safety thresholds for nearby electronics or biological exposure, consider increasing the distance or reducing the current.

Worked Examples

Household Wire

Inputs

current15
distance0.1

Results

B field0.00003
B gauss0.3
B mT0.03

A 15 A household current at 10 cm produces about 30 μT — comparable to Earth's magnetic field.

High-Current Bus Bar

Inputs

current500
distance0.02

Results

B field0.005
B gauss50
B mT5

An industrial 500 A bus bar at 2 cm distance generates 5 mT — significant for nearby sensitive equipment.

Frequently Asked Questions

The magnetic field at perpendicular distance r from a long straight wire carrying current I is $$B = \frac{\mu_0 I}{2\pi r}$$, where $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A}$$. This is derived from Ampère's law.

Point the thumb of your right hand in the direction of conventional current (positive to negative). Your fingers curl in the direction of the magnetic field lines. For a wire pointing upward, the field circles counterclockwise when viewed from above.

The field is inversely proportional to distance: $$B \propto 1/r$$. Doubling the distance halves the field. At 10× the distance, the field is only 1/10 as strong. This inverse relationship means the field drops quickly away from the wire.

Both are units of magnetic field strength. 1 tesla (T) = 10,000 gauss (G). Tesla is the SI unit; gauss is the CGS unit still commonly used. Earth's field is about 0.5 G or 50 μT.

This formula assumes an infinitely long wire. For a finite wire of length L, the Biot-Savart law gives a modified result involving the angles subtended by the wire ends. The infinite-wire formula is a good approximation when the measurement point is much closer to the wire than the wire's length.

The permeability of free space (vacuum permeability) is $$\mu_0 = 4\pi \times 10^{-7}\,\text{T·m/A} \approx 1.2566 \times 10^{-6}\,\text{T·m/A}$$. It relates magnetic field strength to the current producing it and is a fundamental constant in electromagnetism.

Sources & Methodology

Griffiths, D.J. (2017). Introduction to Electrodynamics, 4th Ed. Cambridge University Press. Halliday, Resnick & Walker (2013). Fundamentals of Physics, 10th Ed. Wiley. NIST Reference on Constants: https://physics.nist.gov/cuu/Constants/
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Magnetic Force Calculator

Magnetism Calculators

Magnetic Force Between Wires Calculator

Magnetism Calculators

Magnetic Flux Calculator

Magnetism Calculators

Magnetic Moment Calculator

Magnetism Calculators

Solenoid Magnetic Field Calculator

Magnetism Calculators

Solenoid Inductance Calculator

Magnetism Calculators