An ultrasonic sensor includes a vibration plate, a first electrode, a piezoelectric body, and a second electrode. The first electrode is laminated on the vibration plate, that has a length along a surface of the vibration plate in a first direction, and that has a width Wbe along the surface of the vibration plate in a second direction that is orthogonal to the first direction. The width Wbe is not more than the length. The piezoelectric body is laminated on the first electrode and has a width Wpz in the second direction. The second electrode is laminated on the piezoelectric body. A ratio Wbe/Wpz between the width Wbe of the first electrode and the width Wpz of the piezoelectric body is not less than 0.1 and not more than 0.8.