According to Wells, about half the price paid at the gas pump is due to the price of crude oil, while one quarter is due to refining costs and the remaining quarter is due to other factors including marketing, transportation, labor and profit margins.