Abstract: The invention relates to a method and apparatus for controlling the pH in a continuous flow vessel into which process material is fed through a feed channel and controlling chemical solution is fed through a control channel and in which the pH is measured at an output part of the vessel in order to effect the control by controlling the control chemical feed according to the feedback method, the value of a reference variable being given by a pH number.