A piezoelectric element includes a first electrode layer, a piezoelectric layer, and a second electrode layer. The first electrode layer, the piezoelectric layer, and the second electrode layer are stacked in sequence on one another. The first electrode layer has a first part overlapping the piezoelectric layer in a plan view, and a second part at least partially separated from the first part and not overlapping the piezoelectric layer in the plan view. The second electrode layer has a third part overlapping the piezoelectric layer in the plan view, and a fourth part separated from the third part. The fourth part is in contact with the first part and the second part.