Magnetic Fields due to current in a straight wire 

  The simplest current we can come up with is a current flowing in a straight line, such as along a long straight wire. The magnetic field from a such current-carrying wire actually wraps around the wire in circular loops, decreasing in magnitude with increasing distance from the wire. To find the direction of the field, you can use your right hand. If you curl your fingers, and point your thumb in the direction of the current, your fingers will point in the direction of the field.