How to calculate
Multiply both currents, wire length, and vacuum permeability, then divide by twice π times separation.
Worked example
Use Current in first wire (A) 5 · Current in second wire (A) 5 · Center separation (m) 0.02 · Length of parallel section (m) 2. The result is ≈ 0.0005 N.
Input and result notes
Currents in the same direction attract and opposite currents repel. Assumes long parallel conductors.
OpenStax magnetic force between conductors