Bypass the header links
StockroomLane

27 barcodes: count each size, colour and style

By
StockroomLane Editorial Team
Posted
Sources checked
Time to read
15 min read

How this guide was made

Read the editorial standards

If your shop sells one item in three sizes, three colours and three styles, you need 27 barcodes, one for each combination.

Tidy takeaways

  • Give each size, colour and style combination its own barcode.
  • Multiply the options together: 3 x 3 x 3 gives 27, not 9.
  • Treat each packaging option as another multiplier, so 3 packages on top of 27 gives 81.
  • Use the GTIN that GS1 US provides for every online listing.
  • Remember that a UPC-E code carries six digits instead of 12, but the variant count stays the same.

One title, many barcodes

A t-shirt on a rack looks like one product. A scanner does not see it that way. GS1 US works through a simple example in its barcode how-to guide: "If you make a t-shirt, but that shirt comes in three sizes (small, medium, large) and three colors (blue, pink, purple), you need to identify 9 product variations."

A single code covering all nine shirts would tell the system that a shirt sold, but not which one. The sales report would show a total, and the shelf would show something different. Owners who count by title end up reordering the wrong sizes, because the numbers never separate a medium pink from a large blue.

Counting by title is a habit that comes from catalogs and invoices, where one line often covers several sizes. Those documents are useful for ordering, but they are organized around the supplier's description, not around the thing a customer picks up. Inventory happens at the level the customer touches: each combination on its own hanger, bin or shelf position.

So the first step is not arithmetic. It is a change in how you name items in your system. Instead of one row labeled "Crew tee," create one row for each combination you sell, and let each row carry its own barcode. The title stays the same for shoppers and on the storefront, but the count underneath becomes precise.

The 27-barcode count

The figure in the title comes from the same GS1 US guide, which multiplies the options together: 3 sizes x 3 colors x 3 styles = 27 barcodes. Each size, colour and style combination is a separate variant, so the total is the product of the option counts, not their sum.

The difference between multiplying and adding is where most miscounts start. Three sizes, three colours and three styles look like nine options if you add them up, and that is the number that often ends up on a planning sheet. But a customer does not choose a size, then a colour, then a style in isolation. A small blue classic is one item, a small blue relaxed is another, and a small pink classic is a third. Every combination that can be bought needs a code of its own.

Work it through on paper. Write the sizes down the left side, the colours across the top, and in each cell count the styles. Nine cells, each holding three styles, gives 27. If a style is never made in a particular colour, that style needs no code; only a cell with no styles at all is empty and needs none.

Count staff can use the same grid to check a delivery. A missing cell means a missing code, and an item without a code cannot be scanned at the register.

Packages multiply the count

Packaging adds another dimension. The same GS1 US guide carries the logic forward: "If they also come in 3 packages, you'll need 81 barcodes." The how-to guide takes the 27 from the previous example and multiplies again, so 27 times 3 gives 81.

For a shop, packages are often where the count gets away from people. A single item and a three-pack may share a name, sit on the same shelf and appear as one line on an order. They look like one product with two options. Yet a scanner at the register treats the pack and the single as different things a shopper can buy, so each needs its own code.

Check what counts as a package in your store. A three-pack of socks, a bundle of two colours, or a gift set might each be a separate sellable unit. The test is simple: if a shopper can pick it up and pay for it as its own item, it is a variant that needs a code. If it only ever exists as part of another item, it may not add to the total.

Keep track of the multiplier as you go. Each new packaging option multiplies the whole count, so a line that grows from 27 to 81 has tripled in one step. Owners planning a new packaging format should work out the increase before the order arrives, not after the labels are printed.

What one barcode identifies

The point of the code is precision. GS1 US describes its barcodes as ones that "uniquely identify a single retail product online and in retail stores around the world" ( source). Each part of that description does work. "Uniquely" means no two products share the code. "Single" means one product, not a family of products. "Online and in retail stores" means the same code is meant to work in both places.

That is why reusing a code is a false economy. A shop with a spare label might be tempted to use one code for every shirt in a colour, or to apply the medium's code to the large until new labels arrive. The shortcut saves a printing step once and costs accuracy every day after. The sales history will credit the large's sales to the medium, and reorders will follow the wrong signal.

The "around the world" part matters for small shops too. When your variant codes are clean, the same product can be matched across channels without manual translation. When they are mixed up, every match needs a person to fix it by hand.

