UPS 1Z (mod 10) check digit
UPS tracking numbers start with 1Z and end in a check digit calculated from the fifteen characters in between, letters included.
How to calculate it
Take the UPS sample number 1Z999AA10123456784. The fifteen characters after 1Z are 999AA1012345678.
- Turn letters into digits: A becomes 2, B 3, and so on, counting round in tens (letter code minus 63, last digit). So
A→ 2. - Now the digits are
9 9 9 2 2 1 0 1 2 3 4 5 6 7 8. - Add the digits in odd positions (1st, 3rd, …): 9 + 9 + 2 + 0 + 2 + 4 + 6 + 8 = 40.
- Add the digits in even positions and double them: (9 + 2 + 1 + 1 + 3 + 5 + 7) × 2 = 56.
- Total 96. The check digit is what you add to reach the next multiple of 10: 4.
Try it
Type the fifteen characters after 1Z.