IntroductionGestational diabetes mellitus (GDM) is one of the most common medical complications of pregnancy. Glycaemic control decreases the risk of adverse pregnancy outcomes for the affected pregnant individual and the infant exposed in utero. One in four individuals with GDM will require pharmacotherapy to achieve glycaemic control. Injectable insulin has been the mainstay of pharmacotherapy. Oral metformin is an alternative option increasingly used in clinical practice. Both insulin and metformin reduce the risk of adverse pregnancy outcomes, but comparative effectiveness data from a well-characterised, adequately powered study of a diverse US population remain lacking. Because metformin crosses the placenta, long-term safety data, in particular, the risk of childhood obesity, from exposed children are also needed. In addition, the patient-reported experiences of individuals with GDM requiring pharmacotherapy remain to be characterised, including barriers to and facilitators of metformin versus insulin use.Methods and analysisIn a two-arm open-label, pragmatic comparative effectiveness randomised controlled trial, we will determine if metformin is not inferior to insulin in reducing adverse pregnancy outcomes, is comparably safe for exposed individuals and children, and if patient-reported factors, including facilitators of and barriers to use, differ between metformin and insulin. We plan to recruit 1572 pregnant individuals with GDM who need pharmacotherapy at 20 US sites using consistent diagnostic and treatment criteria for oral metformin versus injectable insulin and follow them and their children through delivery to 2 years post partum. More information is available atwww.decidestudy.org.Ethics and disseminationThe Institutional Review Board at The Ohio State University approved this study (IRB: 2024H0193; date: 7 December 2024). We plan to submit manuscripts describing the results of each study aim, including the pregnancy outcomes, the 2-year follow-up outcomes, and mixed-methods assessment of patient experiences for publication in peer-reviewed journals and presentations at international scientific meetings.Trial registration numberNCT06445946.