MechSimulator

Electric Field Simulator: Electrostatics Lab for Coulomb’s Law, Field Lines & Potential

Charges, dipoles, rods, rings & disks — Simulate • Lab • Explore • Practice • Quiz

Mode
Display Controls
Field
Scene

Σ Mathematical laboratory — superposition at the probe, with the numbers in
User Guide — Electric Field Simulator
1 Overview

The simulator is an electrostatics lab on a flat plane. You place point charges, dipoles, charged rods, rings, disks, line charges, spherical shells and solid spheres, and it draws the electric field lines, field vectors, equipotential lines and a colour map of the potential or the field strength. A probe, a voltmeter, a ruler, a test charge and a charge counter measure what you see. It has five modes: Simulate, Lab, Explore, Practice and Quiz.

2 Getting Started

Pick one of the 13 ready-made set-ups in card 1, or add your own sources from card 2. Drag a source to move it; click it to select it and change its charge, size or orientation in card 3. Press Delete to remove the selected source. Card 4 adds a uniform field. Turn on an instrument in the bar under the field and drag it where you want to measure.

3 Simulate Mode
  • Field lines start on positive charges and end on negative ones; the number leaving each charge is proportional to its size, and they never cross. In a flat picture their spacing is only a rough guide to strength, so use the arrows or the colour map for that.
  • Equipotentials are drawn at evenly spaced potentials and cross the field lines at right angles.
  • The plane is a slice through 3D space. A ring or disk lies either flat in it (seen as a circle) or edge-on (its axis in the plane, seen as a line). A line charge runs along the plane or straight through it.
  • Instruments: the probe reads E (magnitude, components, direction); the voltmeter reads V at each lead and the difference; the ruler measures distance and angle; the test charge shows the force on it and can be released to move; the counter adds up the charge inside a box.
  • The Mathematical laboratory under the field shows the superposition at the probe: one row per source, with its distance, field components and potential, and the sum.
4 Lab Mode

Lab mode has seven guided experiments: the inverse-square law, superposition at a point, the dipole far field, the ring’s on-axis maximum, a finite rod against an infinite line, E = −dV/dx from a voltmeter, and how numerical integration converges on the exact result. Each one sets up the field, places the instrument for you at each point and fills a table when you press Record reading. The graph shows your readings, the theory and the fit; the result compares the measured value with theory and breaks the uncertainty down into its sources. Readings carry realistic error (the probe placed to the 1 mm ruler and scattered by 0.5 mm, 0.5 % meter noise and a 3-figure display); tick Ideal instruments for exact values. CSV downloads the table.

5 Explore, Practice & Quiz

Explore has 14 cards in four groups: Charges & Coulomb, Electric fields, Potential and Common mistakes, with worked examples computed by the same engine. Practice has ten kinds of problem: superposition on a line, where the field is zero, the Coulomb force, dipole torque, the dipole far field, the ring on its axis, the rod on its bisector, the work to assemble charges, a potential difference and the speed of a released charge. Each has three hints and a worked solution. Quiz asks eight questions drawn from a pool of 20, with the options shuffled.

6 Key Concepts & Units

Coulomb’s law F = kq₁q₂/r² with k = 1/(4πε₀) = 8.99 × 10⁹ N·m²/C²; the field E = F/q₀; the potential V = kq/r (zero at infinity), and E = −∇V. A +3.00 nC charge gives 2.70 kN/C at 10 cm. The simulator works in SI units only, with prefixes (nC, µC, kV/m), because electrostatics is taught in SI everywhere. Inside the small bead drawn for a point charge, the charge is treated as a uniform ball so the field stays finite.

7 Tips & Other Features

💡 Explain walks through the arrangement on screen step by step, with every number taken from the field you are looking at. Σ Calculations opens the working at the probe; PNG or a right-click (long-press) saves the picture or copies the readings. Changes are kept in the page link, so you can share a set-up by copying the address.

Electric Field Simulator and Electrostatics Virtual Lab

This electrostatics lab lets you build any arrangement of charges and see its electric field: field lines, field vectors, equipotentials and a colour map of the potential. Every number comes from Coulomb’s law, the exact formulas for rods, rings and disks, and numerical integration, and you can measure the field with a probe and a voltmeter the way you would in a real lab.

Coulomb’s law and superposition

Two point charges push or pull on each other with a force F = kq₁q₂/r², along the line joining them: like charges repel, opposite charges attract, and doubling the distance quarters the force. The electric field is that force per unit test charge, E = kq/r². With several charges, each one’s field is worked out on its own and the fields are added as vectors — the principle of superposition. The Mathematical laboratory under the field shows this sum at the probe, one source per row.

