The magnetic force on a current-carrying wire through a magnetic field is given by F = IL x B. When a current is passed through a magnetic field, the magnetic field exerts a force on the wire in a direction perpendicular to both the current and the magnetic field.