Magnetic Field Inside a Solenoid
Inside a long solenoid, the magnetic field is uniform and parallel to the axis. The field strength depends on turns per unit length, current, and core permeability. Outside the solenoid, the field is approximately zero.
N × I — Ampere-turns. The magnetomotive force (MMF) driving the field.
l — Solenoid length. Field strength H = NI/l. Shorter solenoid = stronger field.
μr — Core permeability. Multiplies B by this factor. Iron cores can amplify the field 1000–10000×.
Solenoid Magnetic Field Calculator
This calculator finds the magnetic flux density (B) and field strength (H) inside a solenoid. The field depends on the number of turns, the current, the solenoid length, and the core material. It is uniform and parallel to the axis inside a long solenoid, and approximately zero outside.
B and H Formulas
B = μ&sub0;μr × H — flux density (Tesla)
μ&sub0; = 4π × 10&supmin;&sup7; T·m/A
NI = ampere-turns (magnetomotive force)
H depends only on geometry and current. B depends on H multiplied by the core permeability. A high-permeability core dramatically increases B without changing H. For the inductance of this same solenoid, see the Solenoid Inductance Calculator.
Units: Tesla, Gauss, A/m
Earth's field: ~50 µT = 0.5 Gauss.
Fridge magnet: ~5 mT = 50 Gauss.
Strong electromagnet: 0.1–2 T = 1000–20000 Gauss.
MRI machine: 1.5–7 T.
Strongest lab magnet: ~45 T.
Air-Core Coil (100 turns / 1A / 50mm)
B = 4π×10&supmin;&sup7; × 1 × 2000 = 2.51 mT
= 25.1 Gauss
2.5 mT — about 50 times the Earth's field. Enough for basic experiments and sensor testing, but too weak for actuators. For the current rise time when energising this coil, see the Inductor Current Calculator.
Electromagnet (500 turns / 2A / μr = 5000)
B = 4π×10&supmin;&sup7; × 5000 × 10000 = 62.8 T
62.8 T is above saturation for any real iron core (~2 T max). In practice, the core saturates and the actual field is limited to ~1.5–2 T. The calculator gives the theoretical value assuming constant permeability — always check against the core's saturation limit.
Relay Coil (1000 turns / 100mA / μr = 2000)
B = 4π×10&supmin;&sup7; × 2000 × 5000 = 12.6 T
Again above saturation. Real relay cores operate at 0.5–1.0 T. The formula shows the mmf (5000 A/m) and the theoretical B — the actual B is limited by the core material. For the coupling between this coil and a nearby coil, see the Mutual Inductance Calculator.
Core Saturation
Silicon steel: saturates at 1.5–2.0 T. Used in power transformers and motors.
Soft iron: saturates at 1.5–2.0 T. Used in relays and electromagnets.
Beyond saturation: μr drops toward 1, and the inductor/electromagnet loses its effectiveness. Increasing current gives diminishing returns.
Frequently Asked Questions
Last updated: March 2026