The formula for theoretical yield is actually pretty straightforward: it's the amount of limiting reactant (the reactant that's in the shortest supply) multiplied by the stoichiometric coefficient (a fancy term for the ratio of reactants to products). Then, you multiply that by the molar mass of the product, and voilà! You get the theoretical yield. It's like a mathematical recipe for calculating the perfect outcome.
But, here's the thing: theoretical yield is theoretical for a reason. In reality, reactions are often imperfect, and you might end up with less product than you expected. That's where actual yield comes in – it's the real amount of product you get from a reaction, which can be affected by all sorts of real-world factors, like temperature, pressure, and catalysts.