Short answer
In the Hanafi view taught by Mufti Taqi Usmani and many Deobandi muftis, vanilla extract used in small amounts in cooking is permissible, because its alcohol is usually not from grapes or dates, it is used as a solvent, not drunk, and the food cannot intoxicate. Many scholars of the other schools advise avoiding it. Alcohol-free vanilla avoids the question.
Imam Abu Hanifa and Abu Yusuf held that alcohol not made from grapes or dates is haram only in an amount that intoxicates. The fatwa for drinks follows Imam Muhammad, that every intoxicating drink is haram in any amount, but Mufti Taqi Usmani and others allow, on the first view, such alcohol used in small amounts in food and medicine where it is not drunk and does not intoxicate.
Other madhhabs
- Shafi'i
- All intoxicating alcohol is khamr and impure, so many Shafi'i scholars advise against vanilla extract; some contemporary scholars allow the traces left in baked food.
- Maliki
- All intoxicating alcohol is khamr and impure, so vanilla extract is generally avoided.
- Hanbali
- All intoxicating alcohol is khamr, so vanilla extract is generally avoided, though some contemporary scholars allow negligible traces.
Explanation
Vanilla extract is made by soaking vanilla beans in alcohol and water. In the US, a product sold as pure vanilla extract must contain at least 35 percent alcohol. So the question is not whether it contains alcohol, but whether that alcohol makes it haram in food.
The Hanafi discussion turns on the source of the alcohol. Wine from grapes, and drinks from dates, are khamr: haram and impure in any amount. Alcohol from grain, corn, sugar cane or synthesis was treated by Imam Abu Hanifa and Abu Yusuf as haram only when consumed to the point of intoxication. Mufti Taqi Usmani explains that the alcohol in modern flavourings, medicines and extracts is almost never from grapes or dates, and that Muslims everywhere face it, so there is room to act on the view of Abu Hanifa for such products. The conditions are:
- it is not drunk as a drink;
- the amount used cannot intoxicate;
- it is not from grapes or dates.
A teaspoon in a cake meets these conditions. Drinking vanilla extract, or using it to get drunk, is haram on every view. The same reasoning covers small amounts of ethanol in other flavourings.
If you prefer to avoid the difference, use alcohol-free vanilla flavouring, vanilla powder, vanilla paste or the beans themselves. Check labels: some products called flavouring still use alcohol as a carrier. The halal food checker lists common ingredients, and why Muslims do not drink alcohol explains the basic ruling.
The evidence
Quran, Surah Al-Maaida 5:90
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ إِنَّمَا ٱلْخَمْرُ وَٱلْمَيْسِرُ وَٱلْأَنصَابُ وَٱلْأَزْلَٰمُ رِجْسٌۭ مِّنْ عَمَلِ ٱلشَّيْطَٰنِ فَٱجْتَنِبُوهُ لَعَلَّكُمْ تُفْلِحُونَ ﴿٩٠﴾
O you who have believed, indeed, intoxicants, gambling, [sacrificing on] stone alters [to other than Allah], and divining arrows are but defilement from the work of Satan, so avoid it that you may be successful.
The basic prohibition of intoxicants.
Sahih Muslim 2003
Sahih... كل مسكر خمر وكل مسكر حرام ...
"Every intoxicant is khamr, and every intoxicant is forbidden."
The basis of the fatwa that every intoxicating drink is haram.
Sunan Abi Dawud 3681
Graded hasan sahih... ما أسكر كثيره فقليله حرام ...
"Whatever intoxicates in a large amount, a small amount of it is forbidden."
Why drinking even a little of an intoxicating drink is haram; the scholars who allow vanilla extract apply it to drinks, not to a flavouring used in food.
Where the ruling is recorded
- Takmila Fath al-Mulhim (Mufti Taqi Usmani), Kitab al-Ashriba. Discussion of alcohol in modern medicines and food products and the view of Abu Hanifa.
- al-Hidaya, Kitab al-Ashriba. The difference between khamr and other intoxicating drinks.
This answer is pending review by the scholars on our team. 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.