A pump jack operates at a well site leased by Devon Energy Production Co. near Guthrie, Oklahoma.

U.S. crude futures ended lower after a choppy trading day on Thursday, as rising oil stockpiles in American storage facilities offset evidence that OPEC and other big exporters were cutting production.

Prices retraced early gains as traders grew less concerned about mounting tensions between the United States and Iran.