A magnetic sensor, comprising a first structure including a first arrangement pattern and a third arrangement pattern, capable of detecting a magnetic field in an arbitrary axis direction parallel to a plane of a substrate, wherein the first arrangement pattern includes: a first magnetic detection unit including a quadrangular magnetic sensitivity material having a first length and a quadrangular magnetic convergence material having a second length different from the first length of the magnetic sensitivity material on the substrate, and arranged parallel to the substrate and arranged horizontally so that a first virtual median line (Ma) passing perpendicularly through a first midpoint of the magnetic sensitivity material in a longitudinal direction and a second virtual median line (Mb) passing perpendicularly through a second midpoint of the magnetic convergence material in the longitudinal direction do not cross with each other, a second magnetic detection unit having a structure same as a structure of the first magnetic detection unit; and a connecting unit electrically connecting the magnetic sensitivity material of the first magnetic detection unit in series with the magnetic sensitivity material of the second magnetic detection unit, wherein both of the magnetic sensitivity material of the first magnetic detection unit and the magnetic sensitivity material of the second magnetic detection unit are arranged in a positional relationship of point symmetry to be sandwiched by the magnetic convergence material of the first magnetic detection unit and the magnetic convergence material of the second magnetic detection unit, and are arranged so that the first magnetic detection unit and the second magnetic detection unit do not overlap each other, and characterised in that the third arrangement pattern is parallel to the plane of the substrate, has a structure same as a structure of the first arrangement pattern, and is line-symmetric to the first arrangement pattern and parallel to the longitudinal directions of the magnetic convergence materials (201b,202b) of the first arrangement pattern. a first magnetic detection unit including a quadrangular magnetic sensitivity material having a first length and a quadrangular magnetic convergence material having a second length different from the first length of the magnetic sensitivity material on the substrate, and arranged parallel to the substrate and arranged horizontally so that a first virtual median line (Ma) passing perpendicularly through a first midpoint of the magnetic sensitivity material in a longitudinal direction and a second virtual median line (Mb) passing perpendicularly through a second midpoint of the magnetic convergence material in the longitudinal direction do not cross with each other, a second magnetic detection unit having a structure same as a structure of the first magnetic detection unit; and a connecting unit electrically connecting the magnetic sensitivity material of the first magnetic detection unit in series with the magnetic sensitivity material of the second magnetic detection unit, wherein both of the magnetic sensitivity material of the first magnetic detection unit and the magnetic sensitivity material of the second magnetic detection unit are arranged in a positional relationship of point symmetry to be sandwiched by the magnetic convergence material of the first magnetic detection unit and the magnetic convergence material of the second magnetic detection unit, and are arranged so that the first magnetic detection unit and the second magnetic detection unit do not overlap each other, and characterised in that the third arrangement pattern is parallel to the plane of the substrate, has a structure same as a structure of the first arrangement pattern, and is line-symmetric to the first arrangement pattern and parallel to the longitudinal directions of the magnetic convergence materials (201b,202b) of the first arrangement pattern.