We present an interpolation method for the specific heat cv(T), when there is a phase transition with a logarithmic singularity in cv at a critical temperature T=Tc. The method uses the fact that cv is constrained both by its high temperature series expansion, and just above Tc by the type of singularity. We test our method on the ferro and antiferromagnetic Ising model on the two-dimensional square, triangular, honeycomb, and kagome lattices, where we find an excellent agreement with the exact solutions. We then explore the XXZ Heisenberg model, for which no exact results are available.