Gas mileage and fuel-cost formulas
MPG and L/100 km describe the same thing inversely: a higher MPG is better, but a lower L/100 km is better. The conversion constant 235.215 comes from the litres-per-gallon and km-per-mile factors.
Worked example
You drove 320 miles on 12 gallons:
Improving your mileage
Fuel economy drops sharply above about 50 mph, and aggressive acceleration and braking can cut it by 15–30% on the highway. Keeping tyres properly inflated, removing roof racks and excess weight, and steady cruising all help. The official figures behind US window stickers come from the EPA.