Gauss’ law for magnetism states that the total magnetic flux through a closed surface is always zero.

Differential form

where
magnetic field (or magnetic flux density), measured in tesla
position vector in three-dimensional space, typically expressed as and measured in meters
time, measured in seconds
divergence operator, which measures the net flux of a field out of an infinitesimal volume, and which when applied to is:


Integral form

where
closed surface in three-dimensional space
surface integral which sums the contribution of the field over the entire surface
differential surface element that represents an infinitesimally small patch of the surface