A magnetoresistive element according to an example of the present invention has a stacked structure comprised first and second ferromagnetic layers and a nonmagnetic layer disposed between these ferromagnetic layers, and a planar shape of at least one of the first and second ferromagnetic layers has a shape formed by combining two or more parts each having a shape of a character C.