A device for adsorbing and desorbing anesthetic shall be improved in respect of the anesthetic supply. A sampling device (16) for removing a gas volume of the breathing gas and an anesthetic dispenser (18) are connected to the breathing gas line (8) between the adsorption filter (9) and the patient (10) in such a way that the gas volume removed and the gas volume supplied are compensated.