Loading…

Solenoid or Toroid Magnetic Field Tool

Physics Electricity and Magnetism • Magnetic Fields and Sources

View all topics

4. Solenoid/Toroid Magnetic Field Tool

Computes magnetic field using Ampère’s law: \( B=\mu_0 n I \) for a (long) solenoid (\(n=N/L\)), or \( B=\mu_0 N I /(2\pi r) \) for a toroid (inside the core region). Includes a finite-length (fringe) on-axis approximation for solenoids and an interactive diagram.

Inputs accept 1e-7, pi, sqrt(2), sin(), cos(), tan(), log(), ln(), abs(). Use * for multiplication.
Mode + Inputs
Solenoid parameters
Total turns on the solenoid.
Turns per length: \(n=N/L\).
Used for finite on-axis approximation.
Sign flips field direction.
Measured from solenoid center (for finite model).
This sets the displayed axial direction; reversing \(I\) flips it.
Ready

Steps

Choose geometry and click Solve.

Diagram (pan/zoom + animation)

\(\mathbf{B}\), \(d\mathbf{l}\), and the Amperian loop
Drag to pan • Wheel/trackpad/pinch to zoom • Play animates loop traversal
What the vectors represent
  • \(\mathbf{B}\): magnetic field direction (axial for solenoid, circular for toroid)
  • \(d\mathbf{l}\): tangent direction along the chosen Amperian loop
  • Source: current \(I\) and turns (\(n=N/L\) or \(N\))
  • Shaded surface: spanning surface used to define \(I_{\text{enc}}\)
Solve to render the diagram.

Rate this calculator

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