Skip to content
Physics Medium #gauss-law

Gauss's Law

Electric flux through a closed surface = enclosed charge / epsilon_0.

A free, animated gauss's law you can read here or embed on any website, from Scrollchart.

Gauss's Law

Gauss's LawFlux = closed integral of E dot dA = Q_enc / epsilon_0; symmetry makes E solvable directlyPoint charge (sphere)Line charge (cylinder)Plane charge (pillbox)+QGaussian surfaceE = Q / (4*pi*e0*r²)Flux = 4*pi*r² * E = Q/e0Coulomb recovered from Gauss+lambda (C/m)E = lambda / (2*pi*e0*r)Flux through curved side onlyend caps contribute zerosigma (C/m²)Pillbox surfaceE = sigma / (2 * e0)Two end caps, zero side fluxE independent of distanceGauss (1835): closed-surface flux counts only enclosed charge; surface shape is irrelevant as long as charge is fully enclosed

Closed surface around a charge with E-field lines piercing it. Flux integral equals Q_enc/epsilon_0. Sphere, cylinder, plane symmetry examples.

Good for

  • University electrostatics courses deriving Coulomb's law and capacitor fields from first principles
  • Semiconductor physics explainers on depletion-region electric fields in p-n junctions
  • Electrostatics engineering articles covering shielding and Faraday cage design

Source & accuracy

This gauss's law is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

Electric flux and enclosed charge relationship

Gauss's law relates the electric field on a closed surface to the charge enclosed within that surface. The total electric flux (field strength summed over the entire surface) is proportional to the enclosed charge. Imagine a sphere surrounding a positive point charge: electric field lines radiate outward through the sphere's surface. The total flux depends only on the charge inside, not on the sphere's radius or shape. Double the enclosed charge and the total flux doubles. This relationship holds for any closed surface, making it a powerful tool for finding electric fields in symmetric configurations: a uniform infinite sheet has the same field everywhere outside it, and a uniformly charged sphere produces the same field as a point charge when observed from outside.

Solving for fields in high-symmetry configurations

Gauss's law enables elegant solutions where other methods require integration. For a uniformly charged sphere, the field outside depends only on the total charge and distance, following an inverse-square law identical to a point charge. Inside the sphere, the field increases linearly with radius up to the center. A uniformly charged infinite wire produces a field that decreases inversely with distance, perpendicular to the wire. These results, obtainable through Gauss's law without calculus, demonstrate why symmetry is so valuable in physics. When charge distributions lack symmetry, Gauss's law still holds but requires integration to extract the field. The law's elegance has made it central to electrostatics since its discovery, revealing deep truths about how charges interact with their surroundings.

Embed this diagram

Add this animated gauss's law to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated gauss's law for any website.
Who uses it
Physics educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="gauss-law" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Gauss's Law" for my website?
Scrollchart provides "Gauss's Law" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a gauss's law in WordPress or a static site?
Paste the HTML snippet from the Scrollchart diagram page into your WordPress post (in HTML/code view), your Webflow embed block, or directly into a static HTML file. No plugin is needed. The diagram loads from scrollchart.com and paints in as the reader scrolls.