We can calculate the heat required to melt a mass of ice, that is, to change it from the solid phase to the liquid phase, at a constant temperature of 0 °C, using the following expression.
Q = ΔH°f × m
where,
Q is the heat absorbed
ΔH°f is the standard enthalpy of fusion (ΔH°f for water: 334 J/g)