Cost an arm and a leg is an idiom that means something is extraordinarily expensive. The implication is that it costs more than money can buy. Other idioms with the verb cost that indicate an excessive price include:
Cost a bomb (British English)
Cost a pretty penny
Cost the earth
Cost a king’s ransom
Cost a packet (British English)