12106 Background: Pain represents a common health issue among patients with cancer. Uncontrolled pain significantly impairs the quality of life, resulting in increased healthcare utilization and costs. We examined the patterns of pain medication prescriptions among patients with cancer pain in the outpatient setting. Methods: We used the National Ambulatory Medical Care Survey (NAMCS), an annually administered survey designed to collect data regarding the use of ambulatory medical services from office-based physicians in the United States. We analyzed NAMCS data from 2005 to 2019 for all types of cancers visits. The primary outcome was prescription of pain medications among patients with cancer pain. We performed multivariate logistic regression to identify factors associated with opioid and non-opioid prescription among patients with cancer pain. Results: We captured a total of 520.8 million outpatient visits from 2005-2019. Breast cancer (18.7%) followed by cancer of the male genital tract (11.0%) represented the highest proportion of patient visits. 4.8% of cancer patients reported pain. Majority (60%) complaining of pain did not receive any pain medications. 14.9% received opioids and 25.1% received nonsteroidal anti-inflammatory drugs, acetaminophen, or adjuvant pain medications. The odds of receiving opioids were 3.4 times higher among 45-65 years vs patients over 75 years. African-Americans had 84% higher odds of receiving opioid prescription compared to white patients. The odds of receiving opioids were 61% lower for privately insured vs patients on Medicare. Patients visiting oncologic care had 2.1 times higher odds of receiving opioids compared to primary care (Table). Conclusions: This is one of the largest drug utilization studies among patients with cancer in outpatient setting, covering half a billion patient visits. A significant proportion of outpatients with cancer who reported pain did not receive a prescription for analgesics suggesting a possibility of undertreatment of pain. Within the limitation of this dataset, undertreatment of pain in outpatients with cancer remains a major unmet patient need. [Table: see text]