To find the direction of the magnetic field due to a current-carrying conductor we use Right-Hand Thumb Rule. The rule states that if the thumb indicates the direction of current then the direction of curling fingers gives the direction of the magnetic field and vice-versa.