Magnetic Field Calculator

Magnetic Field Calculator

Magnetic Field Calculator

Calculate the magnetic field ($B$) generated by a long, straight current-carrying wire.

The Physics Formula

The magnetic field strength $B$ at a distance $r$ from an infinitely long straight wire carrying current $I$ is given by Ampère’s Law:

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

Where $\mu_0$ is the permeability of free space, with a value of $\mu_0 = 4\pi \times 10^{-7} \, \text{T}\cdot\text{m/A}$.

Input Parameters

Result

Enter values and click “Calculate” to see the result.


Understanding Magnetic Fields

A magnetic field ($B$) is a region around a magnet or a current-carrying object where a magnetic force can be observed. Moving electric charges, like the electrons flowing through a wire (current $I$), are the source of all magnetism. The strength of this field is measured in units of Tesla ($T$).

For a long, straight wire, the magnetic field lines form concentric circles around the wire, and the magnitude of the field is inversely proportional to the distance from the wire. This relationship is quantified by the formula:

$$ B \propto \frac{I}{r} $$

This fundamental principle is crucial in electromagnetism, forming the basis for countless applications from motors and generators to sophisticated medical imaging equipment like MRI machines.

Applications: Magnetic fields are essential in physics and engineering, powering devices such as solenoids, electromagnets, electric motors, and transformers. They are also used in particle accelerators and for confining plasma in fusion reactors.

How to Use This Calculator

  1. Input Current ($I$): Enter the magnitude of the electric current flowing through the wire in Amperes (A) into the first input box. Ensure this value is non-negative.
  2. Input Distance ($r$): Enter the perpendicular distance from the center of the wire to the point of interest in meters (m) into the second input box. This value must be positive ($r > 0$).
  3. Calculate: Click the Calculate Magnetic Field ($B$) button.
  4. View Result: The magnetic field $B$ will be displayed below the button, calculated using the constant $\mu_0 = 4\pi \times 10^{-7} \, \text{T}\cdot\text{m/A}$. The result is provided in Tesla (T), rounded to two decimal places.

Protected!