Most people buy food coloring for one batch of cookies and then keep the bottle for years. The sources give shelf-life figures for only a few products, so this page shows what they say and where they stop.
Does food coloring go bad?
The Short Answer: Yes, but slowly, and no source we found gives one figure for every brand or type. Wilton says its gel Icing Colors are freshest within 36 months, and its date guide ties that to the code stamped on the product. Givaudan Sense Colour, an ingredient maker writing for food manufacturers, says its natural colours typically last 6 months to 2 years. Wilton says its own products past their range are not harmful to eat, but may not work or taste as well as a fresh batch. That statement covers only Wilton. Givaudan says some natural colour formulations can support microbial growth and some are fermentable. UF/IFAS Extension says artificial dyes tend to stay stable through heating, freezing and long storage, while many plant pigments react to heat, light and acid. Our own suggestion: follow the printed date, and discard any color that has mold or smells off.
If your coloring ended up in frosting, see whether frosting goes bad. For a full pantry reference, see our Food Storage Guide.

Food Coloring Shelf Life: At a Glance

Does it go bad?
Slowly, mostly in quality. Wilton says its own products past their freshness range are not harmful to eat but may not work or taste as well as fresh ones. We found no such statement for other brands

Gel: Wilton Icing Colors
Freshest within 36 months, per Wilton’s FAQ. Its date guide ties this to the coded date

Gel: Wilton Color Right
24 to 48 months in Wilton’s FAQ, and 48 months in its date guide

Natural colours
Typically 6 months to 2 years depending on the colour, per Givaudan Sense Colour, an ingredient maker. It says opened packages degrade faster, and that some formulations are fermentable

Liquid grocery-store food coloring
We found no shelf-life figure. McCormick’s product page lists a preservative but gives no date range

Homemade natural coloring
We found no source that gives a storage time

Signs it is bad
No source lists spoilage signs. Our own suggestion: mold, a sour or off smell, or contamination from a used utensil

Storage
Givaudan says to keep colours away from humid settings, strong light and harsh odors, and to follow the label

Key Takeaways

Food coloring goes bad slowly. The sources we found describe a loss of color strength and performance, not a sudden safety problem.
Only Wilton gives numbers for a bottle you buy. Icing Colors are freshest within 36 months, which its date guide ties to the coded date, and Color Right is 24 to 48 months depending on the Wilton page.
Natural colours do not last as long. Givaudan Sense Colour says 6 months to 2 years, and UF/IFAS says plant pigments can fade, change hue or break down.
Wilton says its own products past their range are not harmful to eat, though they may not work or taste as well as 

Author