Qalam Paper
← All posts

Class 9 · Physics · 3D Simulation · How To

How to Use the Magnetic Field Lab Sim — Tracing Field Lines with a Compass

11 October 2026 · 7 min read · Qalam Paper

You cannot see a magnetic field — but you can map it. Sprinkle iron filings on paper over a magnet and they line up in loops; carry a compass around the magnet and its needle turns to follow the field at every point. The Magnetic Field Lab gives you that compass as a draggable probe, so you can walk it around a bar magnet and inside a solenoid.

What you'll learn: how to trace field lines with a compass, why the field is strongest at the poles, and why a solenoid's field is special.

Magnetic Field Lab simulation running on QalamPaper
Magnetic Field Lab simulation running on QalamPaper

The Magnetic Field Lab simulation running on QalamPaper.

What the sim is

The Magnetic Field Lab — 3D is an interactive 3D lab for Class 9 Physics, Chapter 8: Magnetism. A bar magnet — or, at the touch of a button, a current-carrying solenoid — sits in the scene with its field lines drawn around it. Drag a compass probe anywhere in the field and the needle swings to point along the local field line, while the readout reports the probe's position, its distance from the nearest pole, and a strength score out of 100. A graph plots field strength against distance from the nearest pole.

The rules on screen are four: outside a magnet the field lines run from north to south; inside they run from south to north, closing the loop; field lines never cross; and where the lines are closer together, the field is stronger. Switch to the solenoid view and the pattern changes — inside the coil the lines run straight, parallel and evenly spaced: the field there is uniform.

How to open it

Open qalampaper.com/learn/sim/magnetic-field-lab and sign in if asked. You can also reach it from Learn → Grade 9 → Physics → Magnetism. The sim is called Magnetic Field Lab — 3D on screen.

Step-by-step: map the field, then compare the solenoid

  1. Start at the bar magnet. The sim opens in bar-magnet mode with the probe near the magnet. Look at the field lines first: they leave the north pole, loop around outside, and enter the south pole.
  2. Drag the probe with the sliders. The Probe left–right and Probe up–down sliders move the probe, or you can drag it directly in the scene. Wherever you put it, the needle swings to lie along the field line at that point.
  3. Test the north pole. Put the probe just right of the north pole: the needle points away from it. Move it to the south-pole side and the needle points into the pole. That is Mission 1 — outside a bar magnet, field lines point from north to south.
  4. Walk away and watch the strength fall. Drag the probe far from the magnet and watch the Needle swing (strength) score drop toward zero while the Nearest pole distance grows. Close to the pole the needle swings hard; far away it barely moves. That is Mission 3.
  5. Switch to the solenoid. Press the Solenoid button: inside the coil the lines run nearly straight and parallel, evenly spaced from end to end. Drag the probe along inside the coil — the needle direction barely changes, because a uniform field has the same strength and direction everywhere inside.
  6. Compare the two patterns. Switch back to Bar magnet and compare: a bar magnet's field spreads out at both ends and weakens fast with distance, while a solenoid's field stays straight and even inside. That contrast is Mission 2, and it is why MRI scanners and loudspeaker coils are built as coils rather than bar magnets.
  7. Play the missions. Three missions, worth 3 stars, each ask you to predict first and then test in the scene: which way field lines point outside a bar magnet, which pattern belongs to a solenoid, and what happens to the field far from the magnet. Pick an answer, press Test, and a star is earned only for a correct prediction.

Try this: drag the probe inside the solenoid from one end to the other. The needle barely changes — now do the same walk past the bar magnet's poles and watch it swing wildly. Same probe, two very different fields.

What to observe — and the science behind it

Direction is the definition. A field line's direction at any point is the direction a compass needle points there — every line is the path a needle would trace. Remember: lines leave N and enter S outside the magnet.

Closer lines mean a stronger field. Near the poles the lines crowd together and the needle swing is strongest; far away they spread out and the swing fades.

The solenoid's uniform field is special. Inside a long coil the field is nearly the same at every point, which is why solenoids are used wherever a steady, predictable field is needed. Outside the coil the field looks much like a bar magnet's, with the same N-to-S loops.

Fun fact: MRI scanners and loudspeaker coils are built as coils rather than bar magnets — because inside a coil the field is uniform, the same strength and direction everywhere. A bar magnet can never do that.

Lines never cross. Two field lines crossing would mean the field points two ways at one point, which is impossible — so if your exam sketch has crossing lines, redraw it.

Try this: put the probe just right of the north pole, then move it to the south-pole side. The needle flips from pointing away to pointing in — that flip is the field line running from N to S.

Worked example

A compass is placed to the right of a bar magnet's north pole, then moved twice as far away. What changes? The needle still points away from the north pole along the field line — the direction does not reverse with distance — but its swing weakens, because the field falls with distance from the pole. Inside a solenoid the needle points along the coil's axis, and moving it from one end to the other changes almost nothing — the field is uniform. If an exam question asks where the field is strongest around a bar magnet, the answer is at the poles, where the lines are closest together.

Exam tip

The most-tested diagram in this chapter is the field pattern of a bar magnet, and the markers check three things: lines leave N and enter S, the lines are closest together at the poles, and no two lines cross. Draw the loops first, then add the compass needles along them — a needle anywhere on a line must lie along that line. For the solenoid, remember the one-word answer: uniform. Then test yourself on real papers with the Class 9 board exam guide.

Quick self-test

  1. Which way do field lines run outside a bar magnet? From north to south.
  2. What is the field like inside a solenoid? Straight, parallel and uniform — the same strength and direction everywhere inside.
  3. Can two field lines cross? No — that would mean the field points two ways at one point, which is impossible.

Key takeaways

  • Outside a magnet, field lines run from north to south; inside, from south to north, forming closed loops.
  • A compass needle points along the field line at its position — that is how the field is mapped.
  • Closer field lines mean a stronger field; the field is strongest at the poles and fades with distance.
  • Inside a solenoid the field is straight, parallel and uniform — unlike a bar magnet.
  • Field lines never cross, and the pattern around a bar magnet is the same shape as around a solenoid viewed from outside.

Try the Magnetic Field Lab sim — drag the probe around the magnet, then switch to the solenoid and find the uniform field inside.

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.