Method for drying gas coming from a compressor (2), which is directed through a drier (5) of the type which consists of an air receiver (6) and a drying element (9) in the form of a rotor in which has been provided an adsorption and/or absorption medium (10) which is alternately guided through a drying zone (7) and a regeneration zone (8) of the air receiver (6), whereby during periods of standstill or of idle running of the compressor (2) a gas flow is guided counterflow through the adsorption and/or absorption medium (10) in the drying zone (7), i.e. in a flow direction (P) from the outlet (22) to the inlet (15) of the drying zone (7).