We compute the class groups of full rank upper cluster algebras in terms of the exchange polynomials. This characterizes the UFDs among these algebras. Our results simultaneously generalize theorems of Garcia Elsener, Lampe, and Smertnig from 2019 and of Cao, Keller, and Qin from 2023. Furthermore, we show that every (upper) cluster algebra is a finite factorization domain.