The dynamics of spin waves in ultracold gases is investigated with allowance for exchange and spin-orbit interaction. The exact basis of atomic states is used taking into account all rotational quantum numbers of the atom. The dispersion relation for spin waves is obtained for fermions and bosons in the hydro-dynamic approximation.