1. Attachments are working again! Check out this thread for more details and to report any other bugs.

Mile calc question

Discussion in 'Gen 2 Prius Technical Discussion' started by tripp, Apr 23, 2007.

  1. tripp

    tripp Which it's a 'ybrid, ain't it?

    Joined:
    Oct 23, 2005
    4,717
    79
    0
    Location:
    Denver, CO
    Vehicle:
    2005 Prius
    OK, here's my problem. My MFG got reset in the middle of a tank. I know what the MPG reading was and I noted the trip odo reading so I know how the tank breaks down....

    53.2 MPG/377.5 mi
    55.8 MPG/93.4 mi

    So how do I avg the two together to get the correct mileage for the entire tank?
     
  2. efusco

    efusco Moderator Emeritus
    Staff Member

    Joined:
    Nov 26, 2003
    19,891
    1,192
    9
    Location:
    Nixa, MO
    Vehicle:
    2004 Prius
    Model:
    N/A
    work it out backward for gallons used for each segment. Add together the total gallons used and divide the total miles by the number of total gallons.

    7.096 gallons + 1.674 = 8.77 gallons

    470.9 mi/ 8.77gal = 53.7mpg
     
  3. tripp

    tripp Which it's a 'ybrid, ain't it?

    Joined:
    Oct 23, 2005
    4,717
    79
    0
    Location:
    Denver, CO
    Vehicle:
    2005 Prius
    What's that formula for calculating it with just distances and MPG? Someone brought it up once for showing why you shouldn't accelerate slowly (bad mpg over longer distance).

    That number looks about right. I was guessing something in the high 53's.
     
  4. MurryMc

    MurryMc New Member

    Joined:
    Mar 20, 2007
    6
    0
    0
    Try:


    Total MPG = ( Leg1 Miles + Leg2 Miles [... + LegN MGP * LegN Miles] ) /

    ( (Leg1 Miles / Leg1 MPG) + (Leg2 Miles / Leg2 MPG) [... + (LegN Miles / LegN MPG) ] )
     
  5. tripp

    tripp Which it's a 'ybrid, ain't it?

    Joined:
    Oct 23, 2005
    4,717
    79
    0
    Location:
    Denver, CO
    Vehicle:
    2005 Prius
    That's the one... Evan did the same thing, of course. Thanks guys.
     
  6. qbee42

    qbee42 My other car is a boat

    Joined:
    Mar 2, 2006
    18,058
    3,074
    7
    Location:
    Northern Michigan
    Vehicle:
    2006 Prius
    Hey tripp, you might want to loosen up that helmet a bit. :D

    Tom
     
  7. IsrAmeriPrius

    IsrAmeriPrius Progressive Member

    Joined:
    May 27, 2004
    4,333
    7
    0
    Location:
    Southern California
    Vehicle:
    2005 Prius
    My formula is a bit different.

    [segment 1 miles*MPG] + [segment 2 miles*MPG] / total miles = average tank MPG.

    [53.2 * 377.5] + [55.8 * 93.4] / 470.9 = 53.71
     
  8. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    <div class='quotetop'>QUOTE(IsrAmeriPrius @ Apr 24 2007, 06:29 AM) [snapback]428666[/snapback]</div>
    your formula is not correct. Please try the below e.g. and you will see the big difference:

    99 MPG/1 mi
    50 MPG/1 mi

    Using your formula:

    [1 * 99] + [1 * 50] / 2 = 74.5

    Using the correct formula:

    2 / ([1 / 99 ] + [1 / 50 ]) = 66.4
     
  9. Betelgeuse

    Betelgeuse Active Member

    Joined:
    Oct 11, 2005
    1,460
    24
    1
    Location:
    New York, NY, USA
    Vehicle:
    2005 Prius
    Model:
    N/A
    It's not that there's some "magic" formula that you need to use to calculate this. Remember that MPG stands for "miles per gallon," or, in other words, miles/gallons (miles divided by gallons). That means, if you know the MPG and the miles, you just need to divide the miles by the MPG and you'll get the gallons used:

    a miles / x (miles/gallon) = z gallons

    Then, you just add up your total gallons, add up your total miles (which was known information) and divide the miles by the gallons. Bingo! Total MPG!

    (a miles + b miles) / ((a miles/ x mpg) + (b miles / y mpg)) = Total MPG
     
  10. IsrAmeriPrius

    IsrAmeriPrius Progressive Member

    Joined:
    May 27, 2004
    4,333
    7
    0
    Location:
    Southern California
    Vehicle:
    2005 Prius
    <div class='quotetop'>QUOTE(vincent1449p @ Apr 24 2007, 04:33 AM) [snapback]428916[/snapback]</div>
    Except that I got the exact same result that Dr. Fusco did when he first calculated the total number of gallons used and then proceeded to divide the total miles driven on that tank by the number of gallons.
     
  11. vincent1449p

    vincent1449p Active Member

    Joined:
    May 24, 2004
    894
    331
    0
    Location:
    Singapore
    Vehicle:
    2012 Prius c
    <div class='quotetop'>QUOTE(IsrAmeriPrius @ Apr 25 2007, 09:09 AM) [snapback]429426[/snapback]</div>
    Not exact but close. The reason it is close is because the miles (numerator) is large as compared to the gallons (denominator). Which is why I've chosen a small numerator for comparison.

    Another point to add is that your units of measurement are not consistent. We know miles divide by gallons is mpg but what is miles*mpg? m²pg?
     
  12. IsrAmeriPrius

    IsrAmeriPrius Progressive Member

    Joined:
    May 27, 2004
    4,333
    7
    0
    Location:
    Southern California
    Vehicle:
    2005 Prius
    <div class='quotetop'>QUOTE(vincent1449p @ Apr 24 2007, 11:43 PM) [snapback]429612[/snapback]</div>
    You win.
     
  13. alexstarfire

    alexstarfire New Member

    Joined:
    Feb 10, 2007
    220
    0
    0
    Well, I'm no math newb, but the way IsrAmeriPrius did it is correct mathematically. The only reason it doesn't work is because it's distance.

    Or maybe I've just been to sleep deprived.
     
  14. Norm611

    Norm611 Junior Member

    Joined:
    Aug 9, 2005
    45
    0
    0
    Location:
    Western New York
    Vehicle:
    2008 Prius
     
  15. alexstarfire

    alexstarfire New Member

    Joined:
    Feb 10, 2007
    220
    0
    0
    I know, since I actually had to try both formulas to figure out why his didn't work properly. Like I said though, mathematically he's correct. Like if you took the gas out of the equation. He averaged the numbers properly, but since there is a hidden third factor it doesn't compute out properly.

    Either way he was wrong and you were right.
     
  16. daniel

    daniel Cat Lovers Against the Bomb

    Joined:
    Feb 25, 2004
    14,487
    1,518
    0
    Location:
    Spokane, WA
    Vehicle:
    2004 Prius
    Why do you care what your mpg was for a given tank? Are you correcting for odometer inaccuracy? If not, the figure is incorrect anyway. In any case, your lifetime average is much more significant than your mpg for each tankful.

    (This from someone who remembered to write down gallons pumped only about half the times I filled the tank, and finally quit record-keeping altogether. And my odometer is off by around 3% anyway, and in the end I don't really care what my exact mileage is, because this is a low-stress car and keeping track and worrying about getting one more mpg out of it is a high-stress activity.)

    (I really can't wait for my Xebra to come. That's going to be a really low-stress car, with no gasoline ever and no gas engine to worry about why it didn't shut off when I think it should have.)
     
  17. John in LB

    John in LB Life is good

    Joined:
    Aug 5, 2006
    399
    27
    0
    Location:
    Orange County
    Vehicle:
    2012 Prius Plug-in
    Model:
    Plug-in Advanced
    <div class='quotetop'>QUOTE(Alexstarfire @ Apr 26 2007, 02:21 PM) [snapback]430802[/snapback]</div>
    Sorry to interject - but this item is not up to judgment or opinion. This is math - and the equation was just wrong. The formula applied did not keep the units straight.

    There is only one way to do this calc: (Mile1 + Mile2) / (Mile1/mpg1 + Mile2/mpg2) = (M1+M2)/(G1+G2) = Total MPG.
     
  18. hill

    hill High Fiber Member

    Joined:
    Jun 23, 2005
    19,846
    8,151
    54
    Location:
    Montana & Nashville, TN
    Vehicle:
    2018 Chevy Volt
    Model:
    Premium
    <div class='quotetop'>QUOTE(daniel @ Apr 28 2007, 09:47 AM) [snapback]431636[/snapback]</div>
    daniel, you'd love the mpg estimator on our RX-400h hybrid. It WON'T do per/tank . . . only does lifetime. You can break the cycle by hitting reset, but other wise (like the everready battery bunny) it just keeps going and going and going. I prefer the Prius' per tank, as that way one can moniter the differences between tire pressure, # of passengers, temperature, etc, much easier.
     
  19. galaxee

    galaxee mostly benevolent

    Joined:
    Mar 14, 2005
    9,810
    465
    0
    Location:
    MD
    Vehicle:
    2005 Prius
    leave it to the geeks at PC to post up 17 replies about a math equation :D

    (... i had to. :lol:)
     
  20. daniel

    daniel Cat Lovers Against the Bomb

    Joined:
    Feb 25, 2004
    14,487
    1,518
    0
    Location:
    Spokane, WA
    Vehicle:
    2004 Prius
    <div class='quotetop'>QUOTE(hill @ Apr 29 2007, 03:06 PM) [snapback]432200[/snapback]</div>
    No, I wouldn't. :rolleyes: It would tell me that my lifetime mpg is lower than I wish it was. With the Prius I can just mentally more-or-less average those tanks that I feel are worth including, and ignore those winter and short-trip tanks.

    OTOH, I'm counting the days until my Xebra comes and I can quit burning gas for in-town driving altogether. :)