The ruling on using toothpaste during the day while fasting:
Question:
Is it permissible for a fasting person to use toothpaste during the day in Ramadan while fasting?
Fatwa:
There is no harm in it, provided that care is taken not to swallow it. Just as it is permissible for a fasting person to use the siwak in the early and the late part of the day, in the same way it is also permissible to use toothpaste or tooth powder and the like. Some scholars have declared using the siwak after the sun passes its zenith to be disliked, but this is a weaker opinion, and the correct view is that using the siwak at any time is not disliked, because the generality of the statement of the Prophet ﷺ requires this:
السواك مطهرة للفم ومرضاة للرب
“The siwak is a means of cleansing and purifying the mouth and of pleasing the Lord.”
Likewise, the Messenger of Allah ﷺ also said:
لولا أن أشق على أمتي لأمرتهم بالسواك مع كل صلاة
“Were it not that I would be placing a hardship on my ummah, I would have commanded them to use the siwak with every prayer.”
“Every prayer” includes Zuhr and Asr as well, and these are after the sun passes its zenith. (So it is known that using the siwak after the sun passes its zenith is also not disliked.)