The number used for MPG is 21.4 which is the "Average U.S. light duty vehicle fuel efficiency".
In addition to passenger cars the light duty vehicle class includes SUVs and pickups (including 1/2 ton models such as the Silverado, F-150). At this time I don't believe there are any electric vehicles that would compete with a 1/2 ton pickup in terms of payload or towing.
It would seem the Passenger Car fuel economy would be the most accurate number to use; which is 36.4 MPG.
They do acknowledge this number at the end of the post:
>The average EPA fuel economy of passenger cars (not counting trucks) was 36.4 miles per gallon in 2014. Using that number puts gas and electric cars on a more even playing field.
Though doing so makes electricity only cheaper in 43/50 states and the savings is not nearly as compelling as the figures from the 21.4 MPG comparison.
TL;DR: this is is more of a clickbait product promotion article than a real comparison