Physics Laws & Theorems
Advanced

Ampère's Law

A magnetic field circulates around an electric current.

Formula

∮B⃗⋅dl⃗=μ0I\oint \vec{B} \cdot d\vec{l} = \mu_0 I

Variables

\vec{B}Magnetic field
\mu_0Permeability
ICurrent

Example

The magnetic field around a wire circles it and grows with the current it carries.

How it works

Ampère's law says that if you add up the component of the magnetic field tangent to any closed loop, that total circulation is proportional to the current passing through the loop. Physically, this expresses the fact that electric current is a source of curling magnetic fields, which is why fields wrap around wires and coils instead of pointing straight out like electric fields do. In highly symmetric situations, it lets you turn a difficult field calculation into a simple current-counting problem.

When to use it

Use this law when the current distribution has enough symmetry to make the magnetic field easy to relate to a closed path, such as around a long straight wire, inside a solenoid, or around a toroid. It is especially useful in electromagnetism problems where you need the magnitude of vec{B} from a known current.

Worked example, step by step

A long straight wire carries a current of 8.0 A. Find the magnetic field at a distance of 4.0 cm from the wire. For a circular Amperian loop of radius r around the wire, the field is constant and tangent to the loop, so B dl = B(2\u03c0r). Ampe8re's law gives B(2\u03c0r) = \u03bc0 I. Solve for B: B = \u03bc0 I / (2\u03c0r). Substitute values: B = (4\u03c0 \u00d7 10^-7 T\u00b7m)(8.0 A) / (2\u03c0 \times 0.040 m). B = 4.0 \u00d7 10^-5 T. Final answer: the magnetic field magnitude is 4.0 \u00d7 10^-5 tesla, directed in circles around the wire by the right-hand rule.

Common mistakes to avoid

  • Forgetting that the line integral is around a closed loop, not a straight line
  • Using the law without symmetry, when the field is not constant along the chosen path
  • Mixing up current direction and magnetic-field direction; use the right-hand rule to get the sign and orientation

Did You Know?

Ampère's law links electric current to the magnetic field that circles around it.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026