The shiny coating on sweets, tablets and fruit comes from an insect resin
Shellac (E904) is doubtful (mushbooh) on our list, and qualified sources have not given one single answer. It is a resin that the female lac insect secretes on trees. One Muftionline answer in the Hanafi tradition states that "foods containing shellac are halaal". A UK-based food guide from 2012 said the question was "under investigation" and had not been settled.
Because the resin is a secretion and is separated from the insects during processing, many people are comfortable with it. Others avoid it, particularly if they follow a school that is stricter about insects. Our job is to show you the sources so you can follow the opinion that applies to you.
The general reference on shellac describes it as a resin secreted by the female lac bug (Kerria lacca) on trees in the forests of India and Thailand. The insects suck tree sap and excrete "sticklac" almost constantly, which forms tunnel-like tubes along branches. The resin is scraped from the bark, heated so that it liquefies and runs out, leaving the bark and insects behind, and then dried into flakes or "buttons".
Chemically it is mostly aleuritic, jalaric and shellolic acids with natural waxes. In food it is E904. It is used as a confectioner's glaze on sweets and pills (sometimes called a pharmaceutical glaze), as a wax-like coating on citrus fruit to extend shelf life, and as part of coatings that replace the natural wax removed from apples during cleaning.
A Muftionline answer in the Hanafi tradition concludes that "foods containing shellac are halaal". The answer does not discuss shellac in detail; it notes that its supporting texts deal with calf rennet, and it cites classical texts that treat parts of an animal that are not affected by life, such as hair, bone and horn, as pure. It does not apply that principle to shellac in so many words. Another Muftionline page, listed under Hanafi fiqh, only refers the questioner to that answer. The question itself mentions the argument that shellac might be treated like honey, which is also a secretion from an insect, but the answer does not evaluate that analogy.
The MuftiSays answer, published through IslamQA and dated July 2012, does not put E904 on its exception list but notes that "this E number is also under investigation", concerning whether lac insect secretions are pure (tahir) or impure (najis). It treated the question as open at the time of writing.
The core question is whether an insect secretion is pure and whether insects as a category are permitted food. Schools of Islamic law differ on insects in general: some treat most insects as impermissible to eat, while others (notably some Maliki scholars) take a more permissive view of certain insects. Shellac is not the insect itself, so the debate is about the purity of the secretion and about whether the process involves the animal's body. The Hanafi answer above treats the matter as permissible; readers who follow other schools should ask a scholar of their own school.
We do not claim any national halal authority has issued a ruling on E904 unless we have read it. If you have seen such a ruling, send it to us through the contact page.
| Product | How shellac is used |
|---|---|
| Glossy sweets, jelly beans, chocolate-coated nuts | Final polish or glaze; may be called confectioner's glaze |
| Tablets and capsules | Pharmaceutical glaze or enteric coating |
| Fresh citrus fruit and apples | Wax-like coating to extend storage |
| Coffee beans and cake decorations | Occasional glaze |
Fruit that is sold with a coating usually has a sign or label saying so. Washing and peeling fruit is a practical option if you prefer to avoid it.
Because shellac comes from an insect, it is not vegan, and many vegans avoid it. Vegetarian opinion varies, since the resin is a secretion and the insects are not eaten. Kosher authorities generally treat it according to their own rules, which differ from Islamic rules, so a kosher mark does not settle a halal question.
A short, polite email usually gets a useful reply. You can copy and adapt this:
Keep the reply. If the answer is vague, treat the product as doubtful and choose a certified alternative.
Islamic teaching on doubtful matters is the basis for how we label these ingredients. A well-known hadith, recorded in the collections of al-Bukhari and Muslim, says that the halal is clear and the haram is clear, and between them are doubtful matters that many people do not know about. Scholars generally draw two practical points from it. First, you are encouraged to avoid what you have real reason to doubt, as far as you reasonably can. Second, this is not a call to be anxious about every additive: where there is no real reason to doubt, most scholars do not ask you to investigate beyond what is reasonable.
That is why our "doubtful" label means check if you can, not assume it is forbidden. A halal logo, a clear source on the label, or a short email to the maker will usually settle the matter. If you follow a particular madhab or scholar, their guidance comes first.
| E-Code | Name | Status | Notes |
|---|---|---|---|
| E904 | Shellac | Doubtful | Resin secreted by the lac insect. One Hanafi answer says foods containing shellac are halal; a 2012 food guide listed it as under investigation. Practising Muslims follow their own scholar. Full guide → |
| E901 | Beeswax | Halal | Animal product. Not vegan. |
| E441 | Gelatine | Haram | Haram when from pork or from animals not slaughtered in the halal way. Halal from fish, plant-based alternatives, or certified halal sources. Scholars differ on whether transformation changes the ruling. Full guide → |
| E471 | Mono- and diglycerides of fatty acids | Doubtful | Source is not disclosed on labels and can be plant or animal. Full guide → |
| E422 | Glycerol (glycerine) | Doubtful | Plant or chemical glycerine is halal; animal-derived glycerine is not unless from halal-slaughtered animals, and some scholars are more lenient for external use. The source is rarely stated on labels. Full guide → |
| E920 | L-cysteine | Doubtful | Commonly made from animal feathers or hair, or by fermentation. Some scholars permit it whatever the source because it is transformed; others avoid animal or human-hair sources. Labels rarely say which. Full guide → |
One Hanafi answer says foods containing shellac are halal, while a 2012 food guide said the question was under investigation. We class it as doubtful and ask you to follow your own scholar.
It is a resin secreted by the female lac insect on trees in India and Thailand. It is scraped from the bark and heated so that the resin separates from the bark and the insects.
Yes, in most cases. Confectioner's glaze, pharmaceutical glaze and E904 refer to shellac-based coatings.
No. It comes from an insect, so vegans generally avoid it.
The same question applies. Ask your pharmacist for an uncoated or plant-coated version if you want to avoid shellac.
Type any E-code or ingredient name into Afiya AI's free checker and get an instant answer with an explanation.
✦ Open Free Halal CheckerThese are the pages we read for this guide. We summarise what each says; we do not claim these bodies endorse Afiya AI.