In mathematics and physics, the right-hand rule is a convention and a mnemonic, utilized to define the orientation of axes in three-dimensional space and to determine the direction of the cross product of two vectors, as well as to establish the direction of the force on a current-carrying conductor in a magnetic field.
The various right- and left-hand rules arise from the fact that the three axes of three-dimensional space have two possible orientations. This can be seen by holding your hands together with palms up and fingers curled. If the curl of the fingers represents a movement from the first or x-axis to the second or y-axis, then the third or z-axis can point along either right thumb or left thumb.