We study the stability of a flexible beam clamped at one end. Amass is attached at the other end, where a control moment isapplied. The boundary control is proportional to the angular velocityat the end. By spectral analysis, we prove that the optimal decay rateof the energy is given by the spectrum of the generator of thesemigroup associated to the system.