Saved

Press the star next to a tool's name to save it.

All my tools

Gauss's Law Calculator

Use this Gauss's law calculator to find the electric flux through a closed surface from the charge inside it, and the field of a point charge, a long line charge or a flat sheet.

Restored your last values ·

Choose flux, or the field of a point charge, a line charge or a flat sheet. Enter the charge, with its sign, and the distance where it is needed. You get the flux in newton square metres per coulomb or the field in newtons per coulomb.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want and fill in the boxes, then press Calculate.

See full result

A Gauss's law calculator finds the electric flux through a closed surface from the charge inside it, and the electric field of a point charge, a long line of charge or a large flat sheet. Enter the charge and, where needed, the distance, and it shows the working.

How to use the Gauss's law calculator

  1. Choose what you want and the unit of the charge.
  2. Enter the charge with its sign, and the distance where needed.
  3. Press Calculate.

What the law says

Gauss's law relates the electric flux through a closed surface to the electric charge enclosed by it [1]. In its simplest form the flux equals the enclosed charge divided by the permittivity of free space, Φ = Q ÷ ε₀ [1]. The charges outside the surface do not change the total flux, and the shape or the size of the surface does not matter, as long as it is closed and encloses the same charge.

The constant ε₀

The permittivity of free space is about 8.8541878128 × 10⁻¹² farads per metre. The page that we read does not give its value, so we take it from our own knowledge of the SI constants. One microcoulomb inside any closed surface therefore gives a flux of 1.1294 × 10⁵ newton square metres per coulomb. Double the charge and the flux doubles. Reverse its sign and the flux changes sign, which means the field lines point inwards.

Field of a point charge

For a point charge, draw a sphere of radius r around it. By symmetry the field is the same size everywhere on the sphere and points straight out, so the flux is E times 4πr². Setting that equal to Q ÷ ε₀ gives E = Q ÷ (4π ε₀ r²). This is Coulomb's law written as a field. One microcoulomb at 1 metre gives 8,987.6 newtons per coulomb. The derivation is our own working.

Field of a line of charge

For a long straight line with a charge λ per metre, use a cylinder of radius r and length L around it. The flux through the curved side is E × 2πrL, and the enclosed charge is λL, so E = λ ÷ (2π ε₀ r). The field falls as 1 over r, and not 1 over r squared. For 1 microcoulomb per metre at 0.5 metres, E is about 35,950 newtons per coulomb. The ends of the cylinder carry no flux, by symmetry.

Field of a flat sheet

For a large flat sheet with a charge σ per square metre, use a small pillbox that crosses the sheet. The field leaves through both faces, so 2EA = σA ÷ ε₀, and E = σ ÷ (2 ε₀). The field does not depend on the distance from the sheet, which is a good approximation near the middle of a big plate. For 1 microcoulomb per square metre, E is about 56,470 newtons per coulomb.

Sign and direction

A positive charge gives a field that points away from it, and a negative charge a field that points towards it. The calculator states which. The size of the field is always shown as a positive number. If there are several charges, the field is the vector sum of the fields of each, which this calculator does not do. It handles one source at a time.

Units

The charge can be entered in coulombs or in smaller units down to picocoulombs, and the calculator converts it to coulombs inside. For a line, enter the charge per metre in the chosen unit, and for a sheet the charge per square metre. The field is in newtons per coulomb, which equals volts per metre. Results are shown in scientific notation, since fields vary over many powers of ten.

Limits

The line and sheet formulas need a very long line and a very large sheet, so the distance must be small compared with their size. Near the ends or the edges the field is different. The formulas also assume a vacuum. In a material such as water or glass the field is smaller by the dielectric constant. For a conductor, the charge sits on its surface and the field inside is zero.

Using the calculator

Use it to check homework, to find out how strong a field is near a charged object or to see how the field changes with the distance for each shape. Compare the point charge and line charge results at the same distance to see how differently the field falls off. You can also compare the result with Coulomb's law, which the calculator for that law on this site solves directly.

More worked examples

A charge of 2 microcoulombs gives a field of 71,900 newtons per coulomb at a distance of 0.5 metres. Halve the distance and the field is four times larger, since it falls with the square of the distance. For a line charge, halving the distance only doubles the field. For a sheet, the field does not change at all. Comparing the three at the same charge shows how the shape of the source controls the way the field spreads out, which is the main lesson of the law. These examples are our own calculations.

Conductors

In a conductor in equilibrium, the charges sit on the surface and the field inside is zero. Take a Gaussian surface just inside the metal: the field on it is zero, so the enclosed charge must be zero too. The same reasoning explains why a hollow metal box shields what is inside it from outside fields.

Field direction and symmetry

The method works only where the symmetry makes the field the same size over the surface and perpendicular to it. For a general charge arrangement, the law is still true, but it does not give the field by itself, and you need other methods. The calculator is limited to the three symmetric cases for that reason.

Common mistakes

  • Using the distance from the wrong place. Measure from the centre of the sphere.
  • Mixing units. Check the charge unit.
  • Forgetting the symmetry. The formulas are for a sphere, a line and a sheet.
  • Counting outside charges. Only the enclosed charge counts.

What next

Use this often? Add Gauss's Law to your Home screen.

Frequently asked questions

What is a Gauss's law calculator?

A tool that finds the electric flux or field from a charge using Gauss's law.

What is Gauss's law?

The flux through a closed surface equals the enclosed charge divided by ε₀.

What is the field of a long line charge?

E = λ ÷ (2π ε₀ r), where λ is the charge per metre.

Does the shape of the surface matter?

No. Only the enclosed charge matters, not the shape or size of the closed surface.

What is the field of a large flat sheet?

E = σ ÷ (2 ε₀), independent of the distance.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools