Recovery of waste heat in sanitary waster water by heat pump system could decrease the discharge of urban waste heat,protect environmental and save energy.And the influencing factor of the heat which can recover from waste water,the quantity of heat production of heat pump system,the additional quantity of heat and the total heat which hot water tank needs are shown by the energy analysis of the heat pump system.