Short answer
No. Wine and beer are intoxicating drinks, and food made with them is haram even if some alcohol cooks off, because the drink itself is forbidden and not all of the alcohol leaves. This includes beer-battered fish, wine sauces, and tiramisu or desserts made with marsala, rum or liqueur. The four schools agree.
Wine from grapes is khamr: haram in any amount and a heavy impurity, so food it touches becomes impure. Beer and spirits are haram to drink in any amount on the fatwa position, and deliberately adding them to food is not allowed.
The four schools agree on this.
Explanation
The four schools agree that a Muslim may not drink wine, beer or spirits, and may not cook with them. People often assume that cooking burns off the alcohol. Studies of home cooking show that a good share can remain, depending on the method and time, and in any case the drink was poured into the food on purpose.
Common dishes to watch for:
- beer-battered fish, onion rings and fries
- sauces deglazed with wine, coq au vin, beef bourguignon, risotto with white wine
- tiramisu with marsala or rum, rum cake, liqueur chocolates, sherry trifle
- Asian dishes with mirin, sake or Shaoxing wine
- beer bread and stews with ale or stout
In a restaurant, ask whether the batter or sauce contains beer or wine. Cooking wine sold in supermarkets is still wine. Pans and utensils used for a wine dish should be washed before you use them for your food.
This is different from small amounts of non-grape alcohol used as a solvent in flavourings, which some Hanafi scholars allow (see vanilla extract), and from vinegar, which is halal even when made from wine (see balsamic vinegar). For the reasons behind the ban, read why Muslims do not drink alcohol.
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.
Intoxicants are to be avoided entirely.
Quran, Surah Al-Baqara 2:219
۞ يَسْـَٔلُونَكَ عَنِ ٱلْخَمْرِ وَٱلْمَيْسِرِ ۖ قُلْ فِيهِمَآ إِثْمٌۭ كَبِيرٌۭ وَمَنَٰفِعُ لِلنَّاسِ وَإِثْمُهُمَآ أَكْبَرُ مِن نَّفْعِهِمَا ۗ وَيَسْـَٔلُونَكَ مَاذَا يُنفِقُونَ قُلِ ٱلْعَفْوَ ۗ كَذَٰلِكَ يُبَيِّنُ ٱللَّهُ لَكُمُ ٱلْءَايَٰتِ لَعَلَّكُمْ تَتَفَكَّرُونَ ﴿٢١٩﴾
They ask you about wine and gambling. Say, "In them is great sin and [yet, some] benefit for people. But their sin is greater than their benefit." And they ask you what they should spend. Say, "The excess [beyond needs]." Thus Allah makes clear to you the verses [of revelation] that you might give thought.
The harm of wine outweighs any benefit it has.
Sunan Abi Dawud 3674
Graded sahih... لعن الله الخمر وشاربها وساقيها ...
"Allah has cursed wine, the one who drinks it and the one who serves it."
Shows how serious it is to drink or pass on wine in any form.
Sahih Muslim 2003
Sahih... كل مسكر خمر وكل مسكر حرام ...
"Every intoxicant is khamr, and every intoxicant is forbidden."
Beer and spirits take the ruling of wine.
Where the ruling is recorded
- al-Hidaya, Kitab al-Ashriba. Wine is impure and haram in any amount; cooking does not make it lawful.
- Radd al-Muhtar (Ibn Abidin), Kitab al-Ashriba. Rulings on food mixed with 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.