# Magnetic Field due to a current carrying wire

1. Nov 23, 2013

### irivce

1. The problem statement, all variables and given/known data
A 2.0 cm length of wire centered on the origin caries a 20 A current directed in the positive y direction. Determine the magnetic field at the point x = 5.0 m on the x-axis.

2. Relevant equations
B = uI/2piR

3. The attempt at a solution
Using the equation above I just plugged in 5m for R and 20A for I and I got 8e-7 T. I was looked up current in a straight wire and found a calculator in hyperphysics that gave me 8e-7 as well, but the answer that was given to me is 1.6nT in the negative z direction.

2. Nov 23, 2013

### TSny

The formula B = $\mu_0$I/(2$\pi$R) is only for a straight wire that is much longer than the distance from the wire to the field point. You have the opposite case where the wire is much shorter than the distance from the wire to the field point.