Short answer
No, when it is medically needed. Bariatric surgery to treat obesity that harms your health, recommended by a qualified doctor after other options, is permitted as treatment. Having it purely for looks when your weight is not a health risk, given its real surgical risks, is not allowed in the Hanafi view. Discuss the risks fully and ask a mufti about your case.
Surgery is permitted as treatment when the expected benefit outweighs the harm. Weight loss surgery for medically significant obesity falls under this. Surgery with real risk, done without medical need for beauty alone, is not permitted.
The four schools agree on this.
Explanation
Your body is a trust. The Prophet ﷺ said that the son of Adam fills no vessel worse than his stomach, and that a third should be for food, a third for drink and a third for air. He also said your body has a right over you. Obesity linked to diabetes, heart disease, sleep apnoea and joint damage is a health problem, and treating it is part of fulfilling that right.
When it is allowed. Gastric sleeve, gastric bypass, a gastric band or a balloon are recognised treatments for serious obesity. If a qualified doctor recommends one after diet, exercise and medicine have not been enough, having it is permitted, just like other surgery for a health need. Scholars apply the general rule that treatment is allowed when its benefit outweighs its harm.
When it is not. Major surgery carries real risk. Having it without medical need, only to look slimmer, comes under the warning against throwing yourself into harm and against altering the body for beauty alone. For injections, see Ozempic and weight loss injections; for cosmetic procedures such as liposuction, see cosmetic surgery.
Things to think about:
- the change in eating habits is lifelong, so plan your suhoor and iftar with your care team before Ramadan
- ask about vitamin supplements and whether the capsules contain gelatin (see gelatin in medicine)
- choose a properly accredited surgeon; avoid cheap packages abroad that skip follow-up
Follow a qualified doctor's assessment, and ask a mufti if your situation is borderline.
Ask a mufti about your own case. This answer explains the general ruling. When the details of your situation matter, as they do here, ask a qualified mufti and give them the full facts. Where to ask a scholar.
The evidence
Quran, Surah Al-A'raaf 7:31
۞ يَٰبَنِىٓ ءَادَمَ خُذُوا۟ زِينَتَكُمْ عِندَ كُلِّ مَسْجِدٍۢ وَكُلُوا۟ وَٱشْرَبُوا۟ وَلَا تُسْرِفُوٓا۟ ۚ إِنَّهُۥ لَا يُحِبُّ ٱلْمُسْرِفِينَ ﴿٣١﴾
O children of Adam, take your adornment at every masjid, and eat and drink, but be not excessive. Indeed, He likes not those who commit excess.
Moderation in eating is commanded.
Quran, Surah Al-Baqara 2:195
وَأَنفِقُوا۟ فِى سَبِيلِ ٱللَّهِ وَلَا تُلْقُوا۟ بِأَيْدِيكُمْ إِلَى ٱلتَّهْلُكَةِ ۛ وَأَحْسِنُوٓا۟ ۛ إِنَّ ٱللَّهَ يُحِبُّ ٱلْمُحْسِنِينَ ﴿١٩٥﴾
And spend in the way of Allah and do not throw [yourselves] with your [own] hands into destruction [by refraining]. And do good; indeed, Allah loves the doers of good.
Surgical risk is acceptable only for a real benefit.
Jami' at-Tirmidhi 2380
Grading to be checked... ما ملأ آدمي وعاء شرا من بطن ...
"The son of Adam fills no vessel worse than his stomach."
Overeating harms the body, and treating its effects is good.
Sahih al-Bukhari 1975
Sahih... فإن لجسدك عليك حقا ...
"Your body has a right over you."
Caring for your health is a duty.
Where the ruling is recorded
- al-Fatawa al-Hindiyya, Kitab al-Karahiyya, chapter on treatment. Surgery and incisions for treatment are permitted when safety is likely.
Checked by our team. For a more accurate answer to your own situation, consult a scholar. Quran translation by Sahih International. Hadith Arabic from the standard editions of the six books and the Muwatta, with gradings as recorded there; the English is our own rendering. Spotted a mistake? Tell us.