Stoichiometry /ˌstɔɪkiˈɒmᵻtri/ is the calculation of relative quantities of reactants and products in chemical reactions.
Stoichiometry is founded on the law of conservation of mass where the total mass of the reactants equals the total mass of the products leading to the insight that the relations among quantities of reactants and products typically form a ratio of positive integers. This means that if the amounts of the separate reactants are known, then the amount of the product can be calculated. Conversely, if one reactant has a known quantity and the quantity of product can be empirically determined, then the amount of the other reactants can also be calculated.
This is illustrated in the image here, where the balanced equation is:
Here, one molecule of methane reacts with two molecules of oxygen gas to yield one molecule of carbon dioxide and two molecules of water. Stoichiometry measures these quantitative relationships, and is used to determine the amount of products/reactants that are produced/needed in a given reaction. Describing the quantitative relationships among substances as they participate in chemical reactions is known as reaction stoichiometry. In the example above, reaction stoichiometry measures the relationship between the methane and oxygen as they react to form carbon dioxide and water.
Because of the well known relationship of moles to atomic weights, the ratios that are arrived at by stoichiometry can be used to determine quantities by weight in a reaction described by a balanced equation. This is called composition stoichiometry.