A trip-based energy management strategy for electric vehicles (EVs) is proposed. It can use deterministic routing information obtained from, nowadays, available navigation systems and determines stochastic descriptions of process uncertainties such as stop events as unpredictable disturbances. A dynamic programming algorithm is used to calculate the optimal control trajectories required to reach the target destination safely and to suggest the driver an optimal driving style to maximize the battery range. The algorithm is implemented on a rapid prototyping platform using MATLAB/Simulink. Simulations and experimental results obtained from an EV prototype car are presented.