Autonomous electric vehicles are being widely studied nowadays as the future technology of ground transportation, while their conventional powertrain systems limit their energy efficiencies and may hinder their broad applications in future. Here we report a study on the energy consumption, efficiency improvement and greenhouse gas emissions of a mid-size autonomous electric vehicle driven by in-wheel motors, through the development of a numerical energy model, validated and implemented in a case study. The energy analysis was conducted under three driving conditions: flat road, upslope, and downslope driving, considering autonomous driving patterns, motor efficiency optimization and regenerative braking. The case study based on the baseline electric vehicle driving data in West Los Angeles showed that an in-wheel motor driven autonomous electric vehicle can save up to 17.5% of energy during the slope driving. Additionally, it can reduce around 5.5% greenhouse gas emissions annually in each state in the United States. Using the efficiency maps of a commercial in-wheel motor, the energy model and validated results in this study are in line with actual situations and can be used to support the future development of energy-efficient autonomous electric vehicles and sustainable energy transitions in ground transportation.