Fuel is sold by volume in gallons or liters. A computer in the gasoline pump calculates what you owe based on the amount and unit price of the gasoline. Weights and measures officials post a seal to show the equipment was tested and found to be accurate.