Let $L$ be a number field with signature $(r, s)$. Then there is an isomorphism of abelian groups
\begin{align*}
\mathcal{O}_L^\times \cong \mu_L \times \mathbb{Z}^{r + s - 1}.
\end{align*}
The subgroup $\mu_L$ is a finite cyclic group (the torsion part), and the free part has rank $r + s - 1$.