3D lab · Electrostatics

Gauss's Law and Electric Flux in 3D

Move charges in and out of a 3D Gaussian sphere or cube and watch the total flux follow Φ = q_enclosed/ε₀.

Last updated: 26 October 2026

Direct answer

Move charges in and out of a 3D Gaussian sphere or cube and watch the total flux follow Φ = q_enclosed/ε₀.

Move q₁ across the surface: the flux jumps only when the charge crosses it. q₂ stays outside and changes the field on the surface but not the total flux.

Simulation

Try it

Gauss's Law and Electric Flux in 3D

Electrostatics

Drag to rotate, two fingers or right-drag to pan, scroll or pinch to zoom. The toolbar has views, cutaway, measure and “show the maths”.

What's happening? Move q₁ across the surface: the flux jumps only when the charge crosses it. q₂ stays outside and changes the field on the surface but not the total flux.
Learn more

Study this lab with

Study

Watch and try

FAQs

Frequently asked questions

Does a charge outside a closed surface affect the flux?

No. Every field line from it that enters the surface also leaves, so its net flux is zero.

What is the flux through one face of a cube with q at its centre?

q/(6ε₀), by symmetry.

<link rel="stylesheet" href="/css/concepts-lab.min.css?v=20261027b">
WA✎
Sitemap