You can take most vitamins while fasting. However, if your vitamins need to be taken with food, you should wait until your eating periods to take them. Some vitamins, like iron supplements, can cause nausea if not taken with food.