The next time you're gritting your teeth as you fill your tank with $4 gas, here's something to consider: Your pain is their gain.

The last of the Big Five oil companies announced first-quarter earnings Friday, so the totals are in. Between the five of them, ExxonMobil, BP, Shell, Chevron, and ConocoPhillips made $34 billion in profits in the first three months of 2011 -- up 42 percent from a year ago.

That's about $110 for every man, woman, and child in the United States -- in just three months.

Exxon alone cleared a cool $10.7 billion profit from January through March, up 69 percent from 2010. That's $82,175 a minute.

Why the staggering increase in earnings? Precisely because you're paying $4 a gallon for gas.

Gas prices shoot up when oil prices shoot up, and when oil prices shoot up for reasons that have nothing to do with how much it costs to bring it out of the ground, it's a windfall for the folks who produce it.

The average cost to produce a barrel of oil, including exploration, development, extraction and taxes, is about $30, according to a U.S. Energy Information Administration survey. The going rate to buy one is about $113.

Why is the price so high? Part of it is increased demand and geopolitical worries. But no less an authority on the matter than Goldman Sachs acknowledged earlier this month that speculation is at least partially responsible, driving oil prices up faster and higher than supply and demand could possibly explain.

That means the people who are betting on oil prices are actually making the price of oil go up.

And while the pain is widely felt -- consider all the Wal-Mart shoppers who are agonizing over how to make it to the end of the month -- the benefits are not being widely shared.

The industry's powerful Washington mouthpiece, the American Petroleum Institute, argues that the staggering earnings simply reflect oil and gas companies' tremendous contributions to the economy, and that their stock prices are shoring up the nation's pension funds.

Adam Sieminski, chief energy economist for Deutsche Bank, thinks the numbers get too much attention. “The overall profit numbers look really big because they're really big companies that move a lot of product around,” he says. “To say that they're enormous profits only works if you're talking about the total number. They're not enormous profits if you compare them across other companies and other industries.”

Siemenski even accentuates the positive. “Yes, when gas goes up, everybody squeaks, because it's uncomfortable,” he says. But high oil prices mean, among other things, that “it becomes more attractive to do alternative energy… The worst thing that ever happened to wind and solar power companies was when oil prices collapsed in 2008 and early 2009,” he says. Furthermore, when gas gets pricey, “people who made a decision to get a Prius instead of a Hummer get a payback, and from a societal standpoint, that's probably good.”

And yet, the fact of the matter is that every visit to the gas pump reflects a transfer of money from the many to the few -- and in most cases, from the not-so-rich to the super-rich.

By and large, the oil companies' profits are not finding their way back into the communities from which they came; are not being used to create more jobs; and are not being invested in new equipment and exploration.

Some of that money is going back out the door in the form of larger dividends to stockholders. But in the case of two of the big five in particular -- Exxon and ConocoPhillips -- more than half of their total profits are being used to buy back their own stock.

Fully $5.7 billion of Exxon's haul went to buy back its own stock -- and the company announced that it expects to buy back yet another $5 billion's worth in the second quarter of the year. Conoco earned $3 billion in the first three months of 2011 -- and spent $1.6 billion of that to buy back 21 million of its own shares.

Buying back stock is not an uncommon tactic among publicly held companies, particularly when they experience a sudden and possibly temporary uptick in revenue. Buybacks are almost guaranteed to send stock prices up, by boosting earnings per outstanding share, increasing the demand for the stock and sending a signal that the company thinks its stock is undervalued.

But from the viewpoint of a company's CEO, other top brass and its board of directors, stock buybacks have all sorts of particular advantages, as well.

Top executives, after all, often get significant stock options. If stock prices don't go up, such options are worthless. By contrast, the higher the stock price goes, the more valuable the option. (Exxon's stock is up 32 percent from six months ago.)

Companies that buy back their stock can either retire it or simply keep it themselves, under the control of the board of directors, to reissue later or award as bonuses.

Dividends, by contrast, are not nearly as good a deal for company executives. For one thing, they are taxed as income. An increase in the stock price is not taxed as income; it's not taxed at all until the stock is sold -- and only then at the capital gains tax rate, which is limited to 15 percent. (Fifteen percent would be a lot for the median American family, which pays less than 5 percent of its income in federal taxes. But it's a huge break to those paying income tax at the highest marginal rate of 35 percent.)

“Buying back shares benefits existing shareholders, no one else. And more than anyone else, it benefits existing management,” says Henry Banta, an energy industry analyst and partner in the Washington D.C. law firm of Lobel, Novins & Lamont.

“They're basically enriching themselves,” says Daniel J. Weiss, a senior fellow at the Center for American Progress. “With this windfall, they enrich the board of directors, senior managers, and shareholders.”

And in 2007, when Exxon was using $30 billion a year from the previous oil-price bubble to buy back its shares, Bloomberg columnist David Pauly wrote: “In most cases, stock buybacks are suspect…. Managements should ignore investors' call to repurchase their shares and invest money in ways that will increase profit, not just earnings per share.”

As for the dividends paid by Exxon and the other oil giants, there may be a lot of shareholders, total -- including a lot of pension funds and mutual funds -- but the vast majority of shares are held by a very small elite.

Edward N. Wolff, an economics professor at New York University, studies wealth distribution. His latest study includes data through 2007. When it comes to total equity in stocks, Wolff says, “it's still very concentrated in the hands of the rich.”

“Less than half of households owned stock as of 2007,” he says. “Probably less now” because of the financial crisis, he suspects: “Probably more like 45 percent, maybe less.” That includes 401ks, mutual funds and the like.

“Even that really overstates things because a lot of the people who do own stock own very small amounts,” Wolff says. As of 2007, the percentage of households that owned $5,000 or more of stock was 35 percent; only 22 percent owned $25,000 or more.

Who's got the rest? The wealthiest 1 percent of households has 38 percent, Wolff found; the wealthiest 5 percent has 69 percent; the wealthiest 10 percent has 81 percent.

The bottom 60 percent of households owns 2.5 percent of the total stock. Not so very much.

There's another thing the big oil companies are doing with their profits: they're hoarding them. If precedent holds, as soon as oil prices started shooting up again, a lot of that money started going into the bank for safekeeping -- and adding yet more to the $1 trillion or so in corporate cash lying fallow and slowing the recovery.

And as it happens, a not insubstantial chunk of last quarter's profits were a direct gift -- from the taxpayers. Somewhere between $4 billion and $9 billion of the industry's annual profits comes from federal subsidies.

President Barack Obama has proposed repealing $4 billion a year in subsidies; the American Petroleum Institute says the proposal would actually cost the industry about $90 billion over the next decade.

Response to Obama's proposal was lackluster at first, from both sides of the aisle.

But Democrats, afraid of being thrown out of the White House by an angry, gas-impoverished voting public, are suddenly seeing the fight to repeal those subsidies as a winning political issue.

Although the repeal would neither increase nor decrease the price of gas, it would take a bite out of Big Oil. And pushing for the repeal will almost inevitably highlight the modern Republican Party's nearly lockstep allegiance to the thriving oil and gas interests -- something that, in a period of high gas prices and even higher profits, couldn't be good for them.

But yet another thing the industry does with all its cash is buy influence in Washington. (See my April 6 report, How the Oil Lobby Greases Washington's Wheels.)

For instance, Exxon, during the same quarter it made nearly $11 billion, spent just a tiny fraction of that on lobbying. But that was still a whopping $3 million.

*************************