title: What is the best way to get fuel consumption (MPG) using OBD2 parameters?
body: <p>What is the best way to get fuel consumption (MPG) using OBD2 parameters. </p>
  
  <p>Below formula is simple but not most accurate, any other formula to get an accurate estimation. The value for vehicle speed is delivered in Km/Hr, to convert to miles multiply by 0.621317. To calculate MPG divide the MPH by GPH. The final math expression for MPG will be:</p>
  
  <p>For Gasoline Engine</p>
  
  <pre><code>MPG =VSS * 7.718/MAF
  </code></pre>
  
  <p>I would like to know for Diesel Engine to calculate instant consumption. Also I am trying to calculate it independent of car model from parameter available from obd2 standard.</p>
  
  <hr>
  
  <p><em>Some links which might be useful for those who are looking into same topic.</em></p>
  
  <ul>
  <li><p><a href="http://www.mp3car.com/engine-management-obd-ii-engine-diagnostics-etc/75138-calculating-mpg-from-vss-and-maf-from-obd2.html#post1121404" rel="nofollow noreferrer">Very useful info from other forum</a></p></li>
  <li><p><a href="http://www.lightner.net/obd2guru/IMAP_AFcalc.html" rel="nofollow noreferrer">MAP- and MAF-Based Air/Fuel Flow Calculator</a>   </p></li>
  <li><p><a href="http://www.lightner.net/lightner/bruce/Lightner-183.pdf" rel="nofollow noreferrer">AVR-Based Fuel Consumption Gauge by by Bruce D. Lightner</a></p></li>
  </ul>