The federal tax on gasoline is $0.184 per gallon and on diesel is $0.244 per gallon (average state taxes add another $0.326 and $0.348 per gallon respectively)… On average across the country, $0.51 of the cost of gasoline is taxes. If gas is $3.50, that’s 14%.