Lately, independent refiners have been struggling. Feedstocks benchmarked against West Texas Intermediate have cost more, as takeaway capacity from Cushing, Okla. -- the storage hub of WTI crude oil -- became more efficient. This development ate into profit margins. However, it seems that the Renewable Fuel Standard (opens a PDF) set by the Environmental Protection Agency has proved to be another thorn that U.S. refiners must deal with.

Logo used in the United States for E85 fuel. Source: Wikimedia Commons.

What is it all about?
To Fools who aren't yet aware of what this regulation is all about, it's a program that essentially requires higher production of ethanol and other biofuels in the United States to meet a certain level each year. The EPA aims to achieve "significant reductions of greenhouse gas emissions from the use of renewable fuels". According to the 2013 standards, or RFS2, a total of 16.55 billion gallons -- or an estimated 9.74% of all motor fuels market in the country -- must be renewable fuel.

To ensure compliance, the EPA requires refiners and blenders to buy a proportionate amount of renewable fuel from producers at market price, depending on the amount of fossil fuel these refiners sell each year. That way, the total mandated gallons of renewable fuels are expected to make way into the market.

How is it enforced?
The EPA has a mechanism that keeps track of fuel ethanol and other renewables sold in the market. For each gallon of ethanol these refiners buy, a uniquely identifiable Renewable Identification Number, or RIN, is generated. At the end of the year, each refiner has to possess the assigned number of RINs that must be deposited with the EPA. According to RFS2, one gallon of ethanol corresponds to one RIN, while one gallon of biodiesel bought generates 1.5 RINs.

The problem is, individual refiners may not really have as much need for ethanol or other biofuels as have been mandated for purchase. So there's another way out: These RINs can be stripped from the biofuels and sold separately in the open market. So refiners don't necessarily have to buy the physical commodity but may simply buy the RINs from the open market. Of course, the price of one RIN is still the same as the price of one gallon of ethanol.

The problem
At 9.74% of the motor fuel market for 2013, the total renewable fuel in the market is currently within the 10% "blendwall" limits. The blendwall is the maximum proportion of ethanol most drivers are willing to accept in gasoline. That's why individual obligations for refiners may exceed requirements. While refiners do require ethanol for blending the E10 variant of gasoline (which contains 10% ethanol), there could be a definite mismatch between demand and regulatory requirement. In other words, this year refiners had to buy RINs in the open market just to satisfy the mandatory quota. HollyFrontier (HFC) reports that as of June, it has been "purchasing RINs in order to meet approximately half of our renewable fuel requirements."

Additionally, RINs have been costlier this year. Corn ethanol (and hence RIN) prices shot up this year to around $1.10 per gallon, from less than $0.10 per gallon in 2012. This is exactly where buying fuel ethanol or its corresponding RINs haw turned out to be a headache for these refiners.

The players so far
This year, Valero Energy (VLO 1.23%) has so far spent $267 million on RINs, of which $137 was spent in the second quarter. This is a $78 million increase in RIN expenditure over last year's second quarter. Marathon Petroleum (MPC 0.95%) spent $65 million in the second quarter and $107 so far this year to purchase RINs. Phillips 66 (PSX 1.51%), on the other hand, has so far remain tight-lipped on the actual numbers. But analysts have hinted that the value could be pretty large, and could be as large as Valero's.

So are these numbers large? Yes. These figures shaved off a considerable percentage off the operating income of these refiners. However, things look even bleaker next year, unless there is a change in the regulatory framework. According to the EPA, next year's total mandated renewable fuel volumes stand at 18.15 billion gallons -- up from 16.55 billion gallons this year. This could mean disaster, as the only recourse might be for E15/E85 gasoline to hit the market. Drivers have so far been reluctant to use this blend, as it could void auto warranties. In other words, breaching the 10% "blend wall" could spell trouble for refiners.