A magnetic sensor according to an embodiment includes: a magneto-resistive film including a laminate structure, the laminate structure including a first magnetic layer, a second magnetic layer, and an intermediate layer arranged between the first magnetic layer and the second magnetic layer; and a pair of electrodes for supplying current in a first direction perpendicular to a laminate direction of the magneto-resistive film, wherein the second magnetic layer includes an amorphous magnetic layer, and a crystalline magnetic layer arranged between the amorphous magnetic layer and the intermediate layer, and a length of a current path of the magneto-resistive film is 10 μm or more.