Skip to main content
v2026.11,986 entries · CC-BY 4.0

Food Analysis: Methods, Types of Tests and What Counts as an Official Method

Food analysis explained: composition, microbiology and label-compliance tests, plus the Codex method types and the 21 CFR 101.9(g) composite rule.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

Food analysis is the laboratory measurement of what a food contains and whether it is microbiologically sound: its composition (protein, fat, water, ash, carbohydrate, dietary fibre), its microbes and microbial toxins, and its compliance with a label or a standard. The result is only as meaningful as the sampling and the method behind it, which is why regulators name the methods they accept. Reading a Nutrition Facts label is a different activity from analysing food, and this guide separates the two.

Definition and scope

In this guide, food analysis means testing a food sample with a defined laboratory method and reporting a value that can be compared with something: a label declaration, a regulatory limit, a specification or a reference value. Three families of question come up repeatedly in the sources a food laboratory works from.

  • Composition. How much protein, fat, water, ash, carbohydrate and dietary fibre does the food contain? The FAO chapter on methods of food analysis treats these as the constituents from which energy and nutrient values are built.
  • Microbiology and microbial toxins. Are particular organisms or toxins present? The FDA Bacteriological Analytical Manual (BAM) presents the agency’s preferred laboratory procedures for microbiological analyses of foods and cosmetics, with chapters on general guidelines, specific pathogens, microbial toxins, additional methods and appendixes.
  • Compliance. Does a measured value support the label? In the United States, 21 CFR 101.9(g) sets how a compliance sample is built and how far a lab value may sit from the declared value.

Other analytical topics have their own pages on CASRAI, including nutritional analysis laboratory testing, food microbiology testing, HPLC testing in food safety and shelf-life testing. This page is the concept-level overview that connects them, and the wider field is introduced in what food science is.

How food analysis works in practice

A food analysis result is the end of a chain: a sample is drawn, a method is chosen, a value is calculated and then compared with a reference. Each link affects what the number means.

Sampling comes first

For nutrient compliance in the United States, 21 CFR 101.9(g) describes the compliance sample as a composite of 12 subsamples, each a consumer unit taken from one of 12 randomly chosen shipping cases. Analysis is by AOAC Official Methods of Analysis, or by other reliable and appropriate procedures where no AOAC method applies. The practical meaning is that a single package is not the unit of compliance: the value that counts is the composite.

The method determines what is being measured

Some constituents are measured directly and others are calculated, and the FAO chapter is explicit about the difference. Four examples show how much the method choice matters.

  • Protein. Protein has long been estimated from total nitrogen, which is then multiplied by a factor. The conventional factor is 6.25, derived from the assumption that protein is 16 percent nitrogen (1 / 0.16 = 6.25). The FAO chapter notes that the nitrogen content of proteins has been said to vary from about 13 to 19 percent, which would give factors of 5.26 and 7.69. It lists Jones factors ranging from 5.18 for nuts and seeds to 6.38 for milk, recommends using a specific factor for the food being analysed when one is known, and states that using 6.25 can give errors of minus 2 percent to plus 9 percent against specific factors. Where possible it prefers protein measured as the sum of individual amino acid residues.
  • Fat. For energy purposes the FAO chapter recommends analysing fats as fatty acids and expressing them as triglyceride equivalents. A gravimetric method is described as less desirable but acceptable for energy evaluation.
  • Carbohydrate. Total carbohydrate has for many years been calculated by difference rather than analysed directly (see the worked example below).
  • Dietary fibre. The chapter describes dietary fibre as a physiological and nutritional concept, names three methods with enough collaborative testing to be generally accepted (the AOAC Prosky method, the Englyst and Cummings method, and the Theander and Aman method), and recommends the AOAC 2000 analysis, Prosky (985.29), or a similar method. When another method is used, it should be stated.

Worked example: carbohydrate by difference

The FAO chapter gives the calculation as 100 minus the weight in grams of protein, fat, water, ash and alcohol in 100 g of food. The figures below are illustrative values chosen to show the arithmetic, not measurements of a real product.

Illustrative result per 100 g Value (g)
Protein 10
Fat 5
Water 12
Ash 2
Alcohol 0
Carbohydrate by difference: 100 − (10 + 5 + 12 + 2 + 0) 71

Because the carbohydrate figure is whatever is left over, every error in the other four measurements lands in it. The FAO chapter says values by difference should be discouraged because they include the cumulative errors of the other constituents, and it advises against them for novel foods and for reduced-energy claims. For energy it prefers direct analysis of available carbohydrate by summation. The same logic applies to the protein factor: if a food has 2.0 g of nitrogen per 100 g, the conventional factor gives 12.5 g of protein (2.0 × 6.25), while the milk factor of 6.38 would give 12.76 g (2.0 × 6.38). The illustrative nitrogen figure is invented for the arithmetic; the two factors come from the FAO chapter.

Types of food tests

Composition tests

Composition tests produce the numbers behind nutrient declarations: protein, fat, water, ash, carbohydrate and dietary fibre, as above. Some of these are measured and some are derived, so the report should say which. The CASRAI guide to nutritional analysis testing covers the laboratory side.

Microbiological tests

