Gauss's Law Calculator
Compute electric flux through a flat surface in metric or imperial area units and the matching enclosed charge.
What it does
Electric flux measures how much electric field passes through a surface. For a flat surface in a uniform field it is the field strength times the area projected at right angles to the field. Tilting the surface reduces the flux until, at ninety degrees, nothing passes through.
Gauss's law connects that flux to its source: the total flux out of any closed surface equals the charge enclosed divided by the permittivity of free space. This calculator handles the flat surface form and also reports the charge that would produce the same flux, using the SI constant epsilon naught.
The default case uses a field of 200 N/C across an area of 0.5 m² with the field at 60 degrees to the surface normal. The cosine is 0.500, so the flux is 50 N·m²/C and the equivalent enclosed charge is about 0.443 nC.
Switching to imperial changes only the area entry, from square metres to square feet. The tool converts square feet to square metres before doing the calculation, so the same physical surface gives the same charge and the flux is simply relabelled in N·ft²/C.
The closed surface version of the law is most useful when charge distributions have symmetry, such as a sphere or a long cylinder. For irregular shapes the same identity holds, but finding the field at each point needs more work than this tool performs.
How to use
- Choose metric for square metres or imperial for square feet.
- Enter the electric field strength in newtons per coulomb.
- Enter the surface area in the units shown beside the field.
- Enter the angle between the field direction and the surface normal, from 0 to 90 degrees.
- Press calculate and read the flux first.
- Use the enclosed charge line to connect the flux to a source charge.
Formula
- E
- Electric field strength in newtons per coulomb.
- A
- Surface area in square metres, or square feet converted to square metres.
- θ
- Angle between the field and the normal to the surface, in degrees.
- ε₀
- Permittivity of free space, 8.8541878128 × 10⁻¹² F/m.
One square foot is exactly 0.09290304 square metres. The tool always converts area to square metres before multiplying, then expresses the flux in the unit system you chose. The enclosed charge line uses the closed surface form of Gauss's law and is an equivalent charge, not a claim about the shape of the actual source. Angles above 90 degrees are rejected because a field pointing out of the far side would need a signed treatment.
Worked example
Example: 200 N/C across 0.5 m² at 60°
Metric defaults, with the field tilted relative to the surface normal.
- Find the angle factor: cos(60°) = 0.500.
- Use the area in square metres: 0.5 m².
- Multiply field by area by angle factor: 200 × 0.5 × 0.500 = 50 N·m²/C.
- Multiply flux by epsilon naught: 50 × 8.8541878128e-12 = 4.427e-10 C, or 0.443 nC.
- The tool shows 50 N·m²/C, 0.443 nC, 0.500 and 0.5 m².
Reference table
| Angle | cos | Flux (N·m²/C) |
|---|---|---|
| 0° | 1.000 | 100 |
| 30° | 0.866 | 86.6 |
| 45° | 0.707 | 70.7 |
| 60° | 0.500 | 50 |
| 90° | 0.000 | 0 |
Limits
- Assumes a uniform field and a flat surface for the flux calculation.
- The enclosed charge line applies strictly to a closed surface, not an open patch.
- Uses the vacuum value of permittivity, not the permittivity of a material.
- Angles outside 0 to 90 degrees are rejected rather than given a signed flux.
Common mistakes
- Using the angle to the surface plane instead of to the surface normal.
- Entering square inches where the tool expects square feet.
- Expecting flux to depend on the shape of a closed surface when it does not.
- Using degrees in a calculator set to radians for the cosine.
- Treating the equivalent enclosed charge as if it were measured directly.
Try it yourself
Quick checks. Answers sit tucked under each question.
Metric: 100 N/C across 2 m² at 0°?
Flux 200 N·m²/C, enclosed charge 1.771 nC, angle factor 1.000, area 2 m².
Imperial: 100 N/C across 10.76391 ft² at 0°?
Flux 1076.39 N·ft²/C, enclosed charge 0.885 nC, angle factor 1.000, area 1 m².
Questions
What is electric flux?
It is the field passing through a surface, equal to field times the projected area for a flat surface in a uniform field.
What does Gauss's law say?
The net flux out of a closed surface equals the enclosed charge divided by the permittivity of free space.
Why does the angle use the normal?
The normal is perpendicular to the surface, so the cosine of the angle to it gives the projected area directly.
Can flux be negative?
Signed flux can be, but this tool restricts the angle to 0 to 90 degrees and reports positive flux only.
Do I need square metres?
No. Pick imperial and enter square feet; the tool converts before calculating.
Does material inside the surface matter?
The tool uses vacuum permittivity. A dielectric would change the field for a given free charge.