Loading…

Ampere's Law B Field Solver

Physics Electricity and Magnetism • Magnetic Fields and Sources

View all topics

3. Ampere’s Law B-Field Solver

Applies Ampère’s law for symmetric paths: \( \displaystyle \oint \mathbf{B}\cdot d\mathbf{l} = \mu_0 I_{\text{enc}} \). Computes \(\mathbf{B}\) (components), magnitude, and direction, and visualizes an Amperian loop with \(d\mathbf l\).

Inputs accept 1e-7, pi, sqrt(2), sin(), cos(), tan(), log(), ln(), abs(). Use * for multiplication.
Inputs
Infinite wire inputs
Magnitude of wire current.
Sets \(\hat{\phi}\) direction (right-hand rule).
\(\rho=\sqrt{P_x^2+P_y^2}\).
Point is in the xy-plane.
Ready

Steps

Choose a case and click Solve.

Diagram (pan/zoom + loop traversal)

\(\mathbf{B}\), \(d\mathbf{l}\), and the Amperian loop
Drag to pan • Wheel/trackpad/pinch to zoom • Play animates the loop direction.
What the vectors represent
  • \(\mathbf{B}\): magnetic field direction (set by symmetry)
  • \(d\mathbf{l}\): tangent direction along the chosen Amperian loop
  • Source current: wire \(I\), sheet \(\mathbf{K}\), or solenoid current \(I\)
  • Shaded surface: bounded by the loop; \(I_{\text{enc}}\) pierces this surface
Solve to render a case.

The power of Ampère’s law is symmetry: it lets you replace the integral by a simple product like \(B(2\pi\rho)\) or \(2B\ell\), depending on the geometry.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.