A method that includes pumping medical fluid out of or drawing medical fluid into a chamber of a medical fluid cassette, calculating a theoretical volume of fluid pumped out of or drawn into the chamber, and multiplying the theoretical volume of fluid pumped out of or drawn into the chamber by a correction factor to determine a corrected volume of fluid pumped out of or drawn into the chamber.