Electric field lines and what they mean

Field lines follow the direction of E. They start on positive charges and end on negative charges (or run off to infinity), the number leaving a charge is proportional to its size, and they never cross, because the field has one direction at each point. Between two like charges the lines bend away from each other and there is a null point where the field is zero; between unlike charges they join the two.

Electric potential and equipotentials

The potential V = kq/r is the work per unit charge to bring a test charge from infinity. It is a scalar, so potentials simply add. An equipotential is a line of constant V; the field always crosses it at right angles and points toward lower potential, and where equipotentials crowd together the field is strong. In one dimension E = −dV/dx, which the Lab checks with a voltmeter.

The electric dipole

Two equal and opposite charges a distance d apart form a dipole with moment p = qd, pointing from − to +. Far away the two charges almost cancel and the field falls off as 1/r³: 2kp/r³ on the axis and kp/r³ on the bisector. In a uniform field a dipole feels no net force but a torque τ = p × E that turns it to line up with the field, with energy U = −p·E.

Fields of continuous charge distributions

A charged rod, ring or disk is a sum of tiny charges, and its field is an integral. Symmetry makes many of them simple: on the axis of a ring only the axial part survives, E = kQz/(z² + R²)3/2; an infinite line gives E = 2kλ/r; a spherical shell gives zero field inside and the field of a point charge outside. The table gives the field and potential of 1.00 nC spread over common shapes, computed by this simulator:

Charge distributionWhere|E|V
Point charge, 1.00 nCr = 10.0 cm899 N/C89.9 V
Dipole ±1.00 nC, d = 2.00 cm, on its axisr = 10.0 cm367 N/C18.2 V
Ring, 1.00 nC, R = 10.0 cm, on its axisz = 10.0 cm318 N/C63.6 V
Disk, 1.00 nC, R = 10.0 cm, on its axisz = 10.0 cm526 N/C74.5 V
Rod, 1.00 nC, L = 20.0 cm, on its bisectorr = 10.0 cm636 N/C79.2 V
Spherical shell, 1.00 nC, R = 10.0 cmr = 5.00 cm (inside)0 N/C89.9 V
Solid sphere, 1.00 nC, R = 10.0 cmr = 5.00 cm (inside)449 N/C124 V
Infinite line, 1.00 nC/m (V = 0 at 1.00 m)r = 10.0 cm180 N/C41.4 V

How to use the electrostatics lab

Choose a set-up, then switch to Lab mode for a guided experiment: the inverse-square law, superposition, the dipole far field, the ring’s maximum, a finite rod against an infinite line, E = −dV/dx, or numerical integration. Readings carry realistic uncertainty from probe placement, meter noise and display resolution, and the result compares your fitted value with theory, with the uncertainty broken down. The same tool is used in introductory university physics, AP Physics C: Electricity and Magnetism and A-level courses.

Frequently Asked Questions

What is Coulomb’s law?

Coulomb's law gives the force between two point charges: F = kq1q2/r², with k = 1/(4πε0) = 8.99 × 10^9 N·m²/C². Like charges repel and opposite charges attract, and the force falls off as the square of the distance: twice as far apart, a quarter of the force.

What is an electric field?

The electric field at a point is the force a small positive test charge would feel there, divided by its charge: E = F/q0. It points away from positive charges and toward negative ones, and its unit is N/C, which is the same as V/m. The field of several charges is the vector sum of their separate fields.

Why do electric field lines never cross?

A field line follows the direction of the electric field, and at any point the field has only one direction. If two lines crossed, the field at the crossing would point two ways at once, which is impossible. Lines start on positive charges and end on negative charges or at infinity.

What is the difference between electric field and electric potential?

The field E is a vector: the force per unit charge. The potential V is a scalar: the work per unit charge to bring a test charge from the reference point. The field points the way the potential falls fastest, E = -dV/dx in one dimension, so equipotential lines always cross field lines at right angles.

How does the field of an electric dipole fall off with distance?

Far from a dipole its field falls off as 1/r³, faster than a single charge, because the two opposite charges almost cancel. On the axis the far field is 2kp/r³ and on the bisector kp/r³, where p = qd is the dipole moment. The approximation is within 1 % on the axis once r is about 7 times the separation.

What is the electric field on the axis of a charged ring?

On the axis of a ring of radius R carrying charge Q, E = kQz/(z² + R²)^(3/2), pointing along the axis. The sideways parts from opposite sides of the ring cancel. The field is zero at the centre, rises to a maximum at z = R/√2 and far away falls off like a point charge, kQ/z².

Explore Related Simulators

Updated