Magnetic field and force. A steady electric current produces a magnetic field. In vacuum the Biot-Savart law gives
The Lorentz force on the charge carriers transfers force to the material carrying them. The resulting force on a current element of another circuit is , or, for a continuous current distribution, the magnetic force per unit volume is .
For two long parallel straight wires a distance apart, Ampère's law gives . Therefore
The force is attractive for parallel currents and repulsive for opposite currents, by the cross product rule. Its units are . This approximation neglects wire thickness and end effects; a complete circuit includes its return current. Element-by-element forces need not form an isolated Newton's-third-law pair, but complete stationary circuits have balanced mutual forces when the entire system is included.
Energy description. For two linear coupled circuits the magnetic energy is
Here is a mechanical coordinate and the signed mutual inductance. At prescribed currents, the generalized force is if the self-inductances do not vary. This positive derivative is obtained from magnetic coenergy, or by including the electrical sources' work; differentiating with a minus sign at fixed currents would omit that source work. At prescribed flux linkages the force instead equals the negative derivative of stored magnetic energy with those linkages fixed. The geometry thus determines both inductance and mechanical force.