Question: Can one use toothpaste while fasting?
Answer: Using toothpaste while fasting is neither ḥarām nor forbidden, but without real necessity it is certainly makrūh (disliked).
This applies only if one is completely sure that no particles of the toothpaste go down the throat. Since it is very likely that this can happen, one should preferably avoid it. (Fatāwā Ahl as-Sunnah, p. 13).