The invention relates to a method for managing the longitudinal speed of a first vehicle (10), comprising: a step (E1) of detecting vehicles in the traffic around the first vehicle (10), said step (E1) comprising detecting at least one vehicle (401, 402, 411, 421) in front of the first vehicle and at least one vehicle (403, 412, 422) behind the first vehicle; a step (E2) of calculating reference speeds, said step (E2) comprising calculating at least one first reference speed depending on at least one vehicle in front of the first vehicle and calculating at least one second reference speed depending on at least one vehicle behind the first vehicle; a step (E3) of calculating a maximum speed setting (CMAX) depending on the first reference speed; a step (E4) of calculating a minimum speed setting (CMIN) depending on the second reference speed; The method is characterized by comprising a step (E5) of calculating a speed setting value of the first vehicle, wherein the speed setting value of the first vehicle (CVL) is equal to or less than a maximum speed setting value (CMAX) and equal to or greater than a minimum speed setting value (CMIN).