Egg grades explained: codes 0/1/2/3, class A/B and sizes
The digit 3 on an eggshell means caged hens. It is only one of three markings on an egg. The others are size (S/M/L/XL) and quality class (A or B). We show how to read each one, how they differ and who stamps eggs with the producer code.
verifiedFrom the team that has organised work on poultry farms for years.
Updated:
Legal status as of 23 November 2026. What does egg code 3 mean? The digit 3 on the shell means caged hens: the hens live in enriched cages with no access to an outdoor run. It is one of four codes: 0 is organic, 1 is free range, 2 is barn, 3 is cage. The digit says nothing about freshness or egg size. It only tells you how the hens were kept.
Three markings that everyone calls a "grade"
In everyday talk, "egg grades" means everything at once. On the egg and the carton there are three separate systems. The first is size (S, M, L, XL), based on the egg's weight in grams. The second is quality class (A or B), which covers freshness and shell condition. The third is the farming code (0, 1, 2 or 3) stamped on the shell. One egg carries all three, for example "L", "class A" and "1".
Where the confusion comes from
All three markings work within the EU marketing standards for eggs. The current basis is Commission Delegated Regulation (EU) 2023/2465 of 17.08.2023, which repealed Commission Regulation (EC) No 589/2008. Size and quality class come from classic trade rules. The farming code came later, together with animal welfare rules and production-method labeling. That is why buyers often look for "class 3" or "class 0", although formally these are farming codes, not classes. We describe organic farming (code 0) in the article on organic eggs.
Egg codes 0, 1, 2, 3: what the number on the shell means
Egg codes 0, 1, 2 and 3 in a table
The table below lists all four codes. This is the one of the three markings that people casually call the "egg class", although formally it is a production-method code.
| Code | Hen housing method | What it means in practice |
|---|---|---|
| 0 | Organic | Access to an outdoor run, and stricter requirements for feed, stocking density and inspection |
| 1 | Free range | Hens have access to an outdoor run; feed does not have to meet organic standards |
| 2 | Barn | Hens kept in a building, with no access to an outdoor run |
| 3 | Cage | Hens kept in enriched cages, with no access to an outdoor run |
Egg code 3: caged hens
Code 3 means eggs from caged hens. The hens live in enriched cages and have no access to an outdoor run. It is one of four ways of keeping laying hens allowed in the European Union, alongside barn (2), free range (1) and organic (0). The code only tells you the farming method. It says nothing about freshness or size: an egg marked 3 can be fresh and class A, just like an egg marked 0.
How to read the whole code on an egg
The farming digit is the start of the producer code. Next comes the country mark, for example PL for Poland, and a number that identifies the flock the egg came from. This way every egg can be traced to a farm. If you run a laying farm yourself, see what the farm veterinary number looks like. The marking rules are also covered on our page about egg marketing standards under Delegated Regulation (EU) 2023/2465.
How an egg marked 0 differs from 1 and 2
Code 0 versus code 1
Code 1 means free range: hens have access to an outdoor run, but feed and conditions do not have to meet organic farming standards. Code 0 is certified organic farming. Besides access to a run, it has stricter requirements for feed (including its organic origin), stocking density and inspection. So every egg marked 0 also meets the conditions of code 1, but not the other way round.
Code 2: barn eggs
Code 2 means barn housing. The hens are kept in a building and do not go outside. This differs from code 1, where a run is available, and from code 3, where the birds sit in enriched cages. If someone asks about "egg class 2", this is the housing method they mean.
Does the code change nutritional value
Some consumers see eggs marked 0 and 1 as more ethical because of how the hens are kept. Differences in nutritional value between the codes are, in practice, much smaller than people commonly think. When you choose a code, you are mainly buying a housing method, not a better egg. For a full explanation of what the organic certificate means and how to check a seller's credentials, read our article on organic eggs.
Sizes S, M, L, XL: egg weight classes
Weight ranges
Size is set by the egg's weight in grams, split into four ranges. The same ranges apply across the European Union, so an "L" egg bought in Poland weighs the same as an "L" bought in Germany or Italy.
| Size | Name | Egg weight |
|---|---|---|
| S | small | under 53 g |
| M | medium | 53–63 g |
| L | large | 63–73 g |
| XL | very large | over 73 g |
Is a bigger egg a better egg
Not in terms of quality. Size tells you only the weight, not freshness, nutritional value or how the hen was kept. A bigger egg simply has more content, mainly white. Whether it is fresh and in good condition is shown by another marking: class A or B. Size is also often confused with freshness, but they are unrelated. We explain how to check freshness regardless of size in the article on how to tell if an egg is fresh.
What does egg class A mean, and what is class B
Class A
Class A eggs are fresh and of normal commercial quality: a clean, undamaged shell, a natural shape, no foreign smell and a correct air cell. The air cell is a small gap at the blunt end of the egg. Only class A goes to retail sale. If you buy eggs in a shop, they are almost always class A, even when the letter "A" is not clearly printed on the pack.
Class B
Class B covers eggs that do not meet class A requirements: a damaged or dirty shell, an irregular shape or too large an air cell, meaning they are less fresh. They do not reach shop shelves. They go to the food industry, for example to make liquid egg products and confectionery, or to non-food processing.
Is there a class "ABC"
People often ask about "ABC" class eggs. Formally there are only two quality classes, A and B. The letter "C" is not part of this system. It most likely comes from mixing up quality classes with sizes, or from random lettering when searching for information.
Who stamps eggs with the producer code, and where
Transport packs and deliveries to another country
Under Delegated Regulation (EU) 2023/2465, the producer marks every transport pack of eggs at the place of production. This information goes on the pack and in the accompanying documents, and the company that receives the eggs keeps a copy of the documents. Eggs sent to a collection point, packing center or non-food industry plant in another Member State are marked with the producer code before they leave the place of production (art. 8). The producer's country may grant an exemption if the producer has signed a supply contract with a packing center in another country that provides for such marking. Both parties file the application, prior written consent from the packing center's country is needed, and the contract must run for at least a month.
Exemption from marking at the place of production: IJHARS notice of 02.10.2026
According to a notice of 02.10.2026 from IJHARS (Poland's Agricultural and Food Quality Inspection), issued after an amendment to the act on the commercial quality of agri-food products, an egg producer can apply for an exemption from marking eggs with the producer code at the place of production. There are two conditions. First, eggs delivered to a packing center are marked only at that center. Second, the farm and the packing center lie in the same county (powiat) or neighboring counties, or in the same voivodeship or neighboring voivodeships, if you run the packing center where the marking takes place. You file the application with the voivodeship IJHARS inspector responsible for the place where the eggs are produced. The form is on the IJHARS website under "Wzory dokumentów" (document templates), and the local WIJHARS office gives details.
How to read an egg carton: all three markings at once
The summary below shows what each marking tells you and where to find it. We describe them according to the egg marketing standards in Commission Delegated Regulation (EU) 2023/2465, which replaced Regulation (EC) No 589/2008, as of 23 November 2026.
| Marking | Values | What it tells you |
|---|---|---|
| Size | S, M, L, XL | egg weight in grams |
| Quality class | A, B | freshness and condition of the egg |
| Farming code | 0, 1, 2, 3 | how the laying hens were kept |
What to check when you buy
First look at the farming code if the hens' living conditions matter to you. Then choose a size that suits your recipe or budget. You do not need to look for class A, because in a shop you always buy it. You keep eggs fresh by storing them properly, which we cover in the article on storing eggs.
If you keep hens for eggs yourself
Eggs from your own farm can also be grouped by weight and shell condition, and the way you house the flock decides which code they can carry. Check the requirements for selling specific eggs with your county veterinary office or IJHARS, and ask the voivodeship IJHARS inspector about the exemption from marking on the farm. You will find the basics of running a laying flock in the guide on how to keep hens for eggs. How much you can earn from eggs from your own flock depends on the market. For current rates, see the overview of farm egg prices.
Frequently asked questions
What are the egg grades?add
An egg has three independent markings: size (S, M, L, XL), quality class (A and B) and farming code (0, 1, 2, 3). The first two are classes in the strict sense. The farming code is a production-method code, although people casually call it a class too.
What does number 3 on an egg mean?add
Number 3 means an egg from caged hens: the hens are kept in enriched cages with no access to an outdoor run. It is one of four housing methods allowed in the EU. The number tells you the farming method, not the freshness of the egg.
What does class A eggs mean?add
Class A eggs are fresh, with a clean, undamaged shell and a correct air cell. It is the only quality class sold to consumers. Class B eggs go to the food industry, not to shop shelves.
What do egg codes 0, 1, 2, 3 mean?add
Zero is organic, one is free range, two is barn housing in a building and three is cage. The lower the number, the more requirements apply to the hens' living conditions.
What is the difference between egg code 0 and 1?add
One means free range, but feed and conditions do not have to meet organic standards. Zero is certified organic farming with extra requirements for feed and stocking density. An egg marked 0 also meets the conditions of 1, but not the other way round.
Which egg grade is the best?add
It depends on which marking you mean. By size, none is better: a bigger egg is only heavier. By quality, in a shop you buy class A anyway. By housing, some consumers prefer codes 0 and 1, but differences in nutritional value are smaller than people think.
Does an egg producer have to mark eggs on the farm?add
As a rule, transport packs are marked at the place of production. Under the IJHARS notice of 02.10.2026, you can apply for an exemption if only the packing center marks the eggs, and the farm and the center lie in the same or neighboring counties or voivodeships. You file the application with the voivodeship IJHARS inspector.
Sources & resources
- linkRegulation (EU) No 1308/2013 of the European Parliament and of the Council: common organization of the markets in agricultural products
- linkIJHARS: Agricultural and Food Quality Inspection
- linkIJHARS: New relief for egg producers, exemption from marking eggs at the place of production
- linkEU Publications Office (EUR-Lex/Cellar): Commission Delegated Regulation (EU) 2023/2465 of 17 August 2023 supplementing Regulation (EU) No 1308/2013 as regards marketing standards for eggs and repealing Commission Regulation (EC) No 589/2008
Prepared by: DlaFerm Team based on data from the sources listed · Publisher: INSTA-TECH sp. z o.o.
Do you keep a laying flock and want your egg production under control?
The <a href="/program-do-ewidencji-kurnika">poultry house records</a> module in DlaFerm lets you log egg collection and production in your flock day by day. Create a free farm account or get in touch, and we will show you how it works.
Phone
+48 796 258 151