In response to repulsive cues, axonal growth cones can quickly retract. This requires the prompt activity of contractile actomyosin, which is formed by the non-muscle myosin II (NMII) bound to actin filaments. NMII is a molecular motor that provides the necessary mechanical force at the expense of ATP. Here, we report that this process is energetically coupled to glycolysis and is independent of cellular ATP levels. Induction of axonal retraction requires simultaneous generation of ATP by glycolysis, as shown by chemical inhibition and genetic knock-down of GAPDH. Co-immunoprecipitation and proximal-ligation assay showed that actomyosin associates with ATP-generating glycolytic enzymes and that this association is strongly enhanced during retraction. Using microfluidics, we confirmed that the energetic coupling between glycolysis and actomyosin necessary for axonal retraction is localized to the growth cone and near axonal shaft. These results indicate a tight coupling between on-demand energy production by glycolysis and energy consumption by actomyosin contraction suggesting a function of glycolysis in axonal guidance.