Skip to main content
Check Digit Calculator
GS1

GRAI Check Digit Calculator

Calculate the GS1 check digit in a Global Returnable Asset Identifier. See where the fixed identification part ends and serial data begins.

Last updated:

GS1 & Retail Barcodes

Check the returnable-asset identification component.

Length: 10 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for GRAI Check Digit Calculator...

How GRAI Check Digit Calculator Works?

The GRAI Check Digit Calculator works by applying GS1 Modulus 10 to the first 13 digits of a Global Returnable Asset Identifier (GRAI) and placing the result in position 14. The optional alphanumeric serial number after position 14 is not part of the check.

  1. 1Start with a leading 0 as the first digit of the GRAI element string.
  2. 2Add the GS1 company prefix and the asset type to reach 13 digits.
  3. 3Weight the 13 digits 3-1-3-1 from the left and sum the products.
  4. 4Compute the 14th digit as (10 − (S mod 10)) mod 10.
  5. 5Append the optional serial number (up to 16 characters) after the check digit.

GRAI Check Digit Calculator Formula

The GRAI formula is d₁₄ = (10 − (Σ dᵢ·wᵢ mod 10)) mod 10 over the 13-digit fixed part.

S = 3 × (d₁ + d₃ + … + d₁₃) + (d₂ + d₄ + … + d₁₂)   (GRAI)
d₁₄ = (10 − (S mod 10)) mod 10   (GRAI)
  • d₁…d₁₃ are the 13 GRAI payload digits (leading 0 + company prefix + asset type).
  • d₁₄ is the GRAI check digit.
  • S is the weighted GRAI sum.
Worked example: 0 + 9521234 + 54321
Payload:  0952123454321
Weights:  3131313131313
S = 77
Check digit = (10 − (77 mod 10)) mod 10 = 3
GRAI = (8003) 09521234543213A12B

GRAI Check Digit Calculator Conversion Table

The GRAI conversion table lists asset types with their fixed part, check digit, and optional serial.

Asset typeFixed part (13 digits)Check digitSerialGRAI element string
Reusable pallet09521234543213A12B09521234543213A12B
Plastic crate0952123400001300000109521234000013000001
Beer keg04012345000559KG7704012345000559KG77
Gas cylinder00614141000999CY12300614141000999CY123
Roll cage0952123412345309521234123453

What is GRAI Check Digit Calculator?

A GRAI Check Digit Calculator is a tool that computes the check digit inside a Global Returnable Asset Identifier. A GRAI identifies reusable assets such as pallets, kegs, crates, and gas cylinders.

The GRAI is encoded with Application Identifier (8003). The check digit protects the asset type part only, while the serial number identifies the individual asset.

What are the uses of GRAI Check Digit Calculator?

There are 3 main uses of the GRAI Check Digit Calculator, including pallet pooling, keg tracking, and RFID encoding.

  • Pallet pooling: Pooling companies track pallets across customers.
  • Keg and cylinder tracking: Breweries and gas suppliers monitor asset returns.
  • Radio Frequency Identification (RFID) encoding: Teams convert GRAIs into EPC tag data.