For each odd prime p, let ζp denote a primitive p-th root of unity. In this paper, we study the determinants of some matrices with cyclotomic unit entries. For instance, we show that when p≡3(mod4) and p>3 the determinant of the matrix \(\frac{1-\zeta_p^{j^2k^2}}{1-\zeta_p^{j^2}}\)_{1\le j,k\le (p-1)/2} can be written as (−1)2h(−p)+1(ap+bpip) with ap,bp∈21Z and {νp(ap)=νp(bp)=8p−3νp(ap)=νp(bp)+1=8p+1\mboxifp≡3(mod8),\mboxifp≡7(mod8), where νp(x) denotes the p-adic order of a p-adic integer x, and h(−p) denotes the class number of the field \Q(−p). Meanwhile, let (p⋅) denote the Legendre symbol. We have 22p+1apbp=(−1)4p+1p4p−3det[S(p)], and 22p−1(ap2−pbp2)=2p−1(−p)4p−3det[S(p)], where det[S(p)] is the determinant of the 2p−1 by 2p−1 matrix S(p) with entries S(p)j,k=(pj2+k2) for any 1≤j,k≤(p−1)/2.