Method for control of a combustion engine during a road section, in a vehicle, comprising one or several engines (101, 121) and one or several brake systems, wherein a minimum permitted speed v min and a maximum permitted speed v max, between which an actual speed v act for said vehicle should be kept, are defined for said road section; wherein the method comprises - simulation of at least one future speed profile V sim_coast for an actual speed v act of said vehicle during said road section, wherein said simulation is carried out when said road section is ahead of said vehicle, and wherein said simulation of each one of said at least one future speed profile v sim_coast is based on information about said road section, and assumes that coasting will be applied at least partly during said road section; - evaluation of an applicability for coasting, wherein said coasting is deemed applicable for a speed profile v sim_coast, if its value is greater than said minimum permitted speed v min at least during an initial part of said road section; characterised by the steps: - evaluation of whether said combustion engine may be shut down during said coasting during at least a part of said road section, wherein said evaluation of the shutdown of said combustion engine is based at least on whether one or several system conditions for engine shutdown are met, on one or several properties for said one or several brake systems, and on a shutdown period T ICE_off, when said combustion engine could be shut down, wherein said evaluation of said shutdown of said combustion engine comprises a - comparison of said future speed profile v sim_coast with said maximum permitted speed v max; and - determination of whether at least one of said one or several brake systems will need to be activated, in order to prevent that said maximum permitted speed v max is exceeded, and wherein, if said one or several brake systems must be activated, said evaluation of said shutdown of said combustion engine comprises a determination of whether said combustion engine must be running for the required braking action to be achieved by said one or several brake systems, in order to prevent that said maximum permitted speed v max is exceeded; - control of said combustion engine based on said evaluation of the shutdown of said engine. - simulation of at least one future speed profile V sim_coast for an actual speed v act of said vehicle during said road section, wherein said simulation is carried out when said road section is ahead of said vehicle, and wherein said simulation of each one of said at least one future speed profile v sim_coast is based on information about said road section, and assumes that coasting will be applied at least partly during said road section; - evaluation of an applicability for coasting, wherein said coasting is deemed applicable for a speed profile v sim_coast, if its value is greater than said minimum permitted speed v min at least during an initial part of said road section; - evaluation of whether said combustion engine may be shut down during said coasting during at least a part of said road section, wherein said evaluation of the shutdown of said combustion engine is based at least on whether one or several system conditions for engine shutdown are met, on one or several properties for said one or several brake systems, and on a shutdown period T ICE_off, when said combustion engine could be shut down, wherein said evaluation of said shutdown of said combustion engine comprises a - comparison of said future speed profile v sim_coast with said maximum permitted speed v max; and - determination of whether at least one of said one or several brake systems will need to be activated, in order to prevent that said maximum permitted speed v max is exceeded, and wherein, if said one or several brake systems must be activated, said evaluation of said shutdown of said combustion engine comprises a determination of whether said combustion engine must be running for the required braking action to be achieved by said one or several brake systems, in order to prevent that said maximum permitted speed v max is exceeded; - comparison of said future speed profile v sim_coast with said maximum permitted speed v max; and - determination of whether at least one of said one or several brake systems will need to be activated, in order to prevent that said maximum permitted speed v max is exceeded, and wherein, if said one or several brake systems must be activated, said evaluation of said shutdown of said combustion engine comprises a determination of whether said combustion engine must be running for the required braking action to be achieved by said one or several brake systems, in order to prevent that said maximum permitted speed v max is exceeded; - control of said combustion engine based on said evaluation of the shutdown of said engine.