We present a procedure to compute the absolute free energy of solid phases by Monte Carlo simulation. The method is based on the so-called "Einstein-crystal" method of Frenkel and Ladd [J. Chem. Phys. 81, 3188 (1984)]. The new technique is more general and simplifies the calculation for systems with hard core interactions. In addition, the reference Einstein crystal is built up to fulfill translational invariance, which seems to reduce the system size dependence of the results.