According to one embodiment, a pressure sensor includes a film part, and a sensing unit. A circumscribing rectangle circumscribing a configuration of a film surface of the film part has a first side, a second side, a third side connected to one end of the first side and one end of the second side, a fourth side connected to one other end of the first side and one other end of the second side, and a centroid of the circumscribing rectangle. The circumscribing rectangle includes a first region enclosed by the first side, line segments connecting the centroid to the one end of the first side, and to the one other end of the first side. The sensing unit includes sensing elements provided on a portion of the film surface overlapping the first region. Each sensing element includes a first, second magnetic layers, and a spacer layer.根據一實施例,一壓力感測器包含一膜部件及一感測單元。外接該膜部件之一膜表面之一組態之一外接矩形具有一第一側、一第二側、連接至該第一側之一端及該第二側之一端之一第三側、連接至該第一側之另一端及該第二側之另一端之一第四側以及該外接矩形之一質心。該外接矩形包含由該第一側、將該質心連接至該第一側之該一端及該第一側之該另一端之線段圍封之一第一區域。該感測單元包含提供在與該第一區域重疊之該膜表面之一部分上之感測元件。各感測元件包含一第一磁性層、第二磁性層及一間隔層。