The aim of this study is to give insights into the trajectory optimization with respect to energy consumption and recuperation for stacker cranes in a high-bay warehouse. Based on an analytical necessary optimality condition, a targeted numerical implementation is set up to perform systematic computations of optimal trajectories which are further categorized. Particularly, the differences between energy consumption and energy recuperation as well as for up and down movements are pointed out.