Vectors in Magnetic Flux

Flux, defined generally, is the amount of “something” that passes through a surface. In electromagnetism, magnetic flux is the number of magnetic field lines passing through an area. While flux in this context is a scalar quantity, measuring it requires the presence of a magnetic field (which in itself is a vector field, i.e. a collection of arrows with a given magnitude and direction). Getting the magnetic flux through a surface is done by calculating the surface integral of the normal component of the magnetic field passing through that same surface.