Background Pain is undertreated in older populations. At the same time, increased use of opioids is of concern in the Western world. Aims We sought to analyze temporal trends in musculoskeletal pain and prescribed analgesic treatment among communitydwelling people aged 75-95 years using cross-sectional cohort data spanning 20 years. Methods The Helsinki Aging Study recruited random samples of people aged 75, 80, 85, 90, and 95 years in 1999, 2009, and 2019. In total, 5707 community-dwelling persons participated in the study. The participants reported their medical diagnoses, regular prescription medications, and the presence of back pain or joint pain within the last 2 weeks (never, sometimes, or daily). We compared analgesic use among participants reporting and not reporting musculoskeletal pain in 1999, 2009, and 2019. Results Of the participants, 57-61% reported intermittent or daily musculoskeletal pain. The percentage receiving a prescribed daily analgesic increased from 9% in 1999 to 16% in 2019. The use of non-steroidal anti-inflammatory drugs (NSAIDs) decreased from 1999 to 2019, while the use of paracetamol increased from 2 to 11%. Opioids were taken by 2% in 1999 and 3% in 2019. Of those reporting daily musculoskeletal pain, 20%, 35%, and 32% received regular pain medication in 1999, 2009, and 2019, respectively. Conclusions Pain remains undertreated in the community-dwelling older population, although the use of regular prescribed analgesics increased between 1999 and 2019. The use of NSAIDs has decreased, while the use of paracetamol has increased. Daily opioid use has remained modest.