JEE Main rank is calculated based on the score obtained by the candidate in the exam. The rank is determined on the basis of the normalized score, which takes into account the difficulty level of the exams conducted in different sessions.