Individual genetic variation may influence clinical effects for pain medications. Effects of CYP2C9, CYP3A4, and CYP2D6 polymorphisms on clinical effectiveness and safety for ibuprofen and oxycodone were studied. Primary objectives were to AU2 evaluate if allelic variations would affect clinical effectiveness and adverse events (AEs) occurrence. This pragmatic prospective, observational cohort included children aged 4 to 16 years who were seen in a pediatric emergency department with an acute fracture and prescribed ibuprofen or oxycodone for at-home pain management. Saliva samples were obtained for genotyping of allelic variants, and daily telephone follow-up was conducted for 3 days. Pain was measured using the Faces Pain Scale-Revised. We included 210 children (n = 140 ibuprofen and n = 70 oxycodone); mean age was 11.1 (±SD 3.5) years, 33.8% were female. Median pain reduction on day 1 was similar between groups [ibuprofen 4 (IQR 2,4) and oxycodone 4 (IQR 2,6), P = 0.69]. Over the 3 days, the oxycodone group experienced more AE than the ibuprofen group (78.3% vs 53.2%, P < 0.001). Those with a CYP2C9*2 reduced function allele experienced less adverse events with ibuprofen compared with those with a normal functioning allele CYP2C9*1 (P = 0.003). Neither CYP3A4 variants nor CYP2D6 phenotype classification affected clinical effect or AE. Although pain relief was similar, children receiving oxycodone experienced more AE, overall, than those receiving ibuprofen. For children receiving ibuprofen or oxycodone, pain relief was not affected by genetic variations in CYP2C9 or CYP3A4/CYP2D6, respectively. For children receiving ibuprofen, the presence of CYP2C9*2 was associated with less adverse events.