Magnetic Field Solenoid

Enter turns per meter and current to compute the uniform magnetic field inside an ideal solenoid via B = μ₀nI.

Use the Magnetic Field Solenoid

Solenoid Parameters

Total wire turns wound on the solenoid.

Physical length of the winding.

A

Current through the solenoid wire in amperes.

1 = air/vacuum; iron ~200–5000; ferrite ~100–10000.

Formula

B = μ₀ · μᵣ · n · I

μ₀ = 4π × 10⁻⁷ T·m/A  |  n = N / L

Results

Enter solenoid parameters and click Calculate.

Copied!

Summary

This tool calculates the uniform magnetic field (B) inside an ideal, infinite solenoid using B = μ₀nI, where μ₀ is the permeability of free space (4π × 10⁻⁷ T·m/A), n is the number of turns per meter of length, and I is the current in amperes. You can enter turns and length separately, or supply n directly. Results are shown in Tesla, millitesla, microtesla, and Gauss.

How it works

  1. Enter the number of turns (N) and the solenoid length, or enter turns per meter (n) directly.
  2. Enter the current (I) flowing through the solenoid wire in amperes.
  3. Optionally enter a relative permeability (μᵣ) for a ferromagnetic core; default is 1 (air/vacuum).
  4. The tool computes n = N / L if N and L are given, then evaluates B = μ₀ · μᵣ · n · I.
  5. Results are displayed in Tesla, millitesla, microtesla, and Gauss.

Use cases

  • Physics homework and exam preparation involving solenoid problems.
  • Designing electromagnets for lab experiments or classroom demos.
  • Estimating the field strength inside a relay or contactor coil.
  • Comparing air-core vs. ferromagnetic-core solenoid fields.
  • Verifying hand calculations with a quick sanity check.
  • Teaching the proportional relationship between turns, current, and field.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu