Chemical formulas and equations are based on the Law of Definite Proportions. Video by Khan Academy.
Balanced equations provide ratios between substances. The coefficients can be thought of as mole ratios.