MechSimulator

Magnetic Playground — Magnet & Magnetic Field Simulator

A magnet sandbox for Grades 3–12 • drag, push, flip and test real magnets • 12 missions and 6 experiments — Simulate • Explore • Practice • Quiz

Mode
Show for
Display Controls
Drag a magnet from the tray onto the bench, then push two magnets together. Double-click flips one.

📖 Understand what you see
💡 The idea — what you are looking at
Σ Live equations — your numbers substituted
🧪 Try this — predictions to test
User Guide — Magnetic Playground
1 What the Magnetic Playground does

The Magnetic Playground is a free magnet simulator and magnetism virtual lab for Grades 3 to 12. It opens on a magnet sandbox: a lab bench seen from above, with a tray of things to put on it. It runs in any browser on Chromebooks, laptops and tablets, with no download or login. (On a phone the bench is cramped, so a larger screen is recommended.)

  • Magnets: bar and short bar, horseshoe, U-magnet, cylinder, cube, flat disc and ring (magnetised through their thickness, so turning one over swaps the face that is up), and a mystery magnet with no markings. Each can be ferrite or neodymium.
  • Objects: 20 things to test, from paper clips, a nail and a ball bearing to a copper wire, a gold ring, a stainless spoon and a US 5-cent coin.
  • Tools: a compass, plotting compasses, a field probe, an iron-filings shaker, and sheets of cardboard, glass, aluminium and steel that stand on edge.
  • Electric: an electromagnet with a battery and switch, a current-carrying wire through the bench, and a coil wired to a centre-zero meter.

Beside the sandbox are twelve missions that check themselves, and an Experiments view with six set-ups the bench cannot hold: Earth’s Magnetism, Make a Magnet (domains and the Curie temperature), Motor Effect, DC Motor, Generator and Charged Particles.

There are four modes: Simulate (the sandbox and the experiments), Explore (41 concept cards), Practice (endless questions at three levels) and Quiz.

2 How to play on the bench
  1. Bring things out. Drag anything from the tray on the left onto the bench, or click it to drop it in a free spot. The tray has four tabs: Magnets, Objects, Tools and Electric.
  2. Move, turn and flip. Drag to move. Drag the yellow handle, use the mouse wheel over the item, or press R / Shift+R to turn it. Double-click (double-tap) or press F to flip it: a bar swaps ends, a disc or ring turns over, a horseshoe’s N and S arms change sides. On a tablet each finger can hold a different item, and a second finger on the empty bench twists the item you are holding.
  3. Watch the poles. When two magnets are close, a green arc means they pull together and an orange arc means they push apart, before anything moves. Things slide only when the magnetic force beats the friction of the bench.
  4. Use the panel. Click an item to select it. The panel beside the bench names it, explains it, and gives its buttons: flip, turn, copy, lock (tape it down), cut a bar magnet in half, remove. Electric items get their own controls: switch, current, turns, core, reverse the battery.
  5. Put it back by dragging it onto the tray, or press Delete. Ctrl+Z undoes and Ctrl+Shift+Z redoes; the buttons at the top right of the bench do the same and clear it.

The Show for switch (Grades 3–5, 6–8, 9–12) changes what is shown, never the physics: the youngest see N and S, “push!” and “pull!”; Grades 6–8 add field lines and force arrows; Grades 9–12 add forces in newtons, the induced poles in iron and the meter’s current. Keyboard only: click the bench, then Tab picks the next item, the arrow keys move it, L locks it, Ctrl+D copies it and Esc lets it go. Space pauses and A sprinkles iron filings.

3 Display Controls: field lines, iron filings, compass grid and field map

The Display Controls menu at the top of the canvas, next to the tray, changes how the magnetic field is shown. Field lines are traced from the field itself (they run from N to S outside a magnet and are crowded where the field is strong). Iron filings sprinkle thousands of tiny segments that line up along the field, brighter where it is stronger, just like filings on paper. Compass grid fills the table with plotting compasses. Field strength map colours the space by |B| on a logarithmic scale, with a key. You can also hide force arrows, labels and sound. Your choices are remembered on this device.

4 Magnets that really push and pull, and the missions

Everything lies on a bench with friction (coefficient μ = 0.20). The force between magnets is calculated from their poles, so a magnet slides only when the magnetic force beats friction: bring two ferrite bars within about 3 cm end to end and they snap together (neodymium bars from about 8 cm). Iron objects become magnets while a magnet is near them, so a clip is pulled toward either pole, and a nail touching a magnet can hold a clip on its far end. Press Sprinkle iron filings (or drag the shaker) to see the field: the filings settle along it once the bench is still.

