In 2017, gasoline cost about $2.41 per gallon on average. Roughly 8 percent of that paid the federal gas tax.