It’s campaign season and the pandering about gas prices is in full swing. Hardly a day goes by that a Republican politician does not throw facts to the wind and claim that rising costs at the pump are the result of President Obama’s decisions to block the Keystone XL pipeline and impose sensible environmental regulations and modest restrictions on offshore drilling.

Next, of course, comes the familiar incantation of “drill, baby, drill.” Mr. Obama has rightly derided this as a “bumper sticker,” not a strategy. Last week, he agreed that high gas prices were a real burden, but said the only sensible response was a balanced mix of production, conservation and innovation in alternative fuels.

There are lots of reasons for the rise in gas prices, but the lack of American production is not one of them. Domestic crude oil production is actually up from 5.4 million barrels a day in 2004 to 5.59 million now; imports have dropped by more than 10 percent in the same period. Despite a temporary slowdown in exploration in the Gulf of Mexico after the BP oil disaster, the number of rigs in American oil fields has quadrupled over three years. There have been new discoveries and the administration has promised to open up more offshore reserves. To say that Mr. Obama has denied industry access is nonsense.

Equally nonsensical is the Republican claim that Mr. Obama’s proposed repeal of $4 billion in annual tax breaks for the oil and gas industry — whose five biggest players posted $137 billion in profits last year — would drive prices upward. As is Newt Gingrich’s claim that a proposal now taking shape in the Environmental Protection Agency, and fiercely opposed by refiners, to lower the sulfur content in gasoline would add 25 cents to the cost of a gallon. Agency experts say it would add about a penny.