The Missions list sits in the panel when nothing is selected. A mission sets up the bench, states one goal and checks it for you: push or pull, sort the objects, the nickel surprise, name the mystery magnet, make a temporary magnet, draw the field, find the neutral point, an electromagnet with N on the left, block the pull, hit a target field, make the meter kick both ways, and Ørsted’s circle. Hints come in three steps, and you earn up to three stars (fewer for hints, never for speed). Progress is kept in your browser only. Leaving a mission puts your own bench back.

Share your setup (in the header) puts the whole bench into a link, so a teacher can send a class the same starting point.

5 Explore: 41 concept cards at three levels

Explore has eight topics: magnet basics, materials and domains, fields and Earth, current makes magnetism, forces and motors, induction and generators, charged particles, and magnets in daily life. Each card shows its grade band, and the Level filter shows only the cards for one band. Cards with a formula include a worked example. Try it on the sandbox bench puts the item a card is about onto the bench and selects it; Try it in the … opens the matching experiment.

6 Practice and Quiz

Practice deals endless questions. For Grades 3–5 and 6–8 they are choice questions generated fresh each time (attract or repel, magnetic or not, compass direction, electromagnet strength, the clock rule, Curie temperature…), each followed by the reason. For Grades 9–12 most are calculations: the field of a wire, force between wires, solenoid field, F = BIL, coil torque, flux, Faraday’s law, generator EMF, Lorentz force, radius and frequency of a charged particle, magnetic dip, the velocity selector and the transformer, plus direction questions for Fleming’s rule and Lenz’s law. Answers within 2 % count and a worked solution follows.

Quiz asks 5 questions from a pool of 33, at one level or all of them. The questions and their answer options are shuffled every time, and the result shows the right answers with a star rating.

7 How the physics is modelled (and what is a model)
  • Magnets use the pole model: each pole is a point source of field, B = (μ0/4π)q/r², with q = MA and M ≈ Br/μ0 (ferrite Br = 0.38 T, neodymium 1.3 T). The poles sit 1/12 of the length in from each end (magnetic length = 5/6 of the length). On the bench, compasses, filings, field lines and the probe all read the field on a sheet 8 mm above the bench top, just above the magnets, which is what a plotting compass or a sheet of paper over the magnets samples. Flat discs and rings have one pole on each face, so their face that is up is what shows.
  • Iron (clips, nails, a ball bearing, a steel can) is magnetised by the field it sits in: M = χH with χ set by its shape (about 1/N, N the demagnetising factor), saturating at Ms = 1.6×106 A/m. Each piece feels the others, so iron can hold iron. A steel sheet is solved as a row of cells that carry the field along the sheet; this shows shielding qualitatively. Cardboard, glass and aluminium leave a steady field exactly as it was.
  • Wires: B = μ0I/2πr exactly.
  • Earth is a tilted dipole (9.4°, B0 = 30 μT): tan I = 2 tan λ. The real field also has smaller non-dipole parts.
  • Domains follow a Preisach model with the bar’s own demagnetising field; the hysteresis axes are relative units.
  • Electromagnet: the coil’s own field is μ0nI exactly; the core factor, saturation and paper-clip count are an illustrative model, labelled as an estimate.
  • Induction: the coil’s flux is the solid angle each pole sees through its turns, plus the magnet’s own flux while it passes through, so it changes smoothly; ε = −NΔΦ/Δt drives a 10 Ω circuit and a ±20 mA meter. Charged particles are moved with an exact rotation (Boris) step, non-relativistic and capped at about 7 % of the speed of light.

All values are in SI units; field strengths are also given in gauss (1 T = 10,000 G), which some US textbooks still use.

8 For teachers: standards and lesson ideas

The sandbox and experiments support NGSS 3-PS2-3 and 3-PS2-4 (magnetic interactions between objects not in contact; a design problem with magnets), MS-PS2-3 and MS-PS2-5 (factors that affect magnetic forces; fields exist between objects not in contact), and HS-PS2-5 (an electric current makes a magnetic field and a changing magnetic field makes a current). They also cover the magnetism and electromagnetism topics of GCSE and IGCSE physics and the CBSE chapters on magnetic effects of current, moving charges and magnetism, and electromagnetic induction. Quick lesson ideas: predict-observe-explain with the Nickel surprise and Sort the objects missions; give every pair of students a mystery magnet to name; share one bench link and ask what changes when a disc is turned over; plot the dip needle at five latitudes in the Earth experiment; graph B against distance with the probe.

