In chemistry, the amount of substance (symbol n) in a given sample of matter is defined as a ratio (n = N/NA) between the number of elementary entities (N) and the Avogadro constant (NA). The entities are usually molecules, atoms, or ions of a specified kind. The particular substance sampled may be specified using a subscript, e.g., the amount of sodium chloride (NaCl) would be denoted as nNaCl. The unit of amount of substance in the International System of Units is the mole (symbol: mol), a base unit. Since 2019, the value of the Avogadro constant NA is defined to be exactly . Sometimes, the amount of substance is referred to as the chemical amount.
Historically, the mole was defined as the amount of substance in 12 grams of the carbon-12 isotope. As a consequence, the mass of one mole of a chemical compound, in grams, is numerically equal (for all practical purposes) to the mass of one molecule of the compound, in daltons, and the molar mass of an isotope in grams per mole is equal to the mass number. For example, a molecule of water has a mass of about 18.015 daltons on average, whereas a mole of water (which contains water molecules) has a total mass of about 18.015 grams.
In chemistry, because of the law of multiple proportions, it is often much more convenient to work with amounts of substances (that is, number of moles or of molecules) than with masses (grams) or volumes (liters). For example, the chemical fact "1 molecule of oxygen (O2) will react with 2 molecules of hydrogen (H2) to make 2 molecules of water ()" can also be stated as "1 mole of will react with 2 moles of to form 2 moles of water". The same chemical fact, expressed in terms of masses, would be "32 g (1 mole) of oxygen will react with approximately 4.0304 g (2 moles of H2) hydrogen to make approximately 36.0304 g (2 moles) of water" (and the numbers would depend on the isotopic composition of the reagents). In terms of volume, the numbers would depend on the pressure and temperature of the reagents and products.