Track ID

USPS (mod 10, weights 3 and 1) check digit

USPS 22 and 26 digit tracking numbers (Intelligent Mail package barcodes) end in a mod 10 check digit, the same family used in many barcodes.

How to calculate it

  1. Take every digit except the last one.
  2. Starting from the right, multiply the digits by 3, 1, 3, 1 and so on.
  3. Add the results.
  4. The check digit is what you add to reach the next multiple of 10 (0 if the total already is one).

Example with a made-up number: for 940010000000000000000 the only non-zero digits get weights 3, 1 and 3: 9 × 3 + 4 × 1 + 1 × 3 = 34, so the check digit is 6 and the full number is 9400100000000000000006.

Try it

Type the number without its last digit.