How a container number is built
Every shipping container carries an 11-character number defined by ISO 6346, for example CSQU 305438 3:
- Owner code (3 letters, CSQ): the registered owner or operator.
- Category (1 letter, U): U freight container, J detachable equipment, Z trailer or chassis.
- Serial number (6 digits, 305438): assigned by the owner.
- Check digit (1 digit, 3): calculated from the first 10 characters.
Worked example: CSQU305438
Letter values are C = 13, S = 30, Q = 28 and U = 32. Multiply each of the 10 values by 1, 2, 4, 8, 16, 32, 64, 128, 256 and 512: 13 + 60 + 112 + 256 + 48 + 0 + 320 + 512 + 768 + 4096 = 6185. 6185 divided by 11 leaves a remainder of 3, so the check digit is 3 and the full number is CSQU3054383.
Why it matters
Container numbers are retyped many times: from the booking to the bill of lading, the customs declaration, the trucking order and the tracking system. One wrong character means tracking returns nothing, documents do not match at the port, and demurrage can start while the team searches for the box. Validating the check digit at data entry catches most of these errors immediately.
Frequently asked questions
What is a container number check digit?
It is the 11th character of a container number. It is calculated from the first 10 characters with the ISO 6346 method, so a single mistyped letter or digit, or two swapped digits, almost always produces a different check digit and the number fails validation.
How is the ISO 6346 check digit calculated?
Each letter gets a value from 10 to 38, skipping 11, 22 and 33 (A = 10, B = 12, C = 13 and so on), and each digit keeps its own value. Multiply the value in position 1 to 10 by 1, 2, 4, 8 and so on up to 512, add the results, take the remainder after dividing by 11, and use 0 if that remainder is 10.
What does the fourth letter (U, J or Z) mean?
It is the equipment category: U for a freight container, J for detachable freight container equipment such as a clip-on generator set, and Z for a trailer or chassis. Almost every shipping container number has U in the fourth position.
Does a valid check digit mean the container exists?
No. It only proves the number is well formed. The container still has to exist in the fleet of the owner and be assigned to your booking. Compare the number with the bill of lading or booking confirmation, and with the number painted on the container at pickup.
Why does the owner code matter?
The first three letters identify the container owner or operator, which is registered with the international container bureau (BIC). Carriers use it to route tracking queries, so a wrong owner code sends a tracking request to the wrong carrier.