A surgery may be advised by the doctor if your body mass index (BMI) is 35 or higher and you have risk factors, or your BMI is 40 or higher with no risk factors.