Trip Fuel Cost Calculator

So I was talking with a friend and we were figuring out the amount of money we spend on a commute to see if it is worth buying a new car for the gas savings. I was using Google Maps to determine the distance between locations. So I got the idea to create this little tool to calculate it for me. I’ve been meaning to learn the Google Maps API anyway.

DIRECTIONS: Enter the current cost of fuel, your car’s gas mileage and a start and end address to get an estimate of how much you will spend on fuel for the trip.

Fuel Cost:
dollars per gallon

Your car’s average gas mileage:
miles per gallon (mpg)

to

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

June 4, 2008  Tags: , , , , ,   Posted in: Programming & Internet

17 Responses

  1. norm - June 27, 2008

    nothing happend; it just stayed grey.
    i’m curious to see this work so let me know what i did wrong.

  2. Dustin - June 27, 2008

    It tends to do that if an invalid address is entered. For example, I live on Hill Mar street, at least that is what my street sign says, but the post office and all the online services list it as Hillmar street. So if I put Hill Mar st, I don’t get results, but if I use Hillmar St. I get results.

    You may just want to verify the address you are using on http://maps.google.com.

  3. Anonymous - February 16, 2009

    I JUST PUT TOWN AND STATE IN DESTINATION POINTS

  4. Shannon - April 17, 2009

    Looking good! Sweet tool if you wanted to figure costs for a vacation.

  5. Conversion Van Guy - May 10, 2009

    Now if only it were easy to incorporate the cost of the vehicle, depreciation, wear and tear (Tires, Oil, etc.). So you could get a real cost of the trip. That is the number that might wake people up that driving all over is really more expensive than they think.

  6. Tim from Morgage calculater - May 16, 2009

    Nice tool especially for estimating possible commutes like I was testing for new jobs in the Chicago area.

  7. whitey from 1st Generation Camaros - May 26, 2009

    when I lived in chicago, I was driving to indianapolis on a regular basis. I paid a high of $4.63 at the peek. Man, I flushed a lot of money on travel…

  8. Charter Flights - June 8, 2009

    This is a very good tool to use. I wonder if it would be possible to create a tool to determine how much it would cost per mileage to fly charter flights as well as commercial. It would be interesting to see what the difference would be.

  9. finance - June 26, 2009

    thanks for this section, i learn new things

  10. Heather - June 27, 2009

    I don’t see anything. All i see is grey screen. I did type town and state in destination point and gas miles and gas prices. I see nothing happened. Let me know!

  11. mark - July 7, 2009

    This would be nice if it was a WordPress Plugin.
    Thanks.

  12. Vince from auto repair centre - July 10, 2009

    Nice calculator! It even works for locations here in Canada. What’s weird is the tool lets me zoom in but not back out.

  13. Drake - August 11, 2009

    All you have to do is double right click on the map, and it will zoom out. Great program by the way, I just wrote a similar program in Python. I added a place to put how many people were splitting the cost of the trip. Though mine does not use google maps. I love your program!

  14. Dustin - August 11, 2009

    Neat trick Drake :) I didn’t realize the map had zoom in & out capabilities.

  15. Scott from Chicago Lawyer - September 1, 2009

    Gas mileage is always a tough thing to exactly calculate but this does give you a good estimation on about how much your spending each time you drive.

  16. Due Date Calculator - September 9, 2009

    very nice widget and also useful. hope it`s accurate as well.

  17. P - September 15, 2009

    the calcualtor worked, but you did not take into consideration other countries, only the USA.It’s no use to me as i live in the UK. I hove you will develop it further

Comments are closed for this entry.