For instance, if you plan to drive 500 miles (804.6 kilometers) in a car that gets 25 mpg (10.6 km/l), you'll need about 20 gallons (76 liters) of gasoline.