Online listings and the GTIN

When you publish a product online, the code takes on a new job. GS1 US advises, on its cosmetic products page: "When setting up a product listing online, use the GS1 US-provided GTIN (Learn More About GTINs) to uniquely identify the product."

The instruction has two parts. First, use the GTIN that GS1 US provides, rather than a number you make up or copy from a supplier's sheet. Second, use it to identify the product uniquely, which means each listing is tied to one specific variant. A listing for "Crew tee" with a single identifier behind three sizes makes the same error as a shelf with one code for all sizes.

For a shop with an online store, the practical step is to build listings from the variant grid. Each row in your internal count becomes one online item, with its own identifier, its own photo if you have one, and its own stock figure. If a customer orders a small blue classic, the system should deduct that exact row. Otherwise the storefront sells stock you do not have, or shows an item as sold out while a different size is still on the shelf.

The GTIN also keeps online and in-store counts aligned. The identifier on the hanger should match the identifier on the listing. When staff scan an item and the screen shows the same product the customer saw online, reconciliation becomes a simple comparison rather than a guessing game.

For printing and reordering labels, our own guide to retail barcode labels: 4 app print limits covers the label side of this work.

When UPC-E fits small items

Not every code has the same length. GS1 US notes that "The UPC-E barcode contains just six digits instead of 12." The cosmetic products page makes that comparison directly, and the difference is worth understanding before you print labels.

The digit count is the practical difference. A standard code carries 12 digits, and a UPC-E carries six. Six digits take less room, which matters on a package with little printable space, such as a small bottle, a sachet or a tag on a thin item. The shorter form is the natural fit when the label is the constraint, but that decision concerns the layout, not how many variants you sell.

The shorter code does not reduce the count. A small tube in three shades and two sizes still has six variants, and each variant still needs its own identifier, whichever form it uses. Counting variants and choosing a barcode format are separate steps. A shop that mixes the two may conclude that a short code means fewer products, and then miss items at the register.

Keep the two questions on your planning sheet separate. One column holds how many codes you need, taken from the grid of options. The other holds which format each code takes, taken from the label size. Filling in both before you order labels keeps you from printing a code that will not fit the package you chose.

Liquid flavored milk as a staple

Flavored milk shows the difference between a category and a count. Shoppers see one drink in several bottles, cartons and jugs. The USDA's SNAP stocking standards FAQ makes a classification point that covers every size at once: "Any size container of liquid flavored milk counts as a staple food."

That sentence answers a question about what the product is under one rule. It does not tell you how many distinct items sit in your cooler. A pint, a quart and a half-gallon of the same flavour are separate things on the shelf, and the register needs a separate code for each size you actually stock. Treating them as one line because the category is one line is the same mistake as counting a nine-variant shirt line as a single title.

Keep the two questions apart. A category question asks what a product is under a rule. A counting question asks how many distinct things you hold and sell. The USDA FAQ settles the first for all container sizes together. Your grid settles the second, and it has to be settled size by size.

A practical layout puts one row on each flavour and one column on each container size, with a code in every cell you stock. Empty cells need no code. The grid also shows when a size has disappeared from the cooler, which a single line on an invoice would hide. Count staff can use it at receiving too. A delivery listed as "flavored milk" says nothing about which sizes arrived, but a split by container can be checked cell by cell.

Read the FAQ for the rule itself, and keep your codes in a separate record. The category answer is a reason to read the source carefully. It is not a reason to merge your product records.

Allergen labels on individual units

The FDA's food allergies page describes guidance built from questions and answers. It covers a list of topics: "The new guidance has been updated based on comments submitted to the draft guidance and consists of questions and answers about food allergen labeling requirements, including the labeling of tree nuts, sesame, milk, eggs, incidental additives, highly refined oils, dietary supplement products, and certain specific packing and labeling situations, such as individual units within a multiunit package."

The phrase that matters for a variant count is "individual units within a multiunit package." It names a labeling situation of its own. That lines up with the packaging step earlier in this post. A three-pack and the single items inside it may share a name and a shelf, yet each sellable unit is a separate thing a shopper can buy and a separate thing you need to describe correctly.

The guidance was updated after comments on a draft, so the version you remember may not be the one published now. A shop that sells multipacks should check the label on each unit it sells, and check it against the current guidance rather than last year's binder.

