If you or your child has lost a lot of fluid because of diarrhea or vomiting, you may need 4–8 servings (32 to 64 ounces) of Pedialyte a day to prevent dehydration. Talk with your doctor if vomiting, diarrhea, or fever lasts for more than 24 hours.