The direction of the magnetic field produced by a straight current-carrying wire can be found using Ampère's Circuital Law or the Right-Hand Thumb Rule:
Right-Hand Thumb Rule:
According to this rule, if you hold the wire with your right hand such that the thumb points in the direction of the current, then the curl of the fingers will show the direction of the magnetic field around the conductor. This rule helps in determining the direction of the magnetic field at any point around the wire.