Skip to main content
Chemistry LibreTexts

3.1: Molecular Formula

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

     Music is a unique language like chemical formulas
    Figure \(\PageIndex{1}\) (Credit: J. S. Bach; Source: Commons Wikimedia, Bach cello harmony(opens in new window) []; License: Public Domain)

    Why are music notes a unique "language"?

    There are many "universal languages" in the world. Musicians of every culture recognize music embodied in a series of notes on a staff.

    This passage from a Bach cello suite could be played by any trained musician from any country, because there is an agreement as to what the symbols on the page mean. In the same way, molecules are represented using symbols that all chemists agree upon.

    Molecular Formula

    A molecule is comprised of two or more atoms that have been chemically combined. A molecular formula is a chemical formula of a molecular compound that shows the kinds and numbers of atoms present in a molecule of the compound. Ammonia is a compound of nitrogen and hydrogen as shown below:

    CK12 Screenshot 7-1-1.png
    Figure \(\PageIndex{2}\): The molecular formula for ammonia. (Credit: Joy Sheng; Source: CK-12 Foundation; License: CC BY-NC 3.0(opens in new window))

    Note from the example that there are some standard rules to follow in writing molecular formulas. The arrangements of the elements depend on the particular structure, so we will not concern ourselves with that point right now. The number of atoms of each kind is indicated by a subscript following the atom. If there is only one atom, no number is written. If there is more than one atom of a specific kind, the number is written as a subscript following the atom. We would not write \(\ce{N_3H}\) for ammonia, because that would mean that there are three nitrogen atoms and one hydrogen atom in the molecule, which is incorrect.

    The molecular formula does not tell us anything about the shape of the molecule or where the different atoms are. The molecular formula for sucrose (table sugar) is \(\ce{C_{12}H_{22}O_{11}}\). This simply tells us the number of carbon, hydrogen, and oxygen atoms in the molecule. There is nothing said about where the individual atoms are located. We need a much more complicated formula (shown below) to communicate that information.

    Figure \(\PageIndex{3}\): The molecular structure of sucrose, \(\ce{C_{12}H_{22}O_{11}}\). (Credit: User:Calvero/Wikimedia Commons; Source: Commons Wikimedia, Sucrose(opens in new window) []; License: Public Domain)


    • A molecular formula tells us which atoms and how many of each type of atom are present in a molecule.
    • If only one atom of a specific type is present, no subscript is used.
    • For atoms that have two or more of a specific type of atom present, a subscript is written after the symbol for that atom.
    • Molecular formulas do not indicate how the atoms are arranged in a molecule.


    1. What does a molecular formula tell us?
    2. What does a molecular formula not tell us?
    3. What do the subscripts mean in a molecular formula?
    4. If you wrote C6H11O5C6H11O6 as the molecular formula for sucrose, would that be correct? Explain your answer.
    5. Sometimes the formula for acetic acid is written CH3COOH. Is this a true molecular formula?

    3.1: Molecular Formula is shared under a CC BY-NC license and was authored, remixed, and/or curated by LibreTexts.