In chemistry, the mass fraction of a substance within a mixture is the ratio w i {\displaystyle w_{i}} (alternatively denoted Y i {\displaystyle Y_{i}} ) of the mass m i {\displaystyle m_{i}} of that substance to the total mass m tot {\displaystyle m_{\text{tot}}} of the mixture. Expressed as a formula, the mass fraction is:
Because the individual masses of the ingredients of a mixture sum to m tot {\displaystyle m_{\text{tot}}} , their mass fractions sum to unity:
Mass fraction can also be expressed, with a denominator of 100, as percentage by mass (in commercial contexts often called percentage by weight, abbreviated wt.% or % w/w; see mass versus weight). It is one way of expressing the composition of a mixture in a dimensionless size; mole fraction (percentage by moles, mol%) and volume fraction (percentage by volume, vol%) are others.
When the prevalences of interest are those of individual chemical elements, rather than of compounds or other substances, the term mass fraction can also refer to the ratio of the mass of an element to the total mass of a sample. In these contexts an alternative term is mass percent composition. The mass fraction of an element in a compound can be calculated from the compound's empirical formula or its chemical formula.