The invention relates to a dialysis machine having improved flow balance. In particular, the invention monitors the pressure of blood entering and leaving a patient's body using several sensors 37, 39 and adapts the pressure of a dialysate solution feed to the dialysis machine to compensate for compliances in the fluid flow path. As a consequence, better flow balance is maintained throughout dialysis treatment leading to a more uniform removal of waste materials form the blood.