A study of the effect of allium cepa extract as an inhibitor on mild steel corrosion in 0.5M HCl was made at ambient temperature. The experiments were performed with the weight loss/corrosion rate and potentiostatic polarization measurement techniques. Polarization measurement was performed using a potentiostat (Autolab PGSTAT 30 ECO CHIMIE) interfaced with a computer for data acquisition and analysis. Effective corrosion inhibition of the extract on the steel test specimens in the different concentrations of HCl used was achieved as indicated with the results obtained. There was increasing inhibition performance with increasing concentration of the extract inhibitor. The best inhibition performances were achieved at the lower exposure times for all the extract concentrations used in the 0.5 M HCl. A good correlation of results was obtained for the gravimetric and polarization experiments. A mixed type inhibitor is indicated with the results of ba and bc.