When a wire is carrying current, the magnetic field around the conductor can be found by
The magnetic field around a straight wire carrying current is obtained by applying the right-hand thumb rule. The right-hand thumb rule states that if we clasp a current carrying conductor in such a way that the thumb points the direction of the current, the direction of curl of fingers will give the direction of magnetic field.