An ultrasonic device includes an element substrate and a wiring substrate. The element substrate includes an ultrasonic element and an element interconnect terminal connected to the ultrasonic element. The wiring substrate includes a wiring terminal and an opening portion that defines an opening extending through the wiring substrate. The element interconnect terminal and the wiring terminal are connected so as to oppose each other. The opening portion encloses the ultrasonic element in plan view as seen from a thickness direction of the wiring substrate.