Oil refining is a joint production system because the production of one oil product makes technically inevitable the production of other oil products. Due to the complex nature of the process involved and the vast number of joint product outputs that are strongly correlated, it is very difficult to establish any meaningful CO2 emissions allocation between oil products. Nevertheless, the allocation of petroleum refinery energy use and the resultant CO2emissions among different oil products is necessary in "well to wheel" analysis in order to evaluate the environmental impacts of individual transportation fuels.In practice, allocation methods used so far for the petroleum based fuel are traditionally based on two fundamental approaches: physical 'measures (mass, volume, energy contents or other relevant parameters) or market value of individual oil products from a given refinery. These methods are open to discussion on two points. Fist, an a priori assumption about the allocation procedure (i.e., mass, volume, energy contents, market value, etc.) is in some ways completely arbitrary and consequently of little use for economic decision making purposes. Second, these approaches ignore the opportunity cost effects and the interdependencies which might exist among the refinery process units, and systematically assign more emissions to the oil products that utilize more process units.More sophisticated proposals to energy consumption and emissions allocation have been developed based on the concept of duality in linear programming (LP). Unfortunately, in refinery LP models constraints on (fixed) unit process capacities or input availabilities might destroy the additivity property of the marginal based allocations. In fact, due to a technical feature inherent in LP, the petroleum product allocation coefficients might underestimate or overestimate the total volume of the refinery's CO2 emissions. This handicap is a valid objection to LP as an allocation tool in retrospective or accounting LCA studies and might limit its use for problems in which the objective is to assign unambiguously the whole refinery's emissions among the oil products. This practice-oriented paper is aimed to provide a two-stage procedure, based on LP, to fully allocate the refinery's CO2emissions among the refinery's petroleum joint products. The procedure is applied to the IFP (Institut FranÇais du Pétrole) oil refinery. The average contribution of petroleum oil products to the refinery's CO2 emissions are then compared with the other accounting allocation methods. We show that, contrary to these latter, gasoline has not always a higher average CO2 content than that of diesel within the European refineries.