The corrosion of iron and aluminium has been investigated in 0.1 M HCl acidic solutions in the presence of different concentrations of SDBS at different temperatures (303, 318, and 333 K). With this aim, the corrosion rate of iron and aluminum was determined by using gravimetric and potentiostatic methods. Semi-logarithmic current potential curves were drawn by potentiostatic measurements at different temperatures. By using these curves, the electrochemical parameters (Icorr, Ecorr, Rp) were calculated. The activation energy (Ea) was calculated with the Arrhenius equation at different concentrations of inhibitor. The adsorption of SDBS on metal surface has been carried out with Langmuir adsorption isotherm and the curves of isotherm have been obtained. According to experimental results, SDBS is more effective in inhibiting aluminium corrosion. The inhibition effect of SDBS decreases with an increase of temperature.