Optimization methods have been used to determine the elastic, piezoelectric, and dielectric constants of piezoelectric materials from admittance or impedance measurements. The optimal material constants minimize the difference between the modeled and measured admittance or impedance spectra. In this paper, a global optimization method is proposed to calculate the optimal material constants of piezoelectric bars in the length thickness extensional mode. The algorithm is applied to a soft PZT and a hard PZT and is shown to be robust.