A system and method for adjusting insulin infusion volume based on air in an infusion set tube includes inputting at least one location and length of an air bubble along the infusion set tube. An air bubble volume is determined in the infusion set tube. An insulin infusion volume is determined based on a desired insulin infusion. A determination is then made whether the desired insulin infusion would include the air bubble volume based on the inputted location and length of the air bubble. The air bubble volume is added to the insulin infusion volume to make an adjusted insulin infusion volume if the insulin infusion volume includes the air bubble.