The magnetic force on a free moving charge is perpendicular to both the velocity of the charge and the magnetic field with direction given by the right hand rule . The force is given by the charge times the vector product of velocity and magnetic field.