The main factors impacting gasoline prices at the pump, according to the American Petroleum Institute (API), are the cost of global crude oil (61 percent), refining costs (14 percent), distribution and marketing costs (11 percent) and federal and state taxes (14 percent).