A cookie recipe written for 24 cookies gives you 21 if three crumble on the way off the tray: 2421×100%=87.5%. Percent yield is that score for a reaction. The theoretical yield, worked out from the limiting reactant, is what was possible; the actual yield, weighed on a balance, is what happened. Burning 2.43 g of magnesium could make 4.03 g of MgO, so collecting 3.62 g gives 4.033.62×100%=89.8%.
Real yields fall short for ordinary reasons. Some reactant never reacts, side reactions make other products, and some product stays on the glassware or slips through the filter. A multistep synthesis multiplies these losses: five steps at 80% each give 0.85=0.33, only 33% overall, which is why drug chemists fight for every percentage point.
Percent yield is not percent composition, though both divide one mass by another. Percent composition compares part of a compound with the whole compound, such as hydrogen making up 11.2% of water's mass, and the formula fixes it. Percent yield compares two amounts of the same product and changes from one experiment to the next. A yield above 100% is a warning, not a triumph: the product almost always still holds water or some other substance.
Think of it like this. Percent yield works like a fruit harvest: a tree whose blossoms could become 200 apples gives 150 once some fall early or get eaten, a 75% harvest. Losses only ever subtract, so a count above 200 would mean you had picked up the neighbour's apples too, just as a yield above 100% means something besides the product was weighed.
Core idea. Percent yield compares experiment with prediction: actual yield divided by theoretical yield, times 100%. It measures how much of the possible product a real reaction delivered, and a value above 100% signals an impure or wet product.