# Solenoid Magnetic Field Calculator

URL: https://speedycalculator.com/calculators/physics/solenoid-magnetic-field/
Last updated: 2026-11-08

> The solenoid magnetic field calculator finds the magnetic field inside a long solenoid from the current, number of turns, length and core permeability.

## Inputs

- Current I (A, mA, µA, kA)
- Number of turns N
- Solenoid length ℓ (cm, mm, m, in, ft)
- Core relative permeability μ_r

## Results

- Magnetic field B
- Turns per metre
- Field strength H

## Formula

```
B = μ₀·μ_r·N·I / ℓ
```

## Explanation

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

FieldWhat to enterCurrent IUnits: A, mA, µA, kANumber of turns NA numberSolenoid length ℓUnits: cm, mm, m, in, ftCore relative permeability μ_rA 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)13.14161.54.712426.28322.57.85439.4248412.5664

## 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.

## FAQ

**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).


## Sources

- [OpenStax: University Physics Volume 2](https://openstax.org/details/books/university-physics-volume-2)
- [HyperPhysics (Georgia State University)](http://hyperphysics.phy-astr.gsu.edu/hbase/hframe.html)