9 Tips and common mistakes
  • Attraction does not prove something is a magnet; repulsion does.
  • Not all metals are magnetic: copper, aluminium, gold, silver and brass are not attracted.
  • The magnetic pole in the Arctic is a south-type pole: that is why a compass’s north end points to it.
  • A magnet sitting still in a coil induces nothing. Only a changing flux induces a current.
  • The magnetic force on a moving charge never changes its speed, only its direction.
  • Left hand for motors (force from current), right hand for generators (current from motion).

Magnetism Explained: An Interactive Magnet Simulator from Grade 3 to Grade 12

A magnet is an object that makes a magnetic field around itself. It attracts iron, nickel, cobalt and most steels, and it pushes or pulls other magnets without touching them. The Magnetic Playground lets you explore that idea on a magnet sandbox: a bench where you bring out real magnets, iron and compasses, push them together, turn them over and watch what happens, with six experiments beyond it that run from Earth’s field to electrons curving in a magnetic field. Everything draws the field and shows its numbers, so the same page works for a Grade 3 lesson on attraction and repulsion and for a Grade 12 problem on Faraday’s law.

Magnetic poles: attraction and repulsion

Every magnet has a north pole and a south pole, where its pull is strongest. Like poles repel and unlike poles attract. Plain iron is attracted by either pole, so the only sure test for a magnet is repulsion. Cut a bar magnet in half and each piece has its own north and south pole: a single isolated pole has never been found. On the sandbox bench the force between magnets is calculated from their poles, so two magnets placed far apart stay put (friction wins) and slide together only when they are close enough for the magnetic force to beat friction.

Learning polarity by playing: what to try on the bench

Put two bar magnets on the bench and push one slowly toward the other. At a few centimetres it jumps the last gap with a click: N has met S. Double-click it to flip it end for end and push again: now it slides away, because N faces N. Do the same with two flat disc magnets, side by side: with the same face up they push apart, and turning one over makes them pull together. That is the whole of polarity in two experiments. A paper clip behaves differently. It jumps to either end of a magnet, because the magnet turns the clip into a temporary magnet whose near end is always the opposite pole. And a compass is a small magnet too: its red, north-seeking tip is pushed away from a magnet’s north pole, which is how you can name the poles of a magnet with no paint on it.

Magnetic field lines, compasses and iron filings

Field lines show the direction a compass needle would point. Outside a magnet they run from N to S, inside it they continue from S to N, they never cross, and they crowd together where the field is strongest. Iron filings and plotting compasses make the pattern visible. Field strength is measured in tesla (T): Earth’s field is 25–65 μT, a fridge magnet a few millitesla, the surface of a neodymium magnet about half a tesla and an MRI scanner 1.5–3 T.

IdeaRule or formulaWhere to try it
Poleslike repel, unlike attractSandbox: any two magnets
Field of a straight wireB = μ0I / 2πrSandbox: current wire
Field inside a long solenoidB = μ0nISandbox: electromagnet
Force on a currentF = BIL sinθMotor Effect
Torque on a coilτ = NBIA cosφDC Motor
Faraday’s lawε = −NΔΦ/ΔtSandbox: coil and meter
Generator EMFε = NBAω sinωtGenerator
Force on a moving chargeF = qvB sinθ, r = mv/qBCharged Particles
Magnetic dip (dipole)tan I = 2 tanλEarth’s Magnetism

Which materials are magnetic?

Only ferromagnetic materials are strongly attracted: iron, nickel, cobalt and alloys made from them, including most steels. Most metals are not: copper, aluminium, gold, silver, brass and lead do not stick. That surprises many students, and the sandbox’s test objects are chosen around it, with a “tin” can that sticks (it is steel), an aluminium can that does not, a copper-coloured coin that sticks because it is copper-plated steel, and a US 5-cent coin that does not because its copper–nickel alloy is not magnetic. A steady magnetic field also passes straight through paper, plastic, glass, wood, aluminium and copper; only a magnetic material such as a steel sheet blocks it.

Magnetic domains and the Curie temperature

Inside iron, tiny regions called domains are each fully magnetised. In an ordinary iron bar they point every which way and cancel out; magnetising the bar lines them up. Stroking a steel bar with a magnet, or putting it in a coil carrying direct current, does this. Heating it above its Curie temperature (770 °C for iron, 354 °C for nickel) or hammering it scrambles the domains again. Soft iron loses its magnetism as soon as the field is removed, which is why it is used for electromagnets, while hard steel keeps it and makes permanent magnets.

Earth’s magnetic field

Earth behaves like a giant bar magnet tilted about 10° from its spin axis, with the imaginary magnet’s south pole in the Arctic. That is why the north pole of a compass points north. The field is made by electric currents in Earth’s liquid iron outer core. A dip needle shows that the field also points into the ground: level at the magnetic equator, straight down at the magnetic poles. For a dipole the angle of dip obeys tan I = 2 tan λ, so at magnetic latitude 45° the dip is 63.4°.

Electromagnetism: from Ørsted to the electric motor

In 1820 Hans Christian Ørsted saw a compass needle turn beside a wire carrying current: an electric current makes a magnetic field. Round a straight wire the field lines are circles, given by the right-hand grip rule, and B = μ0I/2πr: 10 A gives 40 μT at 5 cm, about the same as Earth’s field. Wind the wire into a coil around a soft iron core and you have an electromagnet, which is stronger with more current, more turns and an iron core. A wire carrying current across a magnetic field feels a force, F = BIL sinθ, whose direction is given by Fleming’s left-hand rule. A 5 cm wire carrying 3 A across a 0.2 T field feels 0.03 N. Put a coil on an axle between two poles, add a split-ring commutator to reverse the current every half turn, and you have a DC motor.

Electromagnetic induction and generators

Michael Faraday found the reverse effect in 1831: a changing magnetic field makes a current. Push a magnet into a coil and a meter flicks one way; pull it out and it flicks the other way; hold it still and nothing happens. The induced EMF is ε = −NΔΦ/Δt, and by Lenz’s law the current always opposes the change that caused it, which is energy conservation at work. A generator spins a coil in a magnetic field: ε = NBAω sinωt. A 100-turn coil of area 0.01 m² spinning at 50 Hz in a 0.2 T field gives a peak of 62.8 V.

Charged particles in a magnetic field

A charge moving across a magnetic field feels a force F = qvB at right angles to its motion, so it moves in a circle of radius r = mv/|q|B without speeding up or slowing down. An electron at 2×106 m/s in a 1 mT field circles with a radius of 1.14 cm, and a proton at the same speed circles 1836 times wider. The same force steers particles from the Sun toward the poles to make the aurora, and it is the working principle of mass spectrometers and cyclotrons.

Who uses this simulator?

Elementary students meeting magnets for the first time (NGSS 3-PS2-3), middle-school students learning about fields, electromagnets and Earth’s magnetism (MS-PS2-3, MS-PS2-5), high-school physics students working on electromagnetism and induction (HS-PS2-5, GCSE, IGCSE, CBSE Classes 10 and 12, AP Physics 2), and teachers who want a projector demonstration or a Chromebook activity for every grade from one page.

Frequently asked questions

Which materials are attracted to a magnet?

Only ferromagnetic materials are strongly attracted: iron, nickel, cobalt, most kinds of steel (steel is mostly iron) and some alloys and ceramics. Most metals are not attracted, including copper, aluminium, gold, silver, brass, lead and zinc, and neither are wood, plastic, glass, rubber or paper. A tin can sticks because it is steel with a thin coat of tin.

How can you find the north pole of an unmarked magnet?

Bring a compass close to one end. The compass needle is a magnet too, and its north (usually red) tip is pushed away from the magnet's north pole and pulled toward its south pole, because like poles repel and unlike poles attract. You can also hang the magnet from a thread: the end that swings round to point north is its north pole.

Why does a compass needle point north?

A compass needle is a small magnet that is free to turn. Earth's magnetic field, made by currents in its liquid iron outer core, acts like a huge bar magnet whose south pole lies in the Arctic. Unlike poles attract, so the needle's north pole turns toward the Arctic and points north.

How do you make an electromagnet stronger?

Increase the current, wind more turns of wire on the coil, or put a soft iron core inside it. Inside a long coil the field is B = μ0nI, so it grows with the turns per metre n and the current I, and an iron core multiplies it many times. Reversing the current swaps the poles but does not change the strength.

What is Fleming's left-hand rule?

It gives the direction of the force on a current-carrying wire in a magnetic field. Hold the thumb, first finger and second finger of your left hand at right angles: the First finger points along the Field (north to south), the seCond finger along the Current, and the thuMb gives the Motion (force). The size of the force is F = BIL sin θ.

How does a magnet produce electricity?

Moving a magnet into or out of a coil changes the magnetic flux through the coil, and a changing flux induces a voltage (Faraday's law): ε = −NΔΦ/Δt. The current only flows while the flux is changing, and it flows in the direction that opposes the change (Lenz's law). Generators do this continuously by spinning a coil in a magnetic field.

Explore Related Simulators

Go deeper into induction with the Faraday’s Law simulator, see a full machine in the AC Generator and the DC Motor, step voltages up and down with the Transformer, and build circuits with Ohm’s Law. For the atoms behind magnetism, try Build Your Atom.

Updated