An ultrasonic device includes a substrate having a first opening, a second opening and a wall part partitioning the first opening and the second opening; a first vibration film and a second vibration film which close the first opening and the second opening respectively; a first piezoelectric element and a second piezoelectric element which are formed on surfaces of the first vibration film and the second vibration film opposite to the substrate; an acoustic matching layer which is disposed within the first opening and the second opening so as to come into contact with the first vibration film and the second vibration film.