Unit 4: Shelf Life and Safety Testing
GIFSQ ID: FTN-0197
Unit 4 of 5 in Food Product Development. This page is one unit of the Food Product Development notes.
All units in Food Product Development:
- Unit 1: From Idea to Product Brief
- Unit 2: Formulation and Bench Trials
- Unit 3: Sensory Testing
- Unit 4: Shelf Life and Safety Testing
- Unit 5: Packaging, Labelling, Costing and Scale-Up
Next unit: Unit 5: Packaging, Labelling, Costing and Scale-Up
Unit 4: Shelf Life and Safety Testing
Note
A curiosity opener
A snack bar leaves the factory tasting fresh, and three months later a shopper opens a pack and finds it stale, rancid, or mouldy. Nobody changed the recipe, nobody left the pack open, and the date on the pack still says the bar is in date. What went wrong is that the date was guessed, not tested. This unit is about shelf life: the time for which a food stays safe and keeps its quality under its stated storage conditions, and about the testing that sets that time with evidence, so that the date on the pack means something a shopper can trust.
Questions to think about
What is the difference between a shelf life set by safety and one set by quality?
A shelf life set by safety ends when the product could become unsafe to eat, for example when illness-causing microbes could grow to a harmful level. A shelf life set by quality ends when the product is still safe but no longer good enough to eat, for example when it has gone stale or rancid. A chilled ready meal often has a safety shelf life, while a dry biscuit usually has a quality shelf life.
Why can a shelf life not be copied from a similar product?
Because shelf life depends on the recipe, the process, the pack, and the storage of this product, not of a similar one. A small change in water activity, in pH, in the pack, or in the storage temperature can move the shelf life by weeks, so the product must be tested itself.
Why is a margin kept between the test result and the date on the pack?
Because real life is not a laboratory: shops and homes are warmer than the test room, packs are handled roughly, and raw materials vary. A margin covers that variation, so that a product kept under its stated storage still meets its date in the real world.
4.1 What shelf life is
Shelf life is the time for which a food stays safe and keeps its quality under its stated storage conditions. The stated storage conditions are part of the definition: a chilled product kept at 4 degrees C has a different shelf life from the same product kept at 10 degrees C, and a product stored at room temperature has a different shelf life in a cool shop from the one it has in a hot warehouse. The date on the pack and the storage instruction on the pack belong together, and neither means much without the other.
Shelf life is set by testing the product through its stated life under its stated storage conditions, at intervals, for microbiology, chemical change, and sensory quality. The shelf life is set at the point before quality or safety fails, with a margin. That sentence is the whole method in one line, and the rest of this unit unpacks it: what is tested, how often, under what conditions, and how the final date is chosen.
Two date marks are used in most markets, and they mean different things. A use by date is a safety date: the food must not be eaten after it, because it may no longer be safe. A best before date is a quality date: the food may still be safe after it, but it may no longer be at its best. The choice between them depends on the product and the rules of the market, and the brief must state which one the product will carry before the testing starts.
Quick self-check: What is shelf life, in one sentence?
The time for which a food stays safe and keeps its quality under its stated storage conditions.
4.2 What ends a shelf life: microbes, chemistry, and senses
Three kinds of change end a shelf life, and a product usually fails on one of them first. The team tests all three, because the first failure decides the date, and the first failure differs from product to product.
Microbiological change
Microbes grow in food when the conditions allow, and their growth sets the safety shelf life of chilled and moist foods. Spoilage microbes cause off smells, slime, and sourness, while illness-causing microbes can grow without changing the look or smell at all, which is why microbiological testing cannot be replaced by tasting. The tests count the total number of microbes and test for the specific illness-causing microbes that matter for the product, such as Salmonella, Listeria monocytogenes, and Escherichia coli, using methods from standard references. A product whose counts rise past the limit, or in which an illness-causing microbe is found, has failed, whatever it tastes like.
Chemical change
Chemical change is the slow change of the food itself: fats turn rancid when oxygen reaches them, colours fade, vitamins fall, and flavours flatten. Rancidity is the usual failure in foods rich in fat, such as nuts, oils, and fried snacks, and it is judged by tasting and by chemical tests for oxidation. A product can be microbiologically safe and still fail on rancidity, because nobody will eat a bar that tastes of old oil, and a shop will not stock it twice.
Sensory change
Sensory change is the change the panel finds: the bar goes stale and hard, the sauce loses its brightness, the biscuit goes soft in a damp pack, the colour fades. The panel scores the same qualities at each test interval, as Unit 3 describes, and the point where a score falls below the acceptable limit is a failure point. Sensory failure is often the first failure in dry foods, where microbes grow slowly but staling and rancidity move fast.
| Type of change | What is tested | Usual first failure in |
|---|---|---|
| Microbiological | Total counts, illness-causing microbes | Chilled and moist foods |
| Chemical | Rancidity, colour, vitamin loss | Fatty foods, oils, fried snacks |
| Sensory | Flavour, texture, colour, smell | Dry foods, biscuits, bars |
Quick self-check: Name the three kinds of change that end a shelf life.
Microbiological change, chemical change, and sensory change. The first failure of the three decides the date.
4.3 Planning a shelf life study
A shelf life study is planned before the product is made, because the plan decides how much product is needed, how it is stored, and when it is tested. The plan states the product and the batch, the pack, the storage conditions, the test intervals, the tests at each interval, the limits each test must meet, and the number of samples needed at each interval. A study that runs short of samples halfway through cannot be finished, and a study with no written limits cannot say whether a result is a pass or a fail.
Test intervals are spread through the stated life and past it, so that the failure point is caught, not guessed. A product with a target shelf life of 3 months might be tested at 0, 1, 2, and 3 months, and then at 4 months as well, so that the team can see what happens past the target. Testing only at the start and at the end tells the team that the product passed or failed, but not when it failed, and the date cannot be set from two points.
Storage conditions must match the stated storage, and they must include the worst case the product will really meet. A chilled product is stored at the stated temperature, and it is also tested after a short time at a warmer temperature, to cover the warm car and the warm shop shelf. A product stored at room temperature is tested at the warm end of room temperature, not in a cool laboratory. The study should use more than one batch, because a single batch can be unusually good or unusually bad, and the shelf life must hold for every batch, not only for the best one.
Pause and think: a shelf life study tests a product only at day 0 and at day 90, and it passes at both. Why can the team still not set a 90 day shelf life with confidence?
Quick self-check: Why are test intervals spread through the stated life and past it?
So that the failure point is caught, not guessed. Testing only at the start and the end says pass or fail, but not when the product failed, and the date cannot be set from two points.
4.4 The factors that set shelf life
Shelf life is set by the food and by the world around it, the same intrinsic and extrinsic factors that control microbes. The intrinsic factors are built into the product: pH, water activity, nutrients, and natural defences. The extrinsic factors are set by storage and handling: temperature, humidity, gases, and time. The hurdle idea from food microbiology applies here too: several mild barriers together, such as low pH plus low aw plus chilled storage, hold the product safe and good for longer than any one barrier alone.
pH and acidity
Most bacteria grow best near pH 6.5 to 7.5 and grow slowly or not at all below pH 4.5, while yeasts and moulds tolerate acid better and grow down to pH 2 or 3. A product with a low pH, such as a pickle or a yoghurt, therefore keeps longer than a near neutral product with the same storage, because most bacteria cannot grow in it. Adding acid, by fermentation or by adding vinegar or citric acid, is one of the oldest ways to lengthen shelf life.
Water activity
Water activity, written aw, measures the water that microbes can use, on a scale from 0 to 1.00, with pure water at 1.00. Most bacteria need aw above 0.90, yeasts grow down to about 0.85, and moulds grow down to about 0.70. Drying, salting, and sugaring all lower aw by binding water. A dry biscuit with a low aw keeps for months, while a moist cake with a high aw keeps for days, and that difference is written into the recipe before the product is made.
Temperature and the pack
Temperature is the strongest extrinsic factor: cold stretches the lag phase and slows growth, which is why refrigeration buys time, and freezing stops growth, though it does not kill most microbes. The pack controls the gases and the moisture around the product: a pack that keeps oxygen out slows rancidity and mould, a pack that keeps moisture out keeps a biscuit crisp, and a pack that leaks lets both in. Unit 5 explains packaging in full, but the shelf life study must test the product in its real pack, because a product tested without its pack has not been tested at all.
Quick self-check: Why does a dry biscuit keep for months while a moist cake keeps for days?
Because drying and sugar lower the water activity of the biscuit, so most microbes cannot grow in it, while the moist cake has a high aw that lets microbes grow fast.
4.5 Food safety in development: hazards and controls
Food safety is built into development, not added at the end, and the shelf life stage is where that principle is tested hardest. The hazards of the ingredients, the process, and the pack are listed early, and the controls are written into the specification before the first factory trial, not after launch. A hazard is something that can cause harm: a microbe, a chemical, a piece of glass or metal, or an allergen that is not declared. A control is a step that prevents the hazard or brings it down to a safe level: cooking, chilling, acidifying, drying, metal detection, or a label that names the allergen.
For a new product, the team lists the hazards at each stage: the raw materials, the mixing, the heating, the cooling, the packing, and the storage. For each hazard, the team asks whether it is likely, whether it would cause serious harm, and what control will handle it. The controls that matter most are often simple: cooking to a temperature that kills the microbes of concern, cooling fast so that spores cannot grow, keeping the product chilled so that Listeria monocytogenes cannot grow to a harmful level, and labelling allergens plainly so that the person who must avoid them can see them.
Challenge testing is used when the safety of a chilled product depends on stopping the growth of a specific microbe. In a challenge test, the product is deliberately inoculated with a known number of the microbe under laboratory control, stored under its stated conditions, and tested over time to see whether the microbe grows. The test shows whether the recipe, the pH, the aw, and the storage together hold the microbe back. Challenge testing is specialist work, run in a laboratory that is set up for it, and its results are kept with the product file as evidence for the shelf life.
Quick self-check: What is a control, and when are controls written into the specification?
A control is a step that prevents a hazard or brings it down to a safe level, such as cooking, chilling, acidifying, or labelling an allergen. Controls are written into the specification before the first factory trial, not after launch.
4.6 Worked example: setting a shelf life from test results
Worked example: the snack bar shelf life study. The fruit snack bar from Unit 1 has a target shelf life of 3 months at room temperature. The team runs a study on two batches, testing at 0, 1, 2, 3, and 4 months, for microbiology, rancidity, and sensory quality. The results are: at 0, 1, 2, and 3 months, all tests pass, with the sensory panel scoring the bar above its acceptable limit. At 4 months, the microbiology still passes, but the sensory panel scores the bar below the limit: the bar has gone stale and the flavour has flattened, and the rancidity test has risen past its limit. The product has failed on quality at 4 months, at 120 days, while it is still safe.
Step 1, find the failure point: the first failure is at 4 months, which is 120 days. Step 2, apply a margin: the team keeps a margin of 2 weeks, which is 14 days, to cover warmer shops, rough handling, and variation between batches. Step 3, set the shelf life: 120 days minus 14 days is 106 days, which is about 3 and a half months. The team sets the shelf life at 3 months, which is 90 days, because 90 days is inside the tested life, it is a round number shoppers and shops understand, and it leaves a margin of 30 days, since 120 minus 90 is 30, between the date on the pack and the failure the study found. The shelf life is set by quality, not by safety, because the sensory and rancidity tests failed first while the microbiology still passed.
Notice what the team did not do: it did not set the shelf life at 4 months, the failure point, because a product dated to its failure point will fail in real shops. It did not set the shelf life by guessing, because the study gave a failure point to work from. And it did not stop testing at 3 months, because testing past the target is what found the failure and proved the margin.
Quick self-check: A product fails on quality at 120 days. Why is the shelf life set at 90 days instead of 120 days?
Because a product dated to its failure point will fail in real shops. The 30 day gap, 120 minus 90, is the margin that covers warmer storage, rough handling, and variation between batches.
4.7 Accelerated testing: a shortcut with limits
A shelf life study in real time takes as long as the shelf life itself, which is three months for the snack bar and a year or more for a long life product. Accelerated testing is a shortcut: the product is stored warmer than its stated storage, so that chemical change and staling move faster, and the results are used to predict the real time shelf life. A product stored at 30 degrees C may show in one month the rancidity that would take three months at 20 degrees C, and the team can use that to spot a problem early.
Accelerated testing has strict limits, and it must be used with care. Heat speeds chemical change, but it does not speed all changes by the same amount, and it can cause changes that would never happen at the stated storage, such as a fat melting that would stay solid in a cool shop. Microbial growth does not follow the same acceleration as chemical change, so an accelerated test cannot set a safety shelf life on its own. The rule is plain: accelerated testing can flag a problem early and can support a real time study, but the shelf life on the pack must be based on real time testing at the stated storage conditions. A product launched on accelerated data alone has a date that has not been proved.
Quick self-check: Why can an accelerated test not set a safety shelf life on its own?
Because heat speeds chemical change and microbial growth by different amounts, and it can cause changes that would never happen at the stated storage. The shelf life on the pack must be based on real time testing at the stated storage conditions.
4.8 Common mistakes in shelf life and safety testing
Several mistakes recur, and the subject page names the most common one first: skipping shelf life testing and guessing the date mark. A guessed date is not a shelf life, it is a hope, and it is found out by the shopper who opens a stale pack. The other mistakes are its neighbours. Changing the recipe after the label is printed means the shelf life on the label belongs to a product that no longer exists. Testing only one batch means the shelf life holds for the best batch and not for the rest. Testing without the real pack means the pack, which controls oxygen and moisture, was never tested. Testing only at the start and the end means the failure point was never found. Setting the date at the failure point means the product will fail in real shops. Forgetting an allergen on the label means a product that is safe for most people is dangerous for some, and no shelf life can fix a missing allergen declaration.
Each mistake has the same cure: test the real product, in its real pack, under its real storage, through its real life and past it, on more than one batch, and set the date before the failure with a margin. The study costs time and money, but it costs far less than a recall, a lost listing, or a shopper who never buys the product again.
Quick self-check: Name three common mistakes in shelf life testing.
Any three of: skipping the testing and guessing the date, changing the recipe after the label is printed, testing only one batch, testing without the real pack, testing only at the start and the end, setting the date at the failure point, and forgetting an allergen on the label.
4.9 Check yourself: quick self-check
Think about it first: a bakery develops a new filled bun. The brief sets the price and the shelf life, the bench trials set the filling level, the sensory tests choose the sweetness, the shelf life tests set the date mark, and the factory trials set the line speed. That is the subject page's bakery example. If the bun passes its microbiology tests at 14 days but the sensory panel finds it stale at 10 days, what should the date mark be, and why?
- What is shelf life, and what are its two parts, safety and quality?
Check your answer
Shelf life is the time for which a food stays safe and keeps its quality under its stated storage conditions. A safety shelf life ends when the product could become unsafe, while a quality shelf life ends when the product is still safe but no longer good enough to eat.
- A snack bar fails on quality at 120 days. The team sets the shelf life at 90 days. What is the margin in days?
Check your answer
120 minus 90 is 30 days. That margin covers warmer storage, rough handling, and variation between batches.
- Why must a shelf life study test past the target shelf life?
Check your answer
So that the failure point is found, not guessed. Testing only to the target says pass or fail at the target, but it does not show where the product fails or how much margin the date carries.
- What is the difference between a use by date and a best before date?
Check your answer
A use by date is a safety date: the food must not be eaten after it. A best before date is a quality date: the food may still be safe after it, but it may no longer be at its best.
- Why can a shelf life not be copied from a similar product?
Check your answer
Because shelf life depends on the recipe, the process, the pack, and the storage of this product. A small change in aw, pH, the pack, or the storage temperature can move the shelf life by weeks.
Try it: pick a food in your kitchen with a date mark and read its storage instruction. Then think about where it is actually stored in your home: is the storage the same as the instruction, warmer, or colder? What would that do to the real shelf life of the product?
Key ideas to carry forward
- Shelf life is the time for which a food stays safe and keeps its quality under its stated storage conditions, and the date and the storage instruction belong together.
- Shelf life is set by testing through the stated life, at intervals, for microbiology, chemical change, and sensory quality, at the point before failure, with a margin.
- A use by date is a safety date, while a best before date is a quality date.
- Microbiological, chemical, and sensory change each end a shelf life, and the first failure decides the date.
- pH, aw, temperature, and the pack set the shelf life, and several mild hurdles together hold the product longer than any one alone.
- Hazards are listed early and controls are written into the specification before the first factory trial.
- Accelerated testing can flag a problem early, but the date on the pack must rest on real time testing at the stated storage.
- Skipping shelf life testing and guessing the date mark is the most common mistake, and it is found out by the shopper.
Glossary
Shelf life
The time for which a food stays safe and keeps its quality under its stated storage conditions. Food tech example: a snack bar tested to 120 days carries a 90 day shelf life, leaving a 30 day margin.
Use by date
A safety date mark: the food must not be eaten after it, because it may no longer be safe. Food tech example: a chilled ready meal carries a use by date because illness-causing microbes could grow past it.
Best before date
A quality date mark: the food may still be safe after it, but it may no longer be at its best. Food tech example: a dry biscuit carries a best before date because it goes stale rather than unsafe.
Water activity (aw)
The share of water in a food that microbes can use, on a scale from 0 to 1.00. Food tech example: most bacteria need aw above 0.90, so a dry bar with a low aw keeps for months.
Rancidity
The chemical change of fats when oxygen reaches them, giving stale and off flavours. Food tech example: a fried snack goes rancid in a pack that lets oxygen in, and the rancidity test rises past its limit.
Hazard
Something that can cause harm in food: a microbe, a chemical, a foreign object, or an undeclared allergen. Food tech example: Listeria monocytogenes is a hazard in chilled ready meals.
Control
A step that prevents a hazard or brings it down to a safe level. Food tech example: fast cooling after cooking is a control that stops spores from growing.
Challenge testing
Testing where a product is deliberately inoculated with a known number of a microbe under laboratory control, then stored and tested over time to see whether the microbe grows. Food tech example: a chilled meal is challenge tested for Listeria monocytogenes to support its shelf life.
Accelerated testing
Testing a product warmer than its stated storage so that chemical change moves faster, used to flag problems early. Food tech example: a bar stored at 30 degrees C shows in one month the rancidity that would take three months at 20 degrees C.
Margin
The gap kept between the failure point found in testing and the date on the pack, to cover real world variation. Food tech example: a product that fails at 120 days carries a 90 day shelf life, a margin of 30 days.
References
- Man, C. M. D., and Jones, A. A., editors. Shelf Life Evaluation of Foods. Blackie Academic and Professional.
- Kilcast, D., and Subramaniam, P., editors. Food and Beverage Stability and Shelf Life. Woodhead Publishing.
- Codex Alimentarius. General Principles of Food Hygiene. Food and Agriculture Organization of the United Nations and World Health Organization.
- Canadian Food Inspection Agency. Food Safety for Industry.
- United States Food and Drug Administration. Food.
Related resources
- Food Tech Notes hub: browse all subjects in this series.
- GIFSQ quizzes: test what you learned in this subject.
- Tools and calculators: check calculations used in food work.
- Food safety glossary: plain definitions of terms used here.
- GIFSQ courses: structured learning in food safety and quality.