A magnetic sensor for detecting magnetic field components in three axis directions, the magnetic sensor comprising an arrangement pattern including: three or more magnetic detectors (50a, 50b, 50c) disposed to be parallel to one another and parallel to a substrate plane; and a first to a third magnetic flux concentrator unit (60a, 60b, 60c) disposed to be parallel to one another and parallel to the substrate plane, wherein the first to the third magnetic flux concentrator units are disposed to form respective magnetic paths of a magnetic flux component from the second magnetic flux concentrator unit to the first magnetic flux concentrator unit and a magnetic flux component from the second magnetic flux concentrator unit to the third magnetic flux concentrator unit, when a magnetic field is inputted in a longitudinal direction of the second magnetic flux concentrator unit, the three or more magnetic detectors are divided into a first magnetic detector group disposed between the second magnetic flux concentrator unit and the first magnetic flux concentrator unit and a second magnetic detector group disposed between the second magnetic flux concentrator unit and the third magnetic flux concentrator unit, all of the three or more magnetic detectors have a sensitive axis in a first axis direction parallel to the substrate plane, a second axis direction is parallel to the substrate plane and perpendicular to the first axis direction, and coincides with the longitudinal direction of the second magnetic flux concentrator unit, a third axis direction is perpendicular to the substrate plane, characterized in that each of the three or more magnetic detectors has a first terminal and a second terminal, and all of the first terminals of the three or more magnetic detectors are electrically coupled at one point. three or more magnetic detectors (50a, 50b, 50c) disposed to be parallel to one another and parallel to a substrate plane; and a first to a third magnetic flux concentrator unit (60a, 60b, 60c) disposed to be parallel to one another and parallel to the substrate plane, wherein the first to the third magnetic flux concentrator units are disposed to form respective magnetic paths of a magnetic flux component from the second magnetic flux concentrator unit to the first magnetic flux concentrator unit and a magnetic flux component from the second magnetic flux concentrator unit to the third magnetic flux concentrator unit, when a magnetic field is inputted in a longitudinal direction of the second magnetic flux concentrator unit, the three or more magnetic detectors are divided into a first magnetic detector group disposed between the second magnetic flux concentrator unit and the first magnetic flux concentrator unit and a second magnetic detector group disposed between the second magnetic flux concentrator unit and the third magnetic flux concentrator unit, all of the three or more magnetic detectors have a sensitive axis in a first axis direction parallel to the substrate plane, a second axis direction is parallel to the substrate plane and perpendicular to the first axis direction, and coincides with the longitudinal direction of the second magnetic flux concentrator unit, a third axis direction is perpendicular to the substrate plane, characterized in that each of the three or more magnetic detectors has a first terminal and a second terminal, and all of the first terminals of the three or more magnetic detectors are electrically coupled at one point.