The flux through an element of area perpendicular to the direction of magnetic field is given by the product of the magnetic field and the area element. More generally, magnetic flux Φ is defined by a scalar product of the magnetic field and the area element vector. Quantitatively, the magnetic flux through a surface S is defined as the integral of the magnetic field over the area of the surface