A method for calibrating at least one magnetometer , the method being characterised in that it comprises the following steps of: E1: placing at least one magnetometer inside a generator of a magnetic field, said generator comprising a plurality of windings ; E2: generating a magnetic field in the generator by applying electric currents to the different windings ; E3: measuring the magnetic field generated in the generator with said at least one magnetometer , and measuring the electric currents applied to the windings of the generator ; E4: repeating step E3 by changing each time a position of said at least one magnetometer inside the generator and/or the electric currents in the windings of the generator so as to obtain measurements of the magnetic field and the electric currents applied to the windings for a plurality of positions of said at least one magnetometer and/or of electric currents in the windings ; E40: calculating a transfer model measured between the measurement of the magnetic field by the at least one magnetometer and the electric currents applied to the windings for the different positions of said at least one magnetometer and/or different electric currents in the windings , from measurements of said magnetic field, on the one hand, and measurements of said electric currents applied to the windings , on the other hand; E5: generating a parametric transfer model from a parametric measurement model of said at least one magnetometer and a parametric model of the magnetic field, the parametric measurement model of said at least one magnetometer comprising parameters for calibrating said at least one magnetometer ; E6: calculating the parameters for calibrating the at least one magnetometer with an optimisation algorithm from the parametric transfer model generated in step E5, measured transfer models calculated in step E40, and the measurements of the magnetic field and electric currents performed in steps E3 and E4. E1: placing at least one magnetometer inside a generator of a magnetic field, said generator comprising a plurality of windings ; E2: generating a magnetic field in the generator by applying electric currents to the different windings ; E3: measuring the magnetic field generated in the generator with said at least one magnetometer , and measuring the electric currents applied to the windings of the generator ; E4: repeating step E3 by changing each time a position of said at least one magnetometer inside the generator and/or the electric currents in the windings of the generator so as to obtain measurements of the magnetic field and the electric currents applied to the windings for a plurality of positions of said at least one magnetometer and/or of electric currents in the windings ; E40: calculating a transfer model measured between the measurement of the magnetic field by the at least one magnetometer and the electric currents applied to the windings for the different positions of said at least one magnetometer and/or different electric currents in the windings , from measurements of said magnetic field, on the one hand, and measurements of said electric currents applied to the windings , on the other hand; E5: generating a parametric transfer model from a parametric measurement model of said at least one magnetometer and a parametric model of the magnetic field, the parametric measurement model of said at least one magnetometer comprising parameters for calibrating said at least one magnetometer ; E6: calculating the parameters for calibrating the at least one magnetometer with an optimisation algorithm from the parametric transfer model generated in step E5, measured transfer models calculated in step E40, and the measurements of the magnetic field and electric currents performed in steps E3 and E4. <EOS>