Method for determining a liquid portion of a flowing medium with a nuclear magnetic flowmeter, wherein the nuclear magnetic flowmeter comprises a measuring tube with a measuring volume, a measuring device and a magnetizing device, wherein the medium is made to flow through the measuring tube and has a liquid portion and a gaseous portion, wherein a magnetic field is generated along a magnetic field direction in the measuring volume by the magnetizing device and the medium is magnetized by the magnetic field, wherein, in a gradient step, a gradient magnetic field with a strength gradient along a first gradient direction is generated in the measuring volume by the magnetizing device and the medium is exposed to the gradient magnetic field in addition to the magnetic field, wherein the following measurement steps are carried out by the measuring device: - generating and irradiating an excitation signal into the magnetized medium having at least one excitation pulse (14, 19, 22) in the measuring volume for exciting nuclear magnetic resonances in the magnetized medium along the first gradient direction, - measuring nuclear magnetic resonances excited by the excitation signal in the magnetized medium along the first gradient direction in the measuring volume as a measuring signal, - determining frequencies of the nuclear magnetic resonances in the measuring signal along the first gradient direction, wherein the following evaluation steps are then carried out by the measuring device: - assigning the determined frequencies to positions along the first gradient direction, - assigning the nuclear magnetic resonances at the positions to the liquid portion and to the gaseous portion of the medium, characterized in that the following evaluation step is carried out by the measuring device: - determining a liquid portion of the flowing medium in the measuring volume from the positions of the nuclear magnetic resonances of the liquid portion and the positions of the nuclear magnetic resonances of the gaseous portion of the medium, and that a bandwidth for the at least one excitation pulse (14, 19, 22) based on a homogeneity of the magnetic field and a strength of the strength gradient of the gradient magnetic field is determined by the magnetizing device. wherein the nuclear magnetic flowmeter comprises a measuring tube with a measuring volume, a measuring device and a magnetizing device, wherein the medium is made to flow through the measuring tube and has a liquid portion and a gaseous portion, wherein a magnetic field is generated along a magnetic field direction in the measuring volume by the magnetizing device and the medium is magnetized by the magnetic field, wherein, in a gradient step, a gradient magnetic field with a strength gradient along a first gradient direction is generated in the measuring volume by the magnetizing device and the medium is exposed to the gradient magnetic field in addition to the magnetic field, wherein the following measurement steps are carried out by the measuring device: - generating and irradiating an excitation signal into the magnetized medium having at least one excitation pulse (14, 19, 22) in the measuring volume for exciting nuclear magnetic resonances in the magnetized medium along the first gradient direction, - measuring nuclear magnetic resonances excited by the excitation signal in the magnetized medium along the first gradient direction in the measuring volume as a measuring signal, - determining frequencies of the nuclear magnetic resonances in the measuring signal along the first gradient direction, - generating and irradiating an excitation signal into the magnetized medium having at least one excitation pulse (14, 19, 22) in the measuring volume for exciting nuclear magnetic resonances in the magnetized medium along the first gradient direction, - measuring nuclear magnetic resonances excited by the excitation signal in the magnetized medium along the first gradient direction in the measuring volume as a measuring signal, - determining frequencies of the nuclear magnetic resonances in the measuring signal along the first gradient direction, wherein the following evaluation steps are then carried out by the measuring device: - assigning the determined frequencies to positions along the first gradient direction, - assigning the nuclear magnetic resonances at the positions to the liquid portion and to the gaseous portion of the medium, - assigning the determined frequencies to positions along the first gradient direction, - assigning the nuclear magnetic resonances at the positions to the liquid portion and to the gaseous portion of the medium, characterized in that the following evaluation step is carried out by the measuring device: - determining a liquid portion of the flowing medium in the measuring volume from the positions of the nuclear magnetic resonances of the liquid portion and the positions of the nuclear magnetic resonances of the gaseous portion of the medium, and - determining a liquid portion of the flowing medium in the measuring volume from the positions of the nuclear magnetic resonances of the liquid portion and the positions of the nuclear magnetic resonances of the gaseous portion of the medium, and that a bandwidth for the at least one excitation pulse (14, 19, 22) based on a homogeneity of the magnetic field and a strength of the strength gradient of the gradient magnetic field is determined by the magnetizing device.