The BAM is the FDA’s reference set of preferred procedures for microbiological analysis of foods and cosmetics. Two cautions from the FDA page are worth carrying into any report. The online version has been updated since the last hard-copy edition (Edition 8, Revision A, 1998), and not every BAM method has been collaboratively evaluated by AOAC, APHA, EPA, IDF or ISO. The BAM appendix of rapid-method kits is not a recommendation: the FDA states that listed kits are not necessarily evaluated by the agency. For organisms or toxins the BAM does not cover, the FDA refers readers to AOAC Official Methods of Analysis, APHA and EPA resources. See food microbiology testing for the testing-service view.

Label-compliance checks

A compliance check compares the composite result with the declared value. Under 21 CFR 101.9(g), the composite for a Class I nutrient (one added in a fortified or fabricated food) must be at least equal to the label value, and for a Class II nutrient (naturally occurring) at least 80 percent of the label value. Calories, sugars, total fat, saturated fat, cholesterol and sodium are misbranded if the composite is more than 20 percent above the label value. As an illustration of the arithmetic only: a Class II nutrient declared at 10 g needs a composite of at least 8.0 g, and a declared 200 calories would be misbranded above 240.

Which method counts: the Codex method types

Laboratory results are often disputed, and the Codex Guidelines for the Inclusion of Specific Provisions in Codex Standards classify analytical methods into four types so that it is clear which one decides a question. The data table below sets out the four types, what each means and the example the guidelines give. A Defining method is the strictest: the value exists only in terms of the method itself. Reference methods are the ones designated for disputes and calibration. Alternative approved methods are the everyday control, inspection and regulatory methods that meet the criteria of the Codex Committee on Methods of Analysis and Sampling. Tentative methods are in use but have no acceptance criteria set yet. The guidelines page read for this guide is an older FAO publication, so check the current Codex standard on methods before citing a type designation in a formal document.

Where it matters for laboratories and quality teams

  • Reporting. State the method and whether a value was measured or calculated. The FAO chapter’s guidance on tagging a non-Prosky fibre method is an example of the same principle.
  • Disputes. The Codex guidelines designate Reference methods for disputes and calibration, so a disagreement between laboratories is settled against the method designated for that purpose.
  • Labels. A lab result supports a declared value only through the compliance logic of the jurisdiction. In the US, that logic includes the 12-case composite and the 80 percent and 120 percent limits above.
  • Rapid kits. A listing in a reference appendix is not an evaluation. The BAM page says so for its rapid-method kit appendix.

Common misunderstandings

“Carbohydrate on the label was measured”

Often it was calculated. The FAO chapter describes total carbohydrate as having been calculated by difference for many years, with the cumulative errors that implies.

“A protein value is a direct measurement”

Not when it comes from nitrogen. The nitrogen is measured and the factor is a convention, which is why the choice between 6.25 and a food-specific factor changes the answer.

“Reading a label is the same as analysing food”

It is not. Label reading uses the declared values; analysis tests the food itself. The FAQ below covers label reading.

“Every BAM method is an international standard”

The FDA states that not all BAM methods have been collaboratively evaluated by AOAC, APHA, EPA, IDF or ISO.

Frequently asked questions

How to analyse a food label?

Label reading is a consumer skill and not laboratory analysis. The FDA guide to the Nutrition Facts label says to check the servings per container and the serving size first (the serving size is not a recommendation of how much to eat), because the values are per serving. It describes 5 percent Daily Value or less as low and 20 percent or more as high, and suggests getting less saturated fat, sodium and added sugars and more dietary fibre, vitamin D, calcium, iron and potassium, using 2,000 calories a day as a general guide.

Is food science a difficult major?

Difficulty depends on the programme and the student, and the sources used for this guide do not rate it. What they do show is the kind of work analytical food science involves: choosing among defined methods, understanding sampling, and reasoning about calculated versus measured values, as set out above.

How can I get food tested for poison?

This guide does not give testing instructions. The BAM covers microbial toxins as a laboratory subject, but deciding whether and how a specific food is tested is a decision for public-health, medical and laboratory professionals. If someone may have been poisoned, contact local emergency services or a poison-control service and the relevant health authority.

What are the different types of food tests?

The main types are composition tests (protein, fat, water, ash, carbohydrate, dietary fibre), microbiological and toxin tests (the BAM is the FDA’s reference), and label-compliance checks (21 CFR 101.9(g) in the United States). Methods are further classed by status as Defining, Reference, Alternative Approved or Tentative under the Codex guidelines.

Sources

Data: Codex method types for food analysis: meaning and example

Compiled from the Codex Guidelines for the Inclusion of Specific Provisions in Codex Standards (FAO publication), this table sets the four Codex method types side by side with the stated use of each and the example the guidelines give, so a laboratory can see which type governs disputes, routine control or provisional use.

Coverage: International (Codex Alimentarius).

Codex method types for food analysis: meaning and example
Method typeWhat it meansTypical use statedExample given
Type I DefiningDetermines a value that can only be arrived at in terms of the method per seThe method defines the valueHoward Mould Count; loss on drying
Type II ReferenceDesignated where a Type I method does not apply; chosen from Type III methodsDisputes and calibrationPotentiometric method for halides
Type III Alternative ApprovedMeets the criteria set by the Codex Committee on Methods of Analysis and SamplingControl, inspection, regulatoryVolhard or Mohr method for chlorides
Type IV TentativeTraditional or recently introduced method whose acceptance criteria are not yet setProvisional useChlorine by X-ray fluorescence

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Food Analysis: Methods, Types of Tests and What Counts as an Official Method

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →