Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Electric & magnetic field lab

Place charges and wires to see electric field lines, potential and magnetic fields; measure the field anywhere and work out Coulomb and wire forces.

How to use

  1. Electric charges: pick a starting set-up, then tap the box to add charges and drag them around. Field lines start on positive charges and end on negative ones; the shading shows the potential. Choose "measure the field there" and tap any point to read the field strength and potential.
  2. Wires: each circle is a long straight wire seen end on. A dot means the current comes out of the page, a cross that it goes in. The magnetic field circles round each wire.
  3. Force calculators: Coulomb's law for two charges, and the force between two parallel wires.
  4. Keyboard only: use the starting set-ups, the check boxes, the Remove buttons in the list, and the calculators.

Keyboard and touch

Tap or click the boxAdd, measure or remove, as chosen in the menu
Drag a charge or wireMove it; the field redraws as you go
Tab and EnterUse the menus, check boxes, Remove buttons and calculators

Tips

  • Field lines never cross, and they are closest together where the field is strongest.
  • Between two like charges there is a point where the field is zero: measure it.
  • Two charged plates make an almost even field between them, the idea behind a capacitor.
  • Wires with currents the same way attract each other; opposite currents repel. Compare the pictures: the field between same-way wires nearly cancels.
  • The field of one wire falls off as 1 ÷ distance; the field of one charge as 1 ÷ distance².

About this lab

Electric field E = k q ÷ r² from each charge, added as vectors, and potential V = k q ÷ r added as numbers, with k = 8.9875517923 × 109 N m²/C². Magnetic field of a long straight wire B = μ0 I ÷ (2π r), circling the wire (right-hand rule), with μ0 = 1.25663706212 × 10−6 N/A² (CODATA 2018). Force between parallel wires per metre: μ0 I1 I2 ÷ (2π d). Field lines are traced with fourth-order Runge-Kutta steps along the field direction; their number per charge is proportional to the charge. The picture is a flat slice through point charges and endless wires. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product