How it is calculated
Gallons used is the distance divided by the MPG; the cost is gallons times the price per gallon. Doubling the distance for a round trip and dividing by the number of riders gives each person's share.
Real-world economy depends on speed, load, terrain and weather, so use your own figure if you have one. The MPG calculator works it out from a fill-up.
Driving a car home after a private sale
Buying a car in another city? Add the fuel for the drive home to the price before you agree it, along with a temporary permit or transit plates if your state requires them to drive it legally before it is registered.