Rest assured that before long the cost will go down.

For anyone who has lived through gasoline shortages and price spikes, the recent headline in The Wall Street Journal may cause nightmares: “Americans Face Highest Pump Prices in Years.”

Sad but true. Not since 2014 have fuel costs been as high as they are expected to be during the peak driving season of 2018.

Americans have gotten used to low pump prices. In 2011, another headline read, “$4 Gas Might Be Here to Stay.” It wasn’t. In fact, over the past four years, the price has stayed below $3 per gallon — and for a few months in 2016, the average national price for regular was below $2. Lately, the national price has been around $2.70.

What’s driving this upward pressure? Economic chaos under a leftist dictatorship has cut exports from Venezuela, which saw its total production plummet by 29 percent last year. The Organization of Petroleum Exporting Countries has implemented cuts in its overall output.

Meanwhile, the U.S. and the European Union are enjoying solid growth and low unemployment, which boost demand for gasoline, which in turn tends to push prices up. All these factors have boosted the barrel price of crude oil from $46 to about $65 since last summer.

What this bump reminds us is how well the oil and gasoline markets have functioned in recent years. It’s hard to remember that in 2008, the price of crude went above $140 a barrel — and a Goldman Sachs industry analyst predicted it would reach $200, which translates into $6-a-gallon gasoline.

His forecast was wrong, because it failed to account for how lucrative returns would drive oil companies to devise new ways to extract the stuff — or the demand-suppressing Great Recession, which those high oil prices may have helped to cause.

Humans — both consumers and producers — are adaptable. So when the price you pay to fill your tank goes up, you can be confident that before long, it will go down, and vice versa.

Huge changes are rare, and they rarely last. When it comes to petroleum, we’re living in an era of price moderation. We should all enjoy it.