Qalam Paper
← All posts

Class 9 · Physics · Magnetism · Simulations

How to Use the Solenoid Lab Sim — B = μ₀nI, Turns, Current and Core

29 October 2026 · 7 min read · Qalam Paper

A solenoid is just a coil of wire — but pass a current through it and it behaves like a bar magnet, with a strong, uniform field inside. What if you could double that field with one flick of a switch? QalamPaper's Solenoid Lab sim lets you build that field yourself: wind the coil, push current through it, slide in an iron core, and measure the field inside. It serves Class 9 Physics, Chapter 8 — Magnetism, and the same ideas return in Class 11, Chapter 10 — Electromagnetism.

What you'll learn: the three ways to strengthen a solenoid's field, the turns-per-cm trap that catches everyone, and why a toroid's field never escapes its ring.

Solenoid Lab simulation running on QalamPaper
Solenoid Lab simulation running on QalamPaper

The Solenoid Lab sim on QalamPaper.

What the sim is

The sim shows a solenoid with its magnetic field drawn as arrows inside the coil, and a meter reading the field strength. The field inside is straight, parallel and nearly uniform, and the arrows grow longer as the field grows stronger — so you can see the field change, not just read a number. Three controls drive the field: a "Turns per cm" slider, a "Current" slider, and a core switch that changes the core from air to iron.

How to open it

Sign in to your QalamPaper account at qalampaper.com, then open qalampaper.com/learn/sim/solenoid-lab.

Step-by-step: use the sim

1. Look at the coil and the field. The sim shows the solenoid with its field drawn as arrows inside. The field inside is straight, parallel and nearly uniform, and the arrows grow longer as the field grows stronger — so you can see the field change, not just read a number.

2. Predict first, then test. Each mission starts with a prediction, and a star is earned only for a correct one. One mission asks you to keep the current fixed and double the turns per centimetre — what happens to B? Think first, pick your answer, then test it on the sliders. The first mission asks for a number: with 10 turns per cm and a current of 2 A, predict the field inside the solenoid before you look at the meter.

3. Change the turns per centimetre. Use the "Turns per cm" slider and watch the meter: the field B is directly proportional to the turns per metre n, so doubling n doubles B. The sim's own graph plots B against turns per metre at a fixed current and core, and the straight line through it is the proof. Remember the conversion the mission depends on: turns per centimetre must become turns per metre first — 10 turns per cm is 1000 turns per metre, not 10.

4. Change the current. Now use the "Current" slider. B grows with the current too — more current, stronger field — exactly as the formula says.

5. Slide in the iron core. Switch the core from air (μr = 1) to iron (μr = 100) and watch the field jump. An iron core multiplies the field by a hundred, which is why real electromagnets always have one. The mission asks you to predict the new field first — work it out from the air-core value before you touch the switch.

6. Try the toroid. The sim has a second part on the toroid — a solenoid bent into a ring. Its field is trapped inside the ring, and the mission asks what the field is outside an ideal toroid. Test it: the answer is zero outside. A second mission asks for the field inside a toroid from its turns, current and radius, and a third applies Ampère's law to a straight wire carrying 5 A.

Try this: set 10 turns per cm and 2 A, read the meter — then double the turns per cm and watch B double. Now put the turns back and slide in the iron core instead. Which change is bigger? The core wins by a mile.

What to observe — and the science behind it

Everything in the sim follows one equation: B = μ₀nI, where B is the magnetic field inside the solenoid, n is the number of turns per metre, I is the current, and μ₀ is the permeability of free space. The three controls are the three quantities in the formula — n on one slider, I on the other, and the core changing the effective permeability. Double n, double B. Double I, double B. Swap air for iron, and B is multiplied by a hundred. That is the whole sim in one line, and it is also the whole exam topic: the field inside a solenoid depends on the turns, the current and the core, and on nothing else.

Fun fact: the toroid extends the same idea. Bending the solenoid into a ring traps the field inside it, so the field outside an ideal toroid is zero — there are no stray field lines leaking out, because the ring has no ends for them to escape from.

Worked example

Start with the sim's first mission: 10 turns per cm and a current of 2 A, with an air core. First convert the turns: 10 turns per cm × 100 cm per metre = 1000 turns per metre. Then B = μ₀nI = 4π × 10⁻⁷ × 1000 × 2 = 2.51 × 10⁻³ T, or 2.51 mT — the value the sim's meter shows. Now double the turns per centimetre to 20, keeping the current at 2 A: n becomes 2000 per metre, and B doubles to about 5.02 mT. Now slide in the iron core instead, back at 10 turns per cm and 2 A: the core multiplies the field by μr = 100, so B becomes 2.51 mT × 100 ≈ 251 mT.

For the toroid, take N = 1000 turns, a current of 2 A and a mean radius of 0.10 m. The field inside is B = μ₀NI ÷ (2πr) = 4π × 10⁻⁷ × 1000 × 2 ÷ (2π × 0.10) = 0.0040 T, or 4.0 mT — and outside the ideal toroid, B = 0. And Ampère's law around a straight wire carrying 5 A gives ∮B·dl = μ₀I = 4π × 10⁻⁷ × 5 = 6.28 × 10⁻⁶ T·m, or 6.28 µT·m.

Try this: before you check the toroid mission, predict the field inside from its turns, current and radius — N = 1000 turns, 2 A, mean radius 0.10 m — and predict the field outside too. If your inside answer is 4.0 mT and your outside answer is zero, you've got the toroid.

Exam tip

When a question asks how to strengthen the field of a solenoid, give all three ways: increase the current, increase the number of turns per unit length, and insert a soft-iron core. Quote B = μ₀nI and say which symbol each change affects — examiners award marks for linking the change to the formula, not just listing it. And do not confuse the solenoid with the toroid: the toroid's field is zero outside, while the solenoid's field spreads outside its ends. For the rest of your Class 9 Physics paper, read the FBISE Class 9 Physics pairing scheme.

Key takeaways

  • B = μ₀nI inside a solenoid; n is turns per metre, so convert turns per cm × 100.
  • Doubling n or doubling I doubles B; an iron core (μr = 100) multiplies B by 100.
  • 10 turns/cm at 2 A gives 2.51 mT in air and about 251 mT with an iron core.
  • Inside a toroid B = μ₀NI/2πr; outside an ideal toroid B = 0.

Quick self-test

1. A solenoid has 10 turns per cm and carries 2 A with an air core. What is B inside? Convert first: 10 turns per cm = 1000 turns per metre. B = μ₀nI = 4π × 10⁻⁷ × 1000 × 2 = 2.51 × 10⁻³ T, or 2.51 mT.

2. What happens to B if you double the turns per cm — and what if you slide in an iron core instead? Doubling the turns doubles B, to about 5.02 mT. Sliding in the iron core (μr = 100) multiplies B by 100, to about 251 mT.

3. A toroid has N = 1000 turns, a current of 2 A and a mean radius of 0.10 m. What is B inside — and outside? Inside: B = μ₀NI ÷ (2πr) = 0.0040 T, or 4.0 mT. Outside an ideal toroid: B = 0.

Open the Solenoid Lab — double the turns, watch B double, then slide in the iron core.

Try QalamPaper free

Generate a board-pattern paper in minutes — 14-day free trial, up to 10 papers, no payment needed.

Sponsored

Sponsored link →

Opens in a new tab.

More posts

We use cookies (including Google cookies for ads and analytics) to improve your experience. See our Privacy Policy.