Inside a long solenoid the magnetic field is nearly uniform and depends only on the turns per metre and the current, which is the principle behind electromagnets, relays, MRI magnets and particle-accelerator beam lines.
How to use the Solenoid Magnetic Field Calculator
- Current I
- Number of turns N
- Solenoid length ℓ
- Core relative permeability μ_r
Results update as you type, every field has its own unit menu, and everything is calculated in your browser.
How it works
Enter the current, number of turns, coil length and the core’s relative permeability.
Inputs explained
| Field | What to enter |
|---|---|
| Current I | Units: A, mA, µA, kA |
| Number of turns N | A number |
| Solenoid length ℓ | Units: cm, mm, m, in, ft |
| Core relative permeability μ_r | A number |
What each result means
- Magnetic field B = 1.25663706212e-06×[Core relative permeability μ_r]×[Number of turns N]×[Current I]÷[Solenoid length ℓ]
- Turns per metre = [Number of turns N]÷[Solenoid length ℓ]
- Field strength H = [Number of turns N]×[Current I]÷[Solenoid length ℓ]
Example values
How the main result changes when Current I changes and everything else stays at the example values above:
| Current I (A) | Magnetic field B (mT) |
|---|---|
| 1 | 3.1416 |
| 1.5 | 4.7124 |
| 2 | 6.2832 |
| 2.5 | 7.854 |
| 3 | 9.4248 |
| 4 | 12.5664 |
Formula
B = μ₀·μ_r·N·I / ℓ
Worked example
Inputs: Current I: 2 A; Number of turns N: 500; Solenoid length ℓ: 20 cm; Core relative permeability μ_r: 1.
Results: Magnetic field B = 6.28319 mT; Turns per metre = 2,500 1/m; Field strength H = 5,000 A/m.
Key terms
- Turns density
- Number of turns per unit length.
Frequently asked questions
Is the field uniform inside?
Nearly, far from the ends of a long solenoid.
What is the field outside?
Very weak for a long solenoid.
How strong are MRI magnets?
1.5–3 T, using superconducting solenoids.
Does a core increase the field?
Yes, by μ_r, until it saturates (≈ 1.5–2 T for iron).