IMPORTANCE Cognitive impairment in multiple sclerosis (MS) can lead to reduced quality of life, social functioning, and employment. Few studies have investigated cognitive outcomes among patients with pediatric-onset MS (POMS) over the long term. OBJECTIVE To compare long-term information-processing efficiency between patients with POMS and adult-onset MS (AOMS). DESIGN, SETTING, AND PARTICIPANTS This population-based longitudinal cohort study accessed the Swedish MS Registry (SMSreg), which collates information from all 64 neurology clinics in Sweden. Registered cases with definite MS in the SMSreg with an onset before April 15, 2018, and at least 2 Symbol Digit Modalities Test (SDMT) scores recorded were included. Only persons aged 18 to 55 years and with duration of disease of less than 30 years at the time of SDMT administration were included, to ensure comparable ranges between patients with POMS and AOMS. Of 8247 persons with an SDMT recorded in the SMSreg, 5704 met inclusion criteria, 300 (5.