Muscular dystrophies and myotonic disorders are genetic disorders characterized by progressive skeletal muscle degeneration and weakness. Epidemiologic studies have found an increased cancer risk in myotonic dystrophy, although the cancer risk spectrum is poorly characterized. In patients with muscular dystrophy, the cancer risk is uncertain. We aimed to determine the overall cancer risk and cancer risk spectrum in patients with muscular dystrophy and myotonic dystrophy using data from the Swedish National registers. We performed a matched cohort study in all patients with muscular dystrophy or myotonic dystrophy born in Sweden 1950-2017 and 50 matched comparisons by sex, year of birth, and birth county per individual. The association with cancer overall and specific malignancies was estimated using stratified Cox proportional hazard models. We identified 2,355 and 1,968 individuals with muscular dystrophy and myotonic dystrophy, respectively. No increased overall cancer risk was found in muscular dystrophy. However, we observed an increased risk of astrocytomas and other gliomas during childhood (hazard ratio [HR] 8.70, 95% CI 3.57-21.20) and nonthyroid endocrine cancer (HR 2.35, 95% CI 1.03-5.34) and pancreatic cancer (HR 4.33, 95% CI 1.55-12.11) in adulthood. In myotonic dystrophy, we found an increased risk of pediatric brain tumors (HR 3.23, 95% CI 1.16-9.01) and an increased overall cancer risk in adults (HR 2.26, CI 1.92.2.66), specifically brain tumors (HR 10.44, 95% CI 7.30-14.95), thyroid (HR 3.92, 95% CI 1.70-9.03), and nonthyroid endocrine cancer (HR 7.49, 95% CI 4.47-12.56), endometrial (HR 8.32, 95% CI 4.22-16.40), ovarian (HR 4.00, 95% CI 1.60-10.01), and nonmelanoma skin cancer (HR 3.27, 95% CI 1.32-8.13). Here, we analyze the cancer risk spectrum of patients with muscular dystrophy and myotonic dystrophy. To the best of our knowledge, this is the first report of an increased risk for CNS tumors in childhood and adult nonthyroid endocrine and pancreatic cancer in muscular dystrophy. Furthermore, for myotonic dystrophy, we confirmed previously reported associations with cancer and expanded the cancer spectrum, finding an unreported increased risk for nonthyroid endocrine cancer. Additional studies confirming the cancer risk and delineating the cancer spectrum in different genetic subtypes of muscular dystrophies are warranted before considering altered cancer screening recommendations than for the general population.