The corrosion inhibition efficiency, g, of sodium (6R,7R)-3-[(acetoxy)methyl]-8-oxo-7-[(2-thienylacetyl)amino]-5-thia-1-azabicyclo[4.2.0]oct-2-ene-2-carboxylic acid, cephalothin, was evaluated in the system API 5L X52/1 M HCl, using electrochemical impedance spectroscopy and SEM analysis. The results showed that the inhibition mechanism involves blockage of the steel surface by the inhibitor molecules through a Langmuir-type adsorption process. The studies to determine the durability where the inhibitor remained effective showed that, at stagnant conditions, the g was maintained over 92% for up to 600 immersion hours at 50 ppm, reaching the best corrosion efficiency when temperature was 25°C. Ó 2015 The Authors. Production and hosting by Elsevier B.V. on behalf of King Saud University. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).