All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
The ruling on taking the medicine that contains alcohol depends on the quality of alcohol and the method of adding it. If the alcohol causes drunkenness if one was to drink much of it then it is an intoxicant and it is impure according to the view of the majority of the scholars .
On the other hand, if alcohol is added to the medicine, then it is one of the two following cases:
1- Alcohol is transformed into another matter by it being treated before adding it to the medicine; in this case, it is permissible to use this medicine, because if an impurity is transformed (into another substance) its ruling changes, as we clarified in Fataawa 87607 and 86026.
2- Alcohol is added – as it is – to the medicine: in this case, it is not permissible to use that medicine, because it became impure by adding alcohol to it. If an impurity falls into food, the food is ruled to be impure even if it is much food according to our view in Islamweb.
Allaah Knows best.