The Biot-Savart law

Each short piece of a current makes a field mu nought I dl cross r-hat over 4 pi r squared, and adding the pieces gives the field at the centre of a loop, mu nought I over 2R, and round a long straight wire, mu nought I over 2 pi r.

From AP Physics C: Electricity and Magnetism.