The
mass percent composition of an element in a compound is the ratio of the mass of that element in the compound to the total mass of the compound, expressed as a percentage.
$$Mass\ percent\ composition = \frac{Mass\ of\ element\ in\ compound}{Total\ mass\ of\ compound} \times 100\% $$