Check digit calculation

15th or the last number of the IMEI is a check digit calculated using the Luhn algorithm.

The Check Digit is calculated according to Luhn formula. The Check Digit is calculated of all other digits in the IMEI. The purpose of the Check Digit is to help guard against the possibility of incorrect entries to the CEIR and EIR equipment.

The check digit is validated in three steps:

Starting from the right, double a digit every two digits (e.g., 7 → 14).

Sum the digits (e.g., 14 → 1 + 4).

Check if the sum is divisible by 10.

Conversely, one can calculate the IMEI by choosing the check digit that would give a sum divisible by 10. For the example IMEI 35 780502 398494 ?