Fast-growing freight activities over the decades have become one of the major contributors to air pollution, leading to many efforts in freight decarbonization and electrification. However, the development of freight electrification is slow due to technological uncertainty, slow charging, high capital cost, etc. This paper analyzes the potential impact and benefit of heavy-duty vehicle (HDV) electrification and automation on fleet cost, infrastructure cost, the electricity grid, and environmental outcomes. In this work, we extended the vehicle electrification benefit analysis tool: Grid-Electrified Mobility (GEM) model, which had primarily been used to study light-duty passenger vehicles (LDVs), to analyze heavy-duty vehicle electrification. The extended model is derived for freight transportation electrification, and different freight electrification and automation adoption scenarios were analyzed. We find that the increased penetration of automated electric freight fleets within other types of electrified freight fleets from 1% to 99% will result in an overall cost reduction of 18.2%, fleet size reduction of 20.4%, and lower peak load reduction of 14.3%.