[Problem] To provide an electronic alarm with improved sound quality such that the overall shape can be made sufficiently compact and costs can be significantly reduced. [Solution] This electronic alarm outputs an alarm by oscillating a diaphragm (4) using a piezoelectric body (6) and is provided with: a circuit (85A) for generating a first fundamental rectangular wave which is high-pitched; a circuit (85B) for generating a second fundamental rectangular wave which is low-pitched; a circuit (84) for generating a modulating rectangular wave; a circuit (83) for modulating the first fundamental rectangular wave and the second fundamental rectangular wave with the modulating rectangular wave and setting a frequency shift during modulation of the first fundamental rectangular wave and a frequency shift during modulation of the second fundamental rectangular wave to a given range respectively; and a circuit (81) for generating a drive signal wherein the modulated first fundamental rectangular wave and the modulated second fundamental rectangular wave alternate at a given cycle and driving the piezoelectric body (6) with the drive signal.