In magnetostatics, the force of attraction or repulsion between two current-carrying wires (see first figure below) is often called Ampère's force law. The physical origin of this force is that each wire generates a magnetic field, following the Biot–Savart law, and the other wire experiences a magnetic force as a consequence, following the Lorentz force law.
The best-known and simplest example of Ampère's force law, which underlies the definition of the ampere, the SI unit of current, states that the force per unit length between two straight parallel conductors is
where kA is the magnetic force constant from the Biot–Savart law, Fm/L is the total force on either wire per unit length of the shorter (the longer is approximated as infinitely long relative to the shorter), r is the distance between the two wires, and I1, I2 are the direct currents carried by the wires.
This is a good approximation if one wire is sufficiently longer than the other that it can be approximated as infinitely long, and if the distance between the wires is small compared to their lengths (so that the one infinite-wire approximation holds), but large compared to their diameters (so that they may also be approximated as infinitely thin lines). The value of kA depends upon the system of units chosen, and the value of kA decides how large the unit of current will be. In the SI system,
with μ0 the magnetic constant, defined in SI units as
Thus, in vacuum,
The general formulation of the magnetic force for arbitrary geometries is based on iterated line integrals and combines the Biot–Savart law and Lorentz force in one equation as shown below.
where
To determine the force between wires in a material medium, the magnetic constant is replaced by the actual permeability of the medium.