To calculate gas mileage easily, divide the distance traveled by the amount of gas used. For example, if you drove 200 miles and used 10 gallons of gas, your mileage would be 20 miles per gallon.