A homogeneous reaction is one in which all reactants and products are in the same phase. Reactions involving only gases and solutions are examples of homogeneous reactions. In such cases all the reactants and products must appear in the formula.
Substances that do not undergo a specific change are not a part of the formula. This often happens in reactions in which all substances are in the same phase. For example, if water is a solvent in a reaction, the concentration of water is ignored in calculating chemical equilibrium. If water is a reactant or a product, it is noted in the formula of chemical equilibrium. Also, if water is in the gaseous state, it must appear in the formula.
Consider the following reaction:A heterogeneous reaction is one in which reactants exist in two or more phases. For example, two immiscible liquids, a solid and a gas, and mixtures of solids exist in two or more phases.
Substances that are solids or pure liquids are excluded in the equilibrium expression. The reason why pure samples are ignored is because their effective concentrations stay constant throughout the reaction.