Heat pumps work by utilising a refrigerant that absorbs and releases heat as it circulates through the system. In heating mode, the heat pump extracts heat from the outside source and transfers it indoors. In cooling mode, the process is reversed, and heat is extracted from the indoor space and released outside.