A method and device for analyzing a gait of a person includes a magnetometer for fastening to a tibial segment of the person, in order to generate a signal representative of at least one projection onto a sagittal plane of an ambient magnetic field in which the magnetometer is immersed and a signal processor to identify instants and/or phases that are characteristic of the gait of the person by identifying particular points in the signal generated by the magnetometer as a function of time.