The equation of gauss law is Where is the flux, is the charge, is the permittivity.
Total electric flux out of a closed surface is equal to the charge enclosed divided by the material's permittivity.
With the surface area oriented perpendicular to the field, the electric flux through a surface is equal to the electric field raised by the surface area.
Gauss Law is a universal principle that applies to any closed surface.