Suppose two long thin straight conductors (or wires) PQ and RS are placed parallel to each other in vacuum (or air) carrying currents I1 and I2 respectively. It has been observed experimentally that when the currents in the wire are in the same direction, they experience an attractive force (fig. a) and when they carry currents in opposite directions, they experience a repulsive force (fig. b).
Let the conductors PQ and RS carry currents I1 and I2 in same direction and placed at separation r.
Consider a current–element ‘ab’ of length ΔL of wire RS. The magnetic field produced by current-carrying conductor PQ at the location of other wire RS

According to Maxwell’s right hand rule or right hand palm rule number 1, the direction of B1 will be perpendicular to the plane of paper and directed downward. Due to this magnetic field, each element of other wire experiences a force. The direction of current element is perpendicular to the magnetic field; therefore the magnetic force on element ab of length ΔL

∴ Force acting per unit length of conductor

According to Fleming’s left hand rule, the direction of magnetic force will be towards PQ i.e. the force will be attractive.
On the other hand if the currents I1 and I2 in wires are in opposite directions, the force will be repulsive. The magnitude of force in each case remains the same.

Definition of SI unit of Current (ampere): In SI system of fundamental unit of current ‘ampere' is defined assuming the force between the two current carrying wires as standard.
The force between two parallel current carrying conductors of separation r is

Thus 1 ampere is the current which when flowing in each of parallel conductors placed at separation 1 m in vacuum exert a force of 2 × 10–7 on 1 m length of either wire.