The effect of CKD on the risks of bariatric surgery is not well understood. Using the American College of Surgeons National Surgical Quality Improvement Program Participant Use File, we analyzed 27,736 patients who underwent bariatric surgery from 2006 through 2008. Before surgery, 34 (0.12%) patients were undergoing long-term dialysis. Among those not undergoing dialysis, 20,806 patients (75.0%) had a normal estimated GFR or stage 1 CKD, 5011 (18.07%) had stage 2 CKD, 1734 (6.25%) had stage 3 CKD, 94 (0.34%) had stage 4 CKD, and 91 (0.33%) had stage 5 CKD. In an unadjusted analysis, CKD stage was directly associated with complication rate, ranging from 4.6% for those with stage 1 CKD or normal estimated GFR to 9.9% for those with stage 5 CKD (test for trend, P<0.001). Multivariable logistic regression demonstrated that CKD stage predicts higher complication rates (odds ratio for each higher CKD stage, 1.30) after adjustment for diabetes and hypertension. Although patients with higher CKD stage had higher complication rates, the absolute incidence of complications remained <10%. In conclusion, these data demonstrate higher risks of bariatric surgery among patients with worse renal function, but whether the potential benefits outweigh the risks in this population requires further study.