It is well known that any cyclic solution of a spin 1/2 neutral particle moving in an arbitrary magnetic field has a nonadiabatic geometric phase proportional to the solid angle subtended by the trace of the spin. For neutral particles with higher spin, this is true for cyclic solutions with special initial conditions. For more general cyclic solutions, however, this does not hold. As an example, we consider the most general solutions of such particles moving in a rotating magnetic field. If the parameters of the system are appropriately chosen, all solutions are cyclic. The nonadiabatic geometric phase and the solid angle are both calculated explicitly. It turns out that the nonadiabatic geometric phase contains an extra term in addition to the one proportional to the solid angle. The extra term vanishes automatically for spin 1/2. For higher spin, however, it depends on the initial condition. We also consider the valence electron of an alkaline atom. For cyclic solutions with special initial conditions in an arbitrary strong magnetic field, we prove that the nonadiabatic geometric phase is a linear combination of the two solid angles subtended by the traces of the orbit and spin angular momenta. For more general cyclic solutions in a strong rotating magnetic field, the nonadiabatic geometric phase also contains extra terms in addition to the linear combination.