Published: 5/24/08, 11:05 AM EDT
By JOHN PORRETTO and JOHN WILEN
(AP) - Consider the game of chicken that plays out every day across Pennsylvania State Highway 441. In Marietta, where the road hugs the Susquehanna River, a Rutter's Farm Store gas station stands on one side, a Sheetz gas station on the other.

Kelly Bosley, who manages Rutter's, doesn't even have to look across the highway to know when Sheetz changes its price for a gallon of gas. When Sheetz raises prices, her own pumps are busy. When Sheetz lowers prices, she has not a car in sight.

She calls Rutter's headquarters to report the competition's new price and wait for instructions.

"I call a lot of times and say, 'They went down, hurry up! Hurry up! Call me! Call me!' Or it could be where theirs goes up, and I'll say, 'Take your time! You know, I like being busy.' But I have no control over that."

You think you feel helpless at the pump?

Bosley makes a living selling gas - and even she has little control over what it costs.

So how exactly are gas prices set? What determines the hair-pulling figure you see displayed in large electronic or plastic numbers? Why is a gallon of gas, say, $4.11 - not $4.10 or $4.12? Why is the price different across the street?

It all starts with oil.

The biggest factor in the skyrocketing price of gasoline is the historic ascent of crude oil, which has surged from $45 per barrel in 2004 to more than $135 this past week, setting new record highs all the while.

In the first quarter of this year, based on a retail price of gas that now seems like a steal - $3.11 a gallon - crude oil accounted for all but about a dollar, or 70 percent, of the cost, according to the federal government.

The rest is a complex mix of factors, from the cost of turning oil into gas to taxes to marketing costs to, sometimes, nothing more than the competitive whims of your local gas station owner.

Not that understanding the breakdown makes it any less cringe-inducing to fill 'er up.

___

First a primer on how gas gets to your tank:

Once oil is pumped from the ground, it can be sold on the spot market, a last-minute trading arena where oil companies and distributors buy and sell to each other, or straight to refiners. After it's brewed into gasoline, the product can again be sold on the spot market, or directly to wholesalers, who in turn can supply their own stations or sell it to other retailers.

Each step of the way, buyers and sellers negotiate a price until, finally, drivers pay the ultimate tab at the pump.

At the starting point of all this is the price of oil - which, like the oil itself, is nothing if not crude.

The knee-jerk villains are the oil companies, fat with multibillion-dollar profits, frequent targets of populist anger. But wait: The oil companies don't set the price of oil or the cost of a gallon of gas.

Prices are a function of the open market, the result of futures contracts being traded on the New York Mercantile Exchange, or Nymex, and other exchanges around the world.

Buying the current July crude oil futures contract means you're buying oil that will be delivered by the end of July. But most investors who trade futures have no intention of ever accepting the underlying oil: Like stock investors who frequently buy and sell their holdings, they're simply betting that prices will rise or fall.

Of late, on the Nymex, oil futures have been rising.

Why? Blame the falling dollar. Oil is priced in U.S. dollars, and the weaker the dollar gets, the more attractive dollar-denominated oil contracts are to foreign investors - or any investor looking for a safe haven in the turbulent stock market.

The rush of buyers keeps pushing oil futures to a series of new records, and the rest of the energy complex, including gasoline futures, has followed. That pushes up the price of gas that goes into your tank.

"Crude is the driver," said Jim Ritterbusch, president of energy consultancy Ritterbusch and Associates in Galena, Ill. "As long as it stays up there, gasoline's not going to be able to decline much at all, even if demand slips. That's just the way it is."

There is some evidence Americans are buying less gas as the price marches higher, and common sense suggests they would cut back even more if gas rose to $4.50 or $5 a gallon.

Lower demand should mean lower prices - but it takes time for that to happen, given the enormous scale of refining operations that produce gasoline.

"Once demand begins to slow, that needs to translate into inventories, then you get some price weakening," Ritterbusch said. "But it takes a while."

Oil and gasoline prices often move in the same direction, but they aren't linked directly. In fact, while oil prices have more than doubled in the past year, gasoline is only up about 19 percent during the same time.

Oil prices often fluctuate with production decisions from the Organization of Petroleum Exporting Countries, which supplies about 40 percent of the world's crude, or when conflict in the Middle East or Nigeria threatens supplies.

For example, oil prices rose $2.46 in one day last month amid reports a ship under contract to the Defense Department fired warning shots at two boats in the Persian Gulf that may have been Iranian.

A Navy spokesman later said the origin of the boats was unclear, but the news raised concerns that a conflict between U.S. and Iranian forces could cut oil supplies from the region. That same day, gas prices rose another 2.1 cents to a then-record national average of $3.577 a gallon on other supply concerns.

And the rise has only grown more dramatic. Oil sprinted higher this past week, rising more than $4 a barrel on Wednesday alone and past $135 on Thursday.

As for gasoline prices: They're closely tied to demand from U.S. drivers and how efficiently refineries are operating. Falling production or inventories often send prices skyrocketing.

Those prices can vary greatly depending on the region.

The Gulf Coast is the source of about half the gasoline produced in the United States, and areas farthest from there tend to have higher prices because of the cost of shipping gas via pipeline and tanker truck all over the country.

Some of those places, like California and New York, also have higher local taxes that push the price higher.

Oil companies may not set the price of oil and gasoline, but not everyone is willing to sit back and let them claim to be innocent bystanders.

In particular, for the second time this year, Big Oil's biggest executives were on Capitol Hill in recent days getting pummeled by many in Congress for their record profits while Americans struggle with record fuel prices.

"Where is the corporate conscience?" Sen. Dick Durbin, D-Ill., asked the top executives of the five largest U.S. oil companies.

___

Soaring gas prices have led to cries for a variety of answers, from Hillary Rodham Clinton and John McCain's suggestion to suspend the federal gas tax this summer to President Bush's call to open the Arctic National Wildlife Refuge in Alaska and some offshore waters that are now off limits to oil development.

Others have suggested a windfall profits tax on oil companies, although some economists say that might actually hurt supply. Oil companies say they're not to blame for spiking fuel prices, and their earnings, measured against revenue, are in line with other industries.

On top of that, rising oil prices have sharply cut profit margins for refining, and that hits the major oil companies - which both pump oil and refine it for use as gasoline.

A giant like Exxon Mobil can handle the blow. Its refining and marketing profits for the first quarter were down 39 percent from a year ago, but Exxon still banked a nearly $11 billion profit because of the hefty prices earned on crude it pumped out of the ground.

Smaller refiners aren't so fortunate. Sunoco Inc.'s refining and supply business lost $123 million in the first quarter, hurt by lower margins. Tesoro Corp. lost $82 million for the same period.

In any case, huge profits at big oil companies like Exxon Mobil and Chevron aren't because of high prices at the pump. Their massive profits are tied to their exploration and production arms, which are benefiting from record crude prices.

Higher crude costs also have squeezed profits at the refining arms of companies like ConocoPhillips, which don't produce enough crude themselves to refine at full capacity without buying more oil from other producers.

CEO Jim Mulva said ConocoPhillips, the second-largest U.S. refiner behind Valero Energy Corp., buys about 2 million barrels of crude a day at market prices to refine into gasoline and other products.

"If oil costs us $30 a barrel or $40 a barrel or $120 a barrel, that's why the cost of gasoline is what it is," he said. "It's not because of taxes. It's not because of ... refining and distribution. It's because of the cost of oil."

___