Gauss's law

The flux out through any closed surface equals the charge inside divided by $\varepsilon_0$, whatever the surface's shape, because every field line that leaves a charge crosses the surface once.

From Physics 2.