Ampere's law states that the integral of the magnetic field density B around a closed path is equal to the current I enclosed by the path multiplied by the permeability μ of the medium. It describes the relationship between the magnetic field created by an electric current and the current itself. The law can be used to calculate the magnetic field produced by a long straight wire carrying a steady current.