No, Mathematics is not compulsory for the Indian Foreign Service (IFS) exam. However, It is an optional subject for the UPSC Civil Services Examination, including the IFS exam.