1: \begin{abstract}
2: Locally acyclic cluster algebras are Krull domains.
3: Hence their factorization theory is determined by their (divisor) class group and the set of classes containing height-$1$ prime ideals.
4: Motivated by this, we investigate class groups of cluster algebras.
5: We show that any cluster algebra that is a Krull domain has a finitely generated free abelian class group, and that every class contains infinitely many height-$1$ prime ideals.
6: For a cluster algebra associated to an acyclic seed, we give an explicit description of the class group in terms of the initial exchange matrix.
7: As a corollary, we reprove and extend a classification of factoriality for cluster algebras of Dynkin type.
8: In the acyclic case, we prove the sufficiency of necessary conditions for factoriality given by Geiss--Leclerc--Schr\"oer.
9: \end{abstract}
10: