🔬
🔬 Science & engineering

Gauss’s Law Calculator (electric field of a charged sphere, shell, line or sheet)

Results update as you type.

Your numbers

Understanding the Gauss's law calculator — concept and principle

This calculator applies Gauss's law to find the electric field of symmetric charge distributions: a point charge, a uniformly charged solid sphere, a thin shell or conductor, an infinite line and an infinite sheet. It also reports the enclosed charge, the flux and the Gaussian surface used. It is a standard aid for electromagnetism homework.

Gauss surface around a sphereField outside a charged sphere+10 nCR = 0.1 m · r = 0.2 mQ enclosed 10 nC2,247 N/Cflux 1,129
The dashed Gauss sphere of radius 0.2 m holds all 10 nC, so the field there is Q ÷ (4πε₀r²), pointing outward.

How it is calculated

Gauss's law: Φ = Q_enc ÷ ε₀

The principle

Gauss's law says the total electric flux out of any closed surface depends only on the charge inside it. For a symmetric charge you can choose a surface on which the field has the same size everywhere and points straight out. Then the flux is simply E times the area, and solving for E is easy. A sphere around a ball of charge has area 4πr², which gives the inverse-square law; a cylinder around a line gives 1/r; a box through a sheet gives a field independent of distance.

Worked example

Default inputs: solid sphere, Q = 10 nC, R = 0.1 m, r = 0.2 m.

  1. r > R, so the point is outside and all the charge is enclosed: 10 nC.
  2. E = 10 × 10⁻⁹ ÷ (4π × 8.854 × 10⁻¹² × 0.2²) = 2,247 N/C.
  3. The charge is positive, so the field points outward, away from the charge.
  4. Flux = 10⁻⁸ ÷ 8.854 × 10⁻¹² = 1,129 N·m²/C through a sphere of radius r.
How Electric field magnitude E (N/C) changes with Distance from the centre, axis or sheet r (m)How Electric field magnitude E changes w…02,0004,0006,0008,00010,0000.050.10.150.20.250.30.4Example: 2,247Distance from the centre, axis or sheet r (m)
Each point is the calculator re-run with only “Distance from the centre, axis or sheet r (m)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Distance from the centre, axis or sheet r (m)Electric field magnitude E (N/C)
0.054,494
0.18,988
0.153,994
0.22,247
0.251,438
0.3998.6
0.4561.7

How to read the result

Outside a sphere the field is the same as if all the charge sat at the centre. Inside a solid sphere it grows linearly from zero at the centre; inside a shell it is zero. N/C is the same as V/m. The flux is independent of r, which is a quick check that you have the right enclosed charge.

Common mistakes

Keep in mind: The formulas assume ideal symmetric distributions in vacuum. Real objects with edges, nearby conductors or dielectrics need a full calculation.

Frequently asked questions

Why is the field inside a conducting shell zero?

No charge is enclosed by a Gaussian surface inside it, and by symmetry the field must then vanish.

Why does a sheet's field not depend on distance?

Field lines from an infinite sheet stay parallel, so they do not spread out.

Is N/C the same as V/m?

Yes, the two units are identical.

Sources: G. Rybka, Physics 122 lecture notes, University of Washington (Gauss's law) · CODATA 2022 recommended values (ε₀), NIST

Checked 9 Nov 2026. Gauss’s law ∮E·dA = Qenc/ε₀ (G. Rybka, Physics 122 lecture 5 notes, University of Washington) and its standard applications to spherical, cylindrical and planar symmetry; ε₀ from CODATA 2022.

🔬 All science & engineering tools →🌍 Calculators by country →