The cost of a gallon of regular, unleaded gasoline averaged $4.049 in the Triangle on Friday, July 4, 2008. A year earlier, the average cost of a gallon was $2.87, according to FuelGauge.com.