There is provided a piezoelectric element which includes a first electrode, a piezoelectric layer which is formed on the first electrode by using a solution method, and is formed from a compound oxide having a perovskite structure in which potassium, sodium, and niobium are provided, and a second electrode which is provided on the piezoelectric layer. A cross-sectional SEM image of the piezoelectric layer is captured at a magnification of 100,000. When evaluation is performed under a condition in which a measured value in a transverse direction is set to 1,273 nm, two or more voids are included in the piezoelectric layer, a difference between the maximum value and the minimum value among diameters of the voids to be largest in a film thickness direction is equal to or smaller than 14 nm, and the maximum value is equal to or smaller than 24 nm.