It’s easy to overlook the barcode. A few black stripes sit on a box of cereal, a book or a bottle of shampoo. We hold them under a scanner, hear a beep, and carry on with our day.
Yet those little marks helped change the way shops sell products, monitor stock and manage the enormous flow of goods around the world. The breakthrough is remembered for a wonderfully unglamorous first customer: a packet of chewing gum.
The problem started at the checkout
Before automated product scanning, supermarket workers often had to enter prices manually. Processing a large shopping basket took time, and keeping track of stock was laborious. Retailers wanted a faster, more reliable way to recognise products.
In the late 1940s, inventors Norman Joseph Woodland and Bernard Silver began pursuing an idea for machine-readable product identification. According to the history recounted by Smithsonian Magazine, Woodland’s inspiration involved Morse code and a drawing made in the sand at Miami Beach.
It sounds straightforward: print a pattern that a machine can read. But creating a practical system required much more than a clever sketch. Scanners, computers, standardised codes and packaging printers all had to become good enough to work together.
26 June 1974: the famous first beep
At a Marsh supermarket in Troy, Ohio, a new type of checkout went into operation on 26 June 1974. The first item scanned using a Universal Product Code was a packet of Wrigley’s Juicy Fruit chewing gum.
The Smithsonian’s National Museum of American History records the event and preserves one of the early Spectra-Physics supermarket scanners. A laser passed through a glass surface, light bounced off the printed pattern, and a detector translated the reflection into signals that a computer could interpret.
The gum was an especially fitting test. Small packaging posed a challenge for printing readable codes. If it worked there, the technology could be used on countless other products.
What do the stripes actually mean?
A standard retail barcode does not generally contain the item’s current selling price. Instead, it encodes a product identifier. The shop’s system uses that identifier to look up the product and its price in a database.
That distinction matters. A retailer can change a price without reprinting every package. Different stores can also charge different amounts for the same product while scanning the same manufacturer’s code.
The alternating dark and light bars represent information in a form an optical scanner can recognise. The exact rules depend on the barcode format, but the general idea is elegant: a standard set of marks links a physical product to digital information.
Try the check digit: an example you can verify
The last digit of a GTIN helps detect a wrongly entered number; it is not a price or a guarantee that the product is genuine. Here is a worked example using the teaching sequence 123456789012. It is arithmetic for this article, not an identification of a real product.
- For this 12-digit starting sequence, add alternate digits beginning at the right: 2 + 0 + 8 + 6 + 4 + 2 = 22. Multiply by three: 66.
- Add the remaining digits: 1 + 3 + 5 + 7 + 9 + 1 = 26.
- The total is 92. The next multiple of ten is 100, so the check digit is 8. The completed example is 1234567890128.
If the final 2 were mistyped as 3, the weighted total would rise by three; the unchanged check digit would no longer fit. This illustrates an error check, not the reconstruction of missing information. A check digit does not catch every possible alteration. Our QR-code demonstration explains the different idea of error correction.
There is a neat limit to the check digit you can see without a scanner. Imagine two adjacent positions with weights one and three. The digits 1 and 6 contribute 1 + 18 = 19. Swap them and they contribute 6 + 3 = 9. The total has changed by exactly ten, so it still needs the same final digit to reach a multiple of ten. A number can pass the check even when those two digits have been transposed.
The calculation follows GS1 UK’s check-digit method. GS1 also explains that a GTIN identifies a trade item; the first three digits identify the GS1 organisation licensing the prefix, not necessarily where the goods were manufactured.
Added 2 November 2026: worked check-digit example and standards-body sources.
Why was standardisation such a big deal?
A scanner that recognises one shop’s home-made labels is useful. A scanner that recognises products from many manufacturers is transformational.
Retailers and manufacturers needed to agree on a common language, which is why the Universal Product Code mattered so much. Standardisation made the system scalable rather than a collection of incompatible experiments.
With barcodes, checkouts could become faster, inventory records could improve, and businesses gained a way to follow products through warehouses and distribution networks. The change was gradual, and it depended on considerable investment in machines and software.
From black stripes to square patterns
Today you see related ideas everywhere, including parcel labels, tickets, library books and QR codes. They aren’t all the same technology, but they share a principle: making printed information readable by machines.
A QR code can hold data in a two-dimensional arrangement of squares, whereas the familiar traditional retail barcode uses a one-dimensional pattern of lines. That difference helps explain why QR codes can store more varied information, such as a web address.
A small invention with a huge afterlife
There was no dramatic futuristic machine at the centre of this turning point. Just an ordinary supermarket, a checkout operator and a packet of gum. The barcode’s triumph was making a complicated technological system feel almost invisible.
The next time you hear a scanner beep, remember that one of the world’s most familiar technologies began its public retail story with something you could chew.
Sources and further reading
Smithsonian National Museum of American History: Supermarket scanner
Smithsonian Magazine: The history of the bar code
Smithsonian Magazine: The supermarket scanner at 50
Cover artwork is an original illustration, not an image of the historic 1974 scanner.

Leave a Reply