Compute energy density as energy divided by mass, so batteries and fuels can be compared on a like-for-like basis.
ρ_E = E / m。