First mpg ratings probably do not mean too much to your driving. It is like looking at the odometer of a used car. There can be tricks involved:
I don't know anyone who in a real life situation gets the mileage that their vehicle is "rated" at. At best it is a comparison figure between vehicles. But comparisons and certain figures of themselves can be misleading. When advertisers use these figures, they can be intentionally misleading.
One of the initial ways that electric cars were rated was kWh used for 100 miles. Why? Why not 200 miles or 50 miles? It turns out that this produced a number that looked a lot like a reasonably good number for mpg. A quick reading by someone not looking carefully could easily confuse the two. Here is a site that shows an original RAV4 ev sticker showing city consumption at 27 and in smaller print kw-hr/100 miles. The highway consumption is listed at 34. (1) I am old enough to remember when pump signs were briefly switched to liters and the price seemed to drop dramatically.
Then again I have seen a lot of mileage claims for hybrids that only list the liquid fuel consumption. So if you plug in your car and then only use 1 gallon in a month as a result all the mileage for that month is attributed to that one gallon when in fact it was running off electricity that you were also paying for, just not at the pump.
For an electric vehicle it is not difficult at all to convert from one to the other (sort of.) You remember having to find he common denominator when adding fractions. Or maybe later having to convert problems to the same units of measure. The same concept applies here. You need a common measure between electricity and gasoline. BTU is used. The British Thermal Unit is a measure of heat content. The calorie is a similar measure using the metric standard.
It turns out that we can measure the BTU in a gallon of gasoline and find it is about 114,000 BTU and 1 kWh of electricity equals 3413 BTU. Other fuels or energy sources can also be measured and there is a resulting GGE (Gasoline Gallon Equivalent with 33.4 kWh = 1gal of gasoline [3413/114000]) 2 & 3
The numbers that the EPA gets are theoretical. No one is getting in a several hundred cars and averaging the results. This means that assumptions are made about the driving conditions. An LA. highway that has turned into a parking lot with traffic congestion is a different kind of city driving than rush hour in Enid, Oklahoma. Assumptions are also made about general driving techniques. You have no doubt heard of people who have a knack of getting 100's of miles out of a gallon of gas by using tricks like coasting, never touching the brakes... And assumptions are made about the drag of the wind and the drive train. A good tailwind, "dragging" behind a big vehicle, and regular maintenance may alter this dynamic as well.
Any vehicle with regenerative braking and a means to store and reuse the resulting inertia energy captured is probably going to have better mileage in stop and go low speed city driving than high speed highway driving.
See my other answer cited below for 3 conversion examples of electric cars. Many electric vehicles will say that they can get a certain mileage on a full charge. Owners find that their experience is never quite so good. This has a direct effect on the mileage" in the same way as traveling 150 miles on a tank of gas is a whole lot different than traveling 300 miles on the same tankful. The Tesla for example claimed a mileage of around 225 miles on a full charge and owners find that it may be closer to 160 again depending upon the driver and the conditions.
And since you are comparing electricity to gasoline you should also take into consideration the different cost of each. Gasoline is currently less expensive for the amount of energy it holds but electric vehicles will always be far more efficient than gasoline powered vehicles leading to cheaper operating costs with electric vehicles.