Keeping oil and flour alive
Every recipe on this site states how long the dish will keep, and that figure is simply the shortest-lived ingredient in it. Do that arithmetic across the whole corpus and the same two names come back again and again: olive oil sets the limit on 43 recipes, plain flour on another 11. Between them they govern more than half of everything here.
That is worth knowing, because it means the pantry question is not really “how long do tins last”. Tins are the easy part. The oil and the flour are what actually expire, and both are far more responsive to how you store them than a tin will ever be.
They also fail in completely different ways, which is the more useful half of this page.
Olive oil: one enemy, and it is light
Oil does not spoil in the way food spoils. Nothing grows in it. What happens is oxidation, the fat reacts with oxygen and breaks down into smaller compounds, some of which you can smell. The International Olive Council:
One of the biggest threats to the quality of any edible oil is oxidation. The presence of oxygen in the air or finely dispersed in the oil causes the oil to degrade and become rancid. This reaction happens faster if the oil is not properly stored, particularly if it is exposed to light and/or heat.
Source: International Olive Council, Consumer guidelines on the best storage conditions for olive oils
Note the ranking, because it is not the one most people assume:
The main threat to olive oil quality is light.
The second biggest threat to oil is heat: keep oil away from radiators, burners, or windows.
Light first, heat second, oxygen third. A clear bottle on a sunny windowsill is doing more damage than a dark bottle in a warm cupboard.
What the IOC actually tells you to do
- Buy for a year, not for a decade. “Only purchase as much olive oil as you can feasibly consume in one year. Olive oil is not like wine: it only deteriorates over time.”
- Keep it dark. “Store oil in a dark place or protect it with an opaque cover (e.g. aluminium foil), especially if it is contained in a transparent bottle.”
- Store between 13 and 25 °C.
- Mind the headspace. “Once opened, limit headspace, meaning the space occupied by air in the glass or can, since contact with oxygen accelerates oxidation.” A half-empty five-litre tin is half full of air.
- Decant from big containers into “smaller, food-grade dark glass, ceramic, or stainless-steel containers”. Explicitly not iron, “iron promotes oxidation”.
- Use it within one to three months of opening.
- Keep it away from smells. “Any vegetable oil works a bit like a sponge for odorants”, so not next to the petrol, the paint or the detergent. Anyone who has kept oil in a van locker will recognise why that one is on the list.
The fridge is allowed, and helps: “Storing an oil at a lower temperature, such as in the refrigerator (around 4 °C), can help prevent oxidation.” It will go cloudy and partly solid, which the IOC describes as “a reversible process that does not affect the quality of the oil”. For unfiltered oils there is a small trade-off in polyphenols, so this is a storage move, not a default.
So is rancid oil dangerous, or just grim?
Mostly grim, but not nothing, and the honest answer has two halves.
It will not give you food poisoning. There is no pathogen involved; rancidity is a chemical change, not a microbial one, and you are not going to spend a night being ill because the oil was old.
What it does do is destroy the reason you were carrying oil in the first place. Fat is where a lot of flavour lives, and rancid fat actively tastes bad, crayon, old paint, stale nuts. It will drag down every other thing in the pan. For a site premised on eating well from the store cupboard, that is the failure that matters, and it is not a marginal one.
The second half is that the products of oxidation are not inert. The IOC, again:
Oxidation produces radicals and oxidation products, some of which can be toxic. Fortunately, some oxidation products are small, volatile molecules that can be detected by olfaction: they give off a particular off-flavour smell, giving rise to the ‘rancid’ defect. Smell is therefore a useful sensory indicator of oxidation in course.
That is the practical takeaway, and it is a rare case of a safety cue and a quality cue being the same cue. Your nose is a genuine instrument here. Oil that smells fine is fine. Oil that smells of crayons should be cooking-fuel for the bin, not for dinner.
Flour: three clocks, running at different speeds
Flour is the more interesting one, because “is it still good” has three separate answers and they come apart.
Clock one: the oil in it
White flour has had the germ removed, and the germ is where the fat is. Whole grain flours keep theirs, which is why they taste better and die younger. Penn State Extension:
Whole wheat flour contains natural oils that can turn rancid quickly at room temperature; store it in the refrigerator year-round.
Source: Penn State Extension, Storing Staple Ingredients in the Kitchen
NDSU Extension’s storage guide puts numbers on the gap:
| Unopened, pantry | Opened, pantry | Refrigerated | Frozen | |
|---|---|---|---|---|
| White flour | 6–12 months | 6–8 months | 1 year | indefinite |
| Wholemeal flour | 3–6 months | n/a | 6–8 months | n/a |
Two things fall out of that table. The first is that wholemeal is roughly half the flour, in shelf-life terms: worth knowing before you build a pantry around it. The second is that the fridge roughly doubles white flour and the freezer effectively stops the clock: “Can be frozen for indefinite storage. Keep in an airtight container.”
Rancid flour behaves like rancid oil, for the same reason: it is the same chemistry, just less of it. It smells musty and faintly of crayon, and it will make a flatbread taste like the bag it came out of.
Clock two: things that eat it
This is the one that actually ends most bags of flour, and it is not on any date label. Pantry insects (weevils, flour beetles, pantry moths) arrive in the packaging rather than colonising it later, so an apparently sealed bag is not proof of anything.
The defence is the same container that solves several other problems at once: rigid, airtight, opaque. Paper bags and the original plastic are not barriers. Freezing a new bag for a few days before it joins the shelf kills anything that came home with it, and is worth doing on a bulk buy.
An infested bag is a quality and dignity problem rather than a poisoning one, but nobody is going to enjoy the flatbread, and it will spread to everything else on the shelf.
Clock three: damp, and this one is genuinely dangerous
Dry flour is stable. Damp flour grows mould, and some moulds on cereals produce mycotoxins. The FSA:
Mycotoxins are a group of naturally occurring chemicals produced by certain moulds.
Mycotoxins can cause a variety of adverse health effects in humans including cancer (some are genotoxic), kidney and liver damage, gastrointestinal disturbances, reproductive disorders or suppression of the immune system.
They form “often under warm and humid conditions”, and cereals are named among the crops affected. Mycotoxins are heat-stable enough that cooking is not a rescue, and you cannot scoop out the bad part of a powder.
So the rule for flour is not the rule for oil. Rancid oil is a judgement call you make with your nose. Mouldy, caked or musty-damp flour is not a judgement call: it goes in the bin. Damp is also the one failure mode a van, a boat, a garage or a loft makes far more likely than a kitchen does, which is exactly the population this site is written for.
And the thing that is not a clock at all
Flour also carries a food-poisoning risk that has nothing to do with age: it is a raw agricultural product that has never been through a kill step, so raw dough and uncooked batter are a genuine hazard on the day you buy it. That is its own page (raw flour) and it is the one flour fact most worth knowing, precisely because it is invisible to every instinct about dates.
What “best before” is actually telling you
Both of these carry a best before rather than a use by, and in UK law those mean different things:
Use-by dates relate to the safety of food, whereas best before dates relate to quality.
After the best before date, the food is usually safe to eat but may not be of the same quality.
With one important condition attached:
If you do not store food properly, it could reduce in quality before the best before date.
Which is the sentence this whole page hangs on. The date on the bottle assumes the storage on the label. Get the storage right and the date is pessimistic; get it wrong and the date is a work of fiction. An oil kept dark at 15 °C and an oil kept on a sunny shelf above the hob are not the same product six months later, whatever their labels say.
Why our numbers are the conservative ones
Every shelf-life figure on this site is sourced, and where the source gives a range we take the short end. The FoodKeeper entry behind olive oil reads 6–12 months; we publish six. Flour reads the same; we publish six.
That is deliberate, and it is the reason so many recipes here say “about six months”. A pantry figure that is optimistic is worse than useless: it is the one kind of error you discover at exactly the wrong moment. If you have stored your oil properly, in the dark, cool, in a full container, you very probably have longer than we are telling you. We would rather be the ones who under-promised.
The short version
- Oil: dark, cool, sealed, small container, away from smells. Trust your nose; rancid is unpleasant rather than acutely unsafe, but it will ruin the food you put it in.
- White flour: airtight and dry beats cool. Freeze it if you want years instead of months.
- Wholemeal flour: buy less, more often, or keep it cold. It has half the life.
- Damp flour is the one you throw away without debating it.
- Never taste raw dough or batter, at any age. See raw flour.
- Both benefit enormously from decanting. Airtight, opaque, and sized so it is nearly full, the single change that buys the most time on both.