Typically, pediatricians can treat the ages from infancy all the way to about 18-21 years old. After your child has become a young adult, they can transition into seeking care from a general physician or family doctor.