The page is a set of questions and answers. Use the FDA page to find the right question, then read the full guidance on that topic before you change a label. Keep allergen notes in the same record as the variant code, so a single item and its pack can be checked together.

Comparison table: options side by side

The GS1 US guide gives three counting options that build on one another. Each row adds one dimension, and the table sets them side by side.

Counting option Example from GS1 US Count from the guide
Sizes and colors only 3 sizes and 3 colors 9 product variations
Adding styles 3 sizes x 3 colors x 3 styles 27 barcodes
Adding packages The same 27, plus 3 packages 81 barcodes

Read across the rows. Each step multiplies the one before it, so the choice is about which units you count, not how you add them. Start with sizes and colours for the 9 product variations, add styles to reach 27, and add packages to reach 81. The how-to guide from GS1 US walks through all three rows.

Two other sources in this post sit beside the table rather than inside it. The USDA FAQ treats every container size of flavored milk the same way under one category rule, which says nothing about how many codes a shop needs. The FDA allergen guidance names individual units inside a multiunit package as a situation of their own. Neither changes the multiplication.

When two options give different totals, the difference comes from the unit you choose to track. Write that unit down before you start counting, so the totals can be compared fairly later.

Which one should you pick?

Pick the counting option that matches the unit a shopper can buy alone. If each size, colour and style is sold separately, count each combination. If a pack is sold as its own item, count the pack as a variant too. GS1 US describes its barcodes as ones that "uniquely identify a single retail product online and in retail stores around the world." A code that stands for several things cannot be the code for one of them.

Situation Pick this option Reason
Each size, colour and style sold alone Count each combination A code identifies a single retail product
A pack sold as its own item Count the pack as a variant Packages multiply the total
Individual units inside a multipack Check the label on each unit The FDA guidance names this as a labeling situation

The decision is easier if you ask one question about each item: can a shopper take this alone and pay for it? If yes, it gets a row, a code and a count. If it only exists inside another item, it may not add to the total, but its labeling still needs checking against the FDA guidance.

Figures table: counts by variant

The GS1 US figures give three checkpoints you can use to test your own totals.

Option set Figure applied Barcodes
Sizes and colors 3 x 3 9
Sizes, colors and styles 3 x 3 x 3 27
The same line plus 3 packages 27 x 3 81

The first row matches the t-shirt example in the GS1 US how-to guide, which identifies 9 product variations for three sizes and three colors. The 27 and 81 follow from the same multiplication. The pattern matters more than any one figure: each added option multiplies the total, so a line can grow quickly.

Count staff can use these checkpoints at receiving. If a title should produce 27 lines and the delivery shows fewer, some combinations are missing and need codes before they reach the shelf. The USDA FAQ's container-size sentence is a reminder that a shared category does not mean a shared code, so the checkpoint should count units, not categories.

Worked example: a grid that totals 27

A shop carries one shirt line with three sizes down the left, three colours across the top, and three styles in each cell. Every cell holds three styles, and nine cells times three gives 27. When a three-pack option is added, each of those 27 becomes two rows, one for the single and one for the pack. Multiply first, then check each cell at receiving. This is our own illustrative walkthrough of the guide's method.

Related guides: California high-heat rules for count day: 5 duties · Cash drawer count sheet: 7 fields to fill in at close · 3 cold-room limits to set before a walk-in stock count.

Reader questions

Does each size need its own barcode if the price is the same? Yes, if each size is a separate item a shopper picks up.

Does a small container of flavored milk count as a staple food? Under the USDA FAQ, "Any size container of liquid flavored milk counts as a staple food." Size does not change the category under that rule, but it still changes how many codes you need.

Is the outer label enough for each unit inside a multipack? Check the label on every unit you sell.

Does the FDA guidance answer every allergen labeling question? No. The FDA page describes questions and answers on specific topics. Use it to find the right question, then read the full guidance on that topic.

How many barcodes do three sizes, three colors and three styles need? 27. GS1 US gives the formula as 3 x 3 x 3 = 27 barcodes.

What happens if I add three packages to that line? The total becomes 81, as the GS1 US example shows. Work out that increase before you order labels.

Should I recheck labels after the FDA guidance changes? Yes. The guidance has been updated based on comments on a draft, so compare each label against the current version before you change it.

Sources

Keep reading

See every guide