According to one embodiment, a pressure sensor includes a base unit, a film unit, and a plurality of sensing elements. The plurality of sensing elements is provided on the film unit radially with respect to a centroid of the film unit. The plurality of sensing elements has a first side and a second side intersecting the first side. Each of the plurality of sensing elements includes a first magnetic layer, a second magnetic layer, and an intermediate layer. Each of the plurality of sensing elements has a shape anisotropy characterized by a length of the first side being longer than a length of the second side intersecting the first side. The plurality of sensing elements is provided at lines having radial configurations extending from the centroid to have a prescribed angle between the first side and the line.