A humidifier should be far enough away so that if it falls over or the baby reaches for it, they can't hurt themselves with scalding water. At least 6 feet away is a good guideline, but consider your child's activities and make sure it's not within grabbing distance.