RationaleObesity hypoventilation syndrome (OHS) is often underdiagnosed, with significant morbidity and mortality. Bicarbonate, as a surrogate of arterial carbon dioxide, has been proposed as a screening tool for OHS. Understanding the predictors of serum bicarbonate could provide insights into risk factors for OHS. We hypothesized that the bicarbonate levels would increase with an increase in body mass index (BMI), since the prevalence of OHS increases with obesity.MethodsWe used the TriNetX Research Network, an electronic health record database with de-identified clinical data from participating healthcare organizations across the United States, to identify 93,320 adults without pulmonary or advanced renal diseases who had serum bicarbonate and BMI measurements within 6 months of each other between 2017 and 2022. We used linear regression analysis to examine the associations between bicarbonate and BMI, age, and their interactions for the entire cohort and stratified by sex. We also applied a non-linear machine learning algorithm (XGBoost) to examine the relative importance of age, BMI, sex, race/ethnicity, and obstructive sleep apnea (OSA) status on bicarbonate.ResultsThis cohort population was 56% women and 72% white and 80% non-Hispanic individuals, with an average (SD) age of 49.4 (17.9) years and a BMI of 29.1 (6.1) kg/m2. The mean bicarbonate was 24.8 (2.8) mmol/L, with higher levels in men (mean 25.2 mmol/L) than in women (mean 24.4 mmol/L). We found a small negative association between bicarbonate and BMI, with an expected change of −0.03 mmol/L in bicarbonate for each 1 kg/m2 increase in BMI (p < 0.001), in the entire cohort and both sexes. We found sex differences in the bicarbonate trajectory with age, with women exhibiting lower bicarbonate values than men until age 50, after which the bicarbonate levels were modestly higher. The non-linear machine learning algorithm similarly revealed that age and sex played larger roles in determining bicarbonate levels than the BMI or OSA status.ConclusionContrary to our hypothesis, BMI is not associated with elevated bicarbonate levels, and age modifies the impact of sex on bicarbonate.