Add up Your Trip Cost Take the mileage of the total distance of your trip and divide it by your miles per gallon to get the number of gallons of gas you will need on your journey. Then multiply that figure by the current gas price, and the result is the estimated cost of gas for your road trip.