The invention relates to a circuit for metering fuel (1) for a turbomachine, comprising: - a fuel metering element (20), – a pump (10) designed to pump a flow of fuel to the metering element, and – a control valve (30) designed to return, toward the pump, an excess flow of fuel delivered to the metering element as a function of a fuel pressure difference at the terminals of the metering element, characterized in that the control valve is designed to modulate the excess flow returned toward the pump as a function of variations in the density of the fuel delivered to the metering element. The invention also relates to a turbomachine comprising such a circuit.