To calculate your annual driving costs, begin by recording how much it costs to fill up your tank and note the odometer at time of purchase. Each time you fill up, put the number of gallons, the number on your odometer and how much you paid. At the end of the year, these numbers will help you calculate your average miles per gallon as well as your gas cost per mile.