The z component of the electron magnetic moment is ( μ μ s ) z = − − g s μ μ B m s , where m s is the spin quantum number. Note that μ is a negative constant multiplied by the spin, so the magnetic moment is antiparallel to the spin angular momentum.