An acceleration sensor (1) has cantilevers (22) each elastically deforming so as to pivot about the fixed end (221) of the cantilever, magnetic bodies (21) provided at the free ends (222) of the cantilevers (22), and magnetism detection heads (23) placed on the outer peripheral sides of pivoting regions of the cantilevers (22). The cantilevers (22) each hold a first magnetic body (21a) and a second magnetic body (21b) exhibiting magnetizing directions opposite to each other. The first magnetic body (21a) and the second magnetic body (21b) are each composed of unit magnetic bodies.