Tesla recently updated its in-car energy app to compare real and projected range while providing advice to optimize range.
Many factors affect the real efficiency of a vehicle regardless if it is an EV or not. Accurate range prediction helps with curbing range anxiety better than longer range.
In 2018, Tesla added environmental factors (elevation changes, weather, etc.) into its range calculation and predicts how much energy will be left, but it's common to see the actual energy to be lower at arrival.
With multiple updates throughout the year, the energy app is now more in-depth and detailed than ever before.
Tesla's energy app also breaks down energy consumed in miles from other sources, including sentry mode and screen time.