# magnetic field of a long wire

As we know, the magnetic field at a distance $r$ from a long wire carrying a current $I$ is given by $B=\frac{ \mu_0 I}{2 \pi r}$. My question is why it is assumed that the wire is long (infinite)?

• – Rob Jeffries Dec 15 '17 at 15:07