A method for regulating during driving the air resistance to a leading and at least one following vehicle, whereby the distance of the leading vehicle from the following vehicle is detected and the magnitude of a wake formed behind the leading vehicle is regulated according to the detected distance in order to optimize the overall air resistance to the leading and the following vehicle. Also a device and a computer program and a computer program product for implementing the method.