1. Home
  2. Physics
  3. Magnetism & induction
  4. Solenoid Magnetic Field Calculator

Solenoid Magnetic Field Calculator

Field inside a long coil from turns, length and current, or the current needed.

PhysicsGrades 11–12IntermediateStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. A solenoid 25 cm long has 500 turns and carries 2 A. Find the field inside.

  2. What current gives a field of 10 mT in a 50 cm solenoid with 1000 turns?

Worked example

Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.

Question: A solenoid 25 cm long has 500 turns and carries 2 A. Find the field inside.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Put the values into the formula
Answer
Magnetic fieldB = 0.005027 T (= 5.027 mT)
Step-by-step solution
  1. Write the given values in SI units
    N=500
    L=25 cm = 0.25 m
    I=2 A
    μ0=4π × 10−7 T m/A
    To find: B (Magnetic field)
  2. Put the values into the formula
    B=μ0 NL I
    =(1.257 × 10−6) × 5000.25 × 2
    =0.005027 T (= 5.027 mT)
Key idea: Inside a long solenoid the field is strong and almost the same everywhere. Put an iron core inside and it becomes an electromagnet hundreds of times stronger.

Terms used on this page

New to a word in the question or the solution? Here it is in simple language.

Electric current (I)
The flow of electric charge through a wire, measured in amperes (A). A phone charger gives roughly 1 to 3 A.

Symbols in this solver

What each box asks for, and its unit.

SymbolWhat it meansSI unit
NNumber of turns(no unit)
LLength of the coilm (or km, cm, mm, R⊕, AU)
ICurrentA (or mA)
BMagnetic fieldT (or mT, µT, G)

Formula & concept

Field inside a long coil from its number of turns, length and current, or the current needed for a given field.

B = μ0NLI

Key idea: Inside a long solenoid the field is strong and almost the same everywhere. Put an iron core inside and it becomes an electromagnet hundreds of times stronger.

What it can find

Choose the unknown with the “What do you want to find?” buttons: magnetic field, current, number of turns. The formula is rearranged for you and every step is shown.

How to use this calculator

  1. Choose what you want to find. Its box turns orange.
  2. Type the known values from your question and pick the unit for each one.
  3. Press Solve step by step.
  4. Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
  5. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  6. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Solenoid Magnetic Field work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula B = μ0(N)/(L)I and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
Inside a long solenoid the field is strong and almost the same everywhere. Put an iron core inside and it becomes an electromagnet hundreds of times stronger.
Can I enter values in km, mm, kN or °C?
Yes. Each box has a unit list. The conversion to SI units is shown as the first step of the solution.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Solenoid Magnetic Field free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Grades 11–12 (A-Level · AP · IB · Class 11–12 · JEE · NEET). The working follows the method used in textbooks and exams.