In this paper, a Wittrick-Williams algorithm is developed for the elastic-piezoelectric two-layer active beams. The exact dynamic stiffness matrix (or spectral element matrix) is used for the development. This algorithm may help calculate all the required natural frequencies, which lie below any chosen frequency, without the possibility of missing any due to close grouping or due to the sign change of the determinant of spectral element matrix via infinity instead of via zero. The uniform and partially patched active beams are considered as the illustrative examples to confirm the present algorithm.