The force on an electron moving in a magnetic field is given by the Lorentz force, which is:
$$F = qvBsinθ$$
where:
* F is the force on the electron (in newtons)
* q is the charge of the electron (in coulombs)
* v is the speed of the electron (in meters per second)
* B is the strength of the magnetic field (in teslas)
* θ is the angle between the electron's velocity and the magnetic field
The force on the electron will be the largest when sinθ = 1, which means that the electron's velocity is perpendicular to the magnetic field.