The Biot-Savart law describes the magnetic field of a steady line current:
B(r)=4πμ0∫γr2I×r^ dl′=4πμ0I∫γr2dI×r^ dl′
where integration is done over the current path γ, in the direction of the flow. dI is an element of length of the wire and r is the distance between the source element and the point r. μ0 is the Vacuum permeability. This is the magnetic analog of Coulomb's law, though since there are no "point currents", this law only has an integral form.
For a surface current density K it is
B(r)=4πμ0∫r2K(r′)×r^ da′
and for a volume current density J it is
B(r)=4πμ0∫r2J(r′)×r^ dτ′
As with the electric field, the superposition principle applies.