Chemical composition
Chemical composition is the identity and relative number of the chemical elements that make up a substance. Water, for example, contains two hydrogen atoms for every oxygen atom, which the formula H₂O records.
Chemists state composition in a few standard ways. These are a chemical formula, the percentage by mass of each element, or, for a mixture, the fraction of each component. A compound's elemental makeup defines its chemical identity, and measuring that makeup is often the first step in working out what an unknown substance is.[1]
What composition describes
Composition answers two questions about a substance. These are which elements it contains and how much of each there is, compared with the others.
It can be stated by numbers of atoms or by mass. The two give different figures for the same substance because atoms of different elements have different masses. In water, hydrogen atoms outnumber oxygen atoms two to one, but oxygen makes up about 89% of the mass.
Composition is the basis of a substance's identity. Every sample of a compound has the same makeup, which is why a formula can name it.[1][2]
Pure substances and mixtures
A pure substance has a constant composition, but a mixture does not. Any sample of sucrose has the same makeup, whatever its source. A mixture contains two or more types of matter that can be present in varying amounts.[2]
Mixtures come in two kinds.[2]
- A heterogeneous mixture has a composition that varies from point to point, as in oil-and-vinegar salad dressing.
- A homogeneous mixture, or solution, has a uniform composition throughout. A given batch can still be made with more or less of each component.
Air is a homogeneous mixture whose composition changes with humidity. Water vapor can make up as much as about 4% of its volume, which lowers the share of every other gas.[3]
| Gas | Dry air | Air with 4% water vapor |
|---|---|---|
| Nitrogen (N₂) | 78.084% | 74.96% |
| Oxygen (O₂) | 20.947% | 20.11% |
| Argon (Ar) | 0.934% | 0.89% |
Ways to state composition
Chemical formulas
A chemical formula lists the element symbols in a substance, with subscripts giving the number of atoms of each. Two kinds of formula describe composition.[4]
- An empirical formula gives the simplest whole-number ratio of atoms (or ions). Titanium dioxide, TiO₂, has twice as many oxygen atoms as titanium atoms.
- A molecular formula gives the actual number of atoms of each element in one molecule. It is always a whole-number multiple of the empirical formula.
Different compounds can share an empirical formula. Glucose (C₆H₁₂O₆) and acetic acid (C₂H₄O₂) both reduce to CH₂O. Benzene (C₆H₆) reduces to CH.[4]
Percent composition by mass
Percent composition is the percentage by mass of each element in a compound.[1] It is found from the formula and the molar masses of the elements:
Here is the number of atoms of element E in the formula, is the molar mass of E, and is the molar mass of the whole compound. The percentages of all the elements add up to 100%, apart from small rounding differences.
For water, take H as 1.008 g/mol and O as 16.00 g/mol.[1] The molar mass is 2(1.008) + 16.00 = 18.016 g/mol. Hydrogen is then 2.016/18.016 = 11.19% of the mass, and oxygen is 88.81%.
| Compound | Formula | Percent by mass |
|---|---|---|
| Ammonia | NH₃ | 82.27% N, 17.76% H[1] |
| Aspirin | C₉H₈O₄ | 60.00% C, 4.476% H, 35.52% O[1] |
| Sucrose (table sugar) | C₁₂H₂₂O₁₁ | 42.1% C, 6.5% H, 51.4% O[2] |
The ammonia figures come from its molar mass of 17.03 g/mol, of which nitrogen is 14.01 g/mol and hydrogen 3.024 g/mol.[1] The share of nitrogen matters to buyers choosing among nitrogen fertilizers such as ammonia and urea, since nitrogen is the active ingredient.[1]
Fractions in mixtures
The composition of a mixture is stated as the share of each component, not each element. The International Union of Pure and Applied Chemistry (IUPAC) defines two common measures.[5][6]
- The mass fraction is the mass of component divided by the total mass of all components.
- The amount fraction, also called mole fraction, is the amount (in moles) of component divided by the total amount. It equals the number of particles of that component divided by the total number of particles.
Each set of fractions adds up to 1. Multiplying a fraction by 100 gives a percentage.
Laws of chemical combination
Definite proportions
The law of definite proportions states that every sample of a pure compound contains the same elements in the same proportion by mass.[7] It is also called the law of constant composition. For example, every sample of isooctane, a component of gasoline, has a carbon-to-hydrogen mass ratio of 5.33 to 1.[7]
The French chemist Joseph-Louis Proust gathered the first conclusive evidence for the law. He studied the composition of many substances, especially the oxides of iron (1797).[8] Claude Berthollet argued for indefinite proportions and contested Proust's findings.[8]
The Scottish chemist Thomas Thomson confirmed some of Proust's results and wrote in 1801 that Proust had proved the point.[8]
Multiple proportions
The law of multiple proportions covers two elements that form more than one compound. The masses of one element that combine with a fixed mass of the other are in a ratio of small whole numbers.[9] John Dalton announced the law in 1803.[9]
Nitrogen and oxygen form five distinct oxides. With 14 grams of nitrogen, they hold 8, 16, 24, 32, and 40 grams of oxygen, a ratio of 1 to 2 to 3 to 4 to 5.[9] Working from the molar masses (N = 14, O = 16), these amounts match the formulas N₂O, NO, N₂O₃, NO₂, and N₂O₅.
Copper and chlorine give another example. A green solid has 0.558 g of chlorine per gram of copper, and a brown solid has 1.116 g. The ratio of these two numbers is 2 to 1, which fits one chlorine atom per copper atom in the green compound and two in the brown one.[7]
Explanation by atoms
Both laws follow from atoms combining in small whole-number ratios. Dalton's atomic theory, first published in 1807, held that a compound has atoms of two or more elements in a fixed, small whole-number ratio.[7] Confirming the law of multiple proportions for many compounds was the strongest argument for Dalton's view that matter consists of atoms.[9]
From measured masses to a formula
Chemists usually measure the mass of each element first and then work out the formula. Since a formula counts atoms, not masses, each mass must be converted to an amount in moles.[1]
- Measure the mass of each element in a sample.
- Divide each mass by the element's molar mass to get moles.
- Divide each mole amount by the smallest one to get a ratio.
- Round to whole numbers, or multiply all values by a small integer until they are whole. This gives the empirical formula.
- To find the molecular formula, divide the measured molar mass by the empirical formula mass. Multiply every subscript by the result, .
The last step uses this relation:[1]
Here is the molar (or molecular) mass of the compound, and is the sum of the atomic masses in the empirical formula.
As an example, take a sample with 1.71 g of carbon and 0.287 g of hydrogen.[1] That is 1.71/12.01 = 0.142 mol C and 0.287/1.008 = 0.285 mol H. The ratio is 1 to 2.00, so the empirical formula is CH₂.
The molecular formula needs one more measurement. Nicotine has the empirical formula C₅H₇N, with a mass of 81.13 g/mol. Its molar mass is twice that, so and the molecular formula is C₁₀H₁₄N₂.[1]
Measuring composition
Measuring which elements a sample contains, and in what ratios, is called elemental analysis. The term covers several techniques that identify the atomic composition of matter.[10] It is part of analytical chemistry.
Combustion analysis
Combustion analysis finds the carbon and hydrogen content of compounds such as hydrocarbons. It is one of the most widely used elemental analysis methods.[10] A weighed sample burns completely at high temperature in a stream of oxygen gas, and its carbon and hydrogen leave as carbon dioxide and water.[11]
The gases pass through preweighed tubes that each absorb one product. Magnesium perchlorate can absorb the water and sodium hydroxide the carbon dioxide.[11] The mass gained by each tube equals the mass of CO₂ or H₂O it trapped. From these masses the carbon and hydrogen in the sample are calculated.[11]
Other methods
| Method | What it measures | How it works | Sample afterward |
|---|---|---|---|
| ICP-MS | Trace elements, down to parts per trillion[12] | A liquid sample is sprayed as a mist into an argon plasma, a very hot, electrically charged gas, and the ions formed are sorted by mass-to-charge ratio[12] | Usually destroyed, since it is first dissolved in strong acid[12] |
| X-ray fluorescence (XRF) | Many elements at once[12] | X-rays excite the sample, which then gives off X-rays unique to each element; their strength tracks each element's amount[12] | Unchanged[12] |
Mass spectrometry gives a different kind of information. The mass spectrum of a compound often supplies its molecular mass, the value of used to get a molecular formula.[1]
Limits of composition
Same composition, different substance
Composition does not always identify a compound. Isomers are compounds with the same chemical formula but different molecular structures.[4]
Acetic acid, the acid in vinegar, and methyl formate are both C₂H₄O₂. In methyl formate, one oxygen atom sits between the two carbon atoms, and this small change gives very different chemical properties.[4]
Isomers fall into types by how they differ. Those that differ in how the atoms connect are structural isomers, as acetic acid and methyl formate are. Those that differ only in how the atoms are oriented in space are spatial isomers, or stereoisomers.[4]
Compounds without fixed ratios
Some solid compounds break the law of definite proportions. In a non-stoichiometric compound, the numbers of atoms cannot be written as a ratio of small whole numbers.[13] These are sometimes called berthollides, in contrast to daltonides, whose atom ratios are small whole numbers.
Most have compositions close to a simple ratio. They are written with formulas such as WO₃₋ₓ, Co₁₋ₓO, or Zn₁₊ₓO, where is positive and much smaller than 1.[13]
Non-stoichiometric compounds are best known among the transition metals. Several are used in electronic parts.[13]
Wüstite, an iron oxide written Fe₁₋zO, is a well-studied case. Around 1400 °C its iron deficit ranges from about 0.04 to 0.18, and near 600 °C it is about 0.065.[14]
Some apparent cases turn out to be a series of separate compounds with simple ratios. Molybdenum forms oxides MoₙO₃ₙ₋₁ for = 8, 9, 10, 11, 12, and 14. A true non-stoichiometric compound would instead vary smoothly in composition over a range, with no separate compounds to detect.[13]
References
- 3.2 Determining Empirical and Molecular Formulas, Chemistry 2e, OpenStax, 2019.
- 1.2 Phases and Classification of Matter, Chemistry 2e, OpenStax, 2019.
- The Atmosphere, National Oceanic and Atmospheric Administration, JetStream.
- 2.4 Chemical Formulas, Chemistry 2e, OpenStax, 2019.
- Mass fraction, IUPAC Compendium of Chemical Terminology (Gold Book), 2025.
- Amount fraction, IUPAC Compendium of Chemical Terminology (Gold Book), 2025.
- 2.1 Early Ideas in Atomic Theory, Chemistry 2e, OpenStax, 2019.
- Law of definite proportions, Encyclopaedia Britannica.
- Law of multiple proportions, Encyclopaedia Britannica.
- Searching for the Truth: Elemental Analysis, A Powerful but Often Poorly Executed Technique, ACS Central Science, 2022.
- 4.5 Quantitative Chemical Analysis, Chemistry 2e, OpenStax, 2019.
- From ICP-MS to XRF: Ways to Measure Metals, CDC Stacks, 2025.
- Nonstoichiometric compound, Encyclopaedia Britannica.
- The complex nonstoichiometry of wüstite Fe1-zO: Review and comments, HAL open archive, 2018.
