The molecular formula and empirical formula of some substances are the same. For example, both types of formula for carbon dioxide are CO 2.
A compound is a substance that is formed when two or more different chemical elements bond together in a fixed ratio, like water (Hâ‚‚O) from hydrogen and oxygen or salt (NaCl) from sodium and chlorine.