The weight of the gas tax as a share of the retail price for gasoline fluctuates. In 2017, it stood at about 8 percent, down from a peak of 17 percent in 1998.