Solenoid Magnetic Field Calculator
Test cases replayed : 2 of 2 match · Methodology · Sources
Enter the turns, coil length, current and core permeability to get the field inside the coil.
Result
Field B (mT)
Turns per meter n
Reading the result
At a glance
What moves the result
Method and sources: How this calculator works, Sources
- Field B (T)
- Field B (gauss)
Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of turns N: enter 0 or more.
- Coil length, in cm: enter 0 or more.
- Current I, in A: enter 0 or more.
- Relative permeability of the core μr (1 = air): enter 0 or more.
- Read the result: Field B (mT); the panel also shows Turns per meter n, Field B (T) and Field B (gauss).
Sources
- Fundamental Physical Constants, 2022 CODATA adjustment National Institute of Standards and Technology (NIST) checked on 2026-11-01
How this calculator works
B = μ₀ × μr × N × I ÷ l (Ampère's law applied to a long solenoid), with μ₀ = 1.25663706127 × 10⁻⁶ N/A² (NIST CODATA 2022 values, read on physics.nist.gov/cuu on 2026-10-27). 1 gauss = 10⁻⁴ T (NIST SP 811, Appendix B.9 conversion factors, read on nist.gov on 2026-10-27).
The formula gives the uniform field near the center of a long coil; the field at the ends is about half.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Number of turns N | ||
| Coil length | cm | |
| Current I | A | |
| Relative permeability of the core μr (1 = air) | ||
| Turns per meter n | ||
| Field B | T | |
| Field B | mT |
Worked example
| Number of turns N | 1,000 |
|---|---|
| Coil length | 20 cm |
| Current I | 2 A |
| Relative permeability of the core μr (1 = air) | 1 |
| Turns per meter n | 5,000 |
|---|---|
| Field B (T) | 0.0126 |
| Field B (gauss) | 125.6637 |
Field B (mT) 12.5664
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the field of 1,000 turns over 20 cm with 2 A?
About 12.5664 mT (125.66 gauss) with an air core.
Does the coil diameter matter?
Not for a long solenoid: only turns per unit length and current set the inner field.