How To Write Molecular Formula Of Compounds

9 min read

How to Write the Molecular Formula of Compounds

The molecular formula of a compound shows the exact number of each type of atom present in a molecule, using the smallest whole‑number ratio that reflects the compound’s composition. Mastering this skill is essential for chemistry students, researchers, and anyone who works with chemical calculations. This guide walks you through the process step by step, provides clear examples, and highlights common mistakes to avoid It's one of those things that adds up. Surprisingly effective..

Easier said than done, but still worth knowing Most people skip this — try not to..

Understanding Chemical Formulas

Before you can write a molecular formula, you need to distinguish between two related concepts:

  • Empirical formula – the simplest whole‑number ratio of atoms in a compound. Take this: the empirical formula of glucose is CH₂O.
  • Molecular formula – the actual count of atoms in a molecule. Glucose’s molecular formula is C₆H₁₂O₆, which is six times the empirical formula.

Both formulas convey composition, but the molecular formula gives the precise size of the molecule. The conversion from empirical to molecular formula requires the compound’s molar mass Most people skip this — try not to..

Steps to Determine the Molecular Formula

1. Find the Empirical Formula

  1. Obtain percent composition – Usually given or determined experimentally (e.g., mass percentages of each element).
  2. Convert percentages to grams – Assume a 100‑g sample, so percentages become grams.
  3. Calculate moles of each element – Use the atomic masses from the periodic table.
  4. Determine the simplest whole‑number ratio – Divide each mole value by the smallest mole value, then adjust to whole numbers (multiply if necessary).

Tip: If the ratios are not whole numbers after division, multiply all values by a common factor (e.g., 2, 3) to achieve integers.

2. Determine the Molar Mass of the Compound

  • Sum the atomic masses of all atoms in the empirical formula. This gives the empirical formula mass (EFM).
  • Obtain the experimental molar mass (often provided or measured via techniques like mass spectrometry).

3. Calculate the Multiplier

  • Divide the experimental molar mass by the empirical formula mass (EFM). The result should be a whole number (or very close, due to rounding).
  • This integer is the multiplier used to convert the empirical formula to the molecular formula.

4. Write the Molecular Formula

  • Multiply the subscripts in the empirical formula by the multiplier.
  • The resulting formula is the molecular formula of the compound.

Example Walkthroughs

Example 1: A Simple Organic Compound

A compound contains 40.Consider this: 0 % carbon, 6. Practically speaking, 7 % hydrogen, and 53. 3 % oxygen by mass. Its molar mass is 180 g mol⁻¹.

  1. Convert to grams (100 g sample): C = 40.0 g, H = 6.7 g, O = 53.3 g.
  2. Calculate moles:
    • C: 40.0 g ÷ 12.01 g mol⁻¹ ≈ 3.33 mol
    • H: 6.7 g ÷ 1.008 g mol⁻¹ ≈ 6.65 mol
    • O: 53.3 g ÷ 16.00 g mol⁻¹ ≈ 3.33 mol
  3. Divide by smallest (3.33): C ≈ 1, H ≈ 2, O ≈ 1 → Empirical formula = CH₂O.
  4. Empirical formula mass (EFM): 12.01 + (2 × 1.008) + 16.00 ≈ 30.03 g mol⁻¹.
  5. Multiplier: 180 g mol⁻¹ ÷ 30.03 g mol⁻¹ ≈ 6.
  6. Molecular formula: (CH₂O)₆ = C₆H₁₂O₆.

Example 2: An Inorganic Salt

A salt is composed of 27.0 % aluminum, 16.2 % sulfur, and 56.Plus, 8 % oxygen. Its molar mass is 342 g mol⁻¹.

  1. Convert to grams: Al = 27.0 g, S = 16.2 g, O = 56.8 g.
  2. Moles:
    • Al: 27.0 g ÷ 26.98 g mol⁻¹ ≈ 1.00 mol
    • S: 16.2 g ÷ 32.06 g mol⁻¹ ≈ 0.505 mol
    • O: 56.8 g ÷ 16.00 g mol⁻¹ ≈ 3.55 mol
  3. Divide by smallest (0.505): Al ≈ 2, S ≈ 1, O ≈ 7 → Empirical formula = Al₂SO₇.
  4. EFM: (2 × 26.98) + 32.06 + (7 × 16.00) ≈ 342 g mol⁻¹.
  5. Multiplier: 342 g mol⁻¹ ÷ 342 g mol⁻¹ = 1.
  6. Molecular formula: Al₂SO₇ (same as empirical formula).

Example 3: A Metal Hydride

A metal hydride contains 89.5 % magnesium and 10.5 % hydrogen. Its molar mass is 54.0 g mol⁻¹ Not complicated — just consistent..

  1. Convert to grams: Mg = 89.5 g, H = 10.5 g.
  2. Moles:
    • Mg: 89.5 g ÷ 24.31 g mol⁻¹ ≈ 3.68 mol
    • H: 10.5 g ÷ 1.008 g mol⁻¹ ≈ 10.42 mol
  3. Divide by smallest (3.68): Mg ≈ 1, H ≈ 2.83 → Multiply by 2 to get whole numbers: Mg ≈ 2, H ≈ 6 → Empirical formula = Mg₃H₆ (simplified to MgH₂).
  4. EFM: (3 × 24.31) + (2 × 1.008) ≈ 73.1 g mol⁻¹.
  5. Multiplier: 54.0 g mol⁻¹ ÷ 73.1 g mol⁻¹ ≈ 0.74 → This indicates an error; re‑examine data. Assuming correct molar mass, the empirical formula may be MgH₂ (EFM ≈ 26.3 g mol⁻¹) and multiplier ≈ 2 → Molecular formula = Mg₂H₄ (or simply MgH₂ if the original data were approximate).

Takeaway: Always double‑check experimental values; slight deviations can affect the multiplier.

Common Pitfalls and How to Avoid Them

  • Rounding errors: Use at least four significant figures during mole calculations before simplifying ratios.
  • Incorrect atomic masses: Verify you are using the most recent atomic weights from the periodic table.
  • Misinterpreting percent composition: Ensure percentages sum to 100 %

Example 4: A Compound with a Non‑integer Ratio

A sample of a newly synthesized compound is found to contain 52.5 % carbon, 34.0 % oxygen, and 13.Also, 5 % nitrogen by mass. The measured molar mass is 115 g mol⁻¹ Not complicated — just consistent..

  1. Convert to grams (100 g basis): C = 52.5 g, O = 34.0 g, N = 13.5 g.
  2. Determine moles:
    • C: 52.5 g ÷ 12.01 g mol⁻¹ ≈ 4.37 mol
    • O: 34.0 g ÷ 16.00 g mol⁻¹ ≈ 2.13 mol
    • N: 13.5 g ÷ 14.01 g mol⁻¹ ≈ 0.96 mol
  3. Normalize to the smallest value (0.96):
    • C ≈ 4.37 ÷ 0.96 ≈ 4.55
    • O ≈ 2.13 ÷ 0.96 ≈ 2.22
    • N ≈ 0.96 ÷ 0.96 = 1.00
  4. Convert to whole numbers: Multiply all ratios by 5 to clear the decimal portions:
    • C ≈ 4.55 × 5 ≈ 22.8 → round to 23
    • O ≈ 2.22 × 5 ≈ 11.1 → round to 11
    • N ≈ 1.00 × 5 = 5
      The provisional empirical formula becomes C₂₃H₁₁N₅ (hydrogen is inferred from charge balance; the exact count will be clarified in the next step).
  5. Calculate the empirical formula mass:
    • C: 23 × 12.01 ≈ 276.2 g mol⁻¹
    • H: 11 × 1.008 ≈ 11.1 g mol⁻¹
    • N: 5 × 14.01 ≈ 70.1 g mol⁻¹
    • O: 11 × 16.00 ≈ 176.0 g mol⁻¹
      Total ≈ 533.4 g mol⁻¹.
  6. Determine the multiplier: 115 g mol⁻¹ ÷ 533.4 g mol⁻¹ ≈ 0.22 → this indicates that the provisional ratios are too large; divide each subscript by 2 to obtain a more reasonable set:
    • C ≈ 23 ÷ 2 ≈ 11.5 → round to 12
    • H ≈ 11 ÷ 2 ≈ 5.5 → round to 6
    • N ≈ 5 ÷ 2 ≈ 2.5 → round to 3
    • O ≈ 11 ÷ 2 ≈ 5.5 → round to 6
      The refined empirical formula is C₁₂H₆N₃O₆.
  7. Re‑calculate the empirical formula mass:
    • C: 12 × 12.01 ≈ 144.1 g mol⁻¹
    • H: 6 × 1.008 ≈ 6.1 g mol⁻¹
    • N: 3 × 14.01 ≈ 42.0 g mol⁻¹
    • O: 6 × 16.00 ≈ 96.0 g mol⁻¹
      Sum ≈ 288.2 g mol⁻¹.
  8. Find the integer multiplier: 115 g mol⁻¹ ÷ 288.2 g mol⁻¹ ≈ 0.40 → the data are inconsistent; a likely source of error is the assumed hydrogen count. Re‑examining the elemental analysis (ensuring that all percentages sum to 100 %) suggests that the correct hydrogen content may be 8.0 % rather than 13.5 %. Re‑computing with 8.0 % H yields a clean ratio of C : H : N : O = 12 : 6 : 3 : 6, giving an empirical formula of C₁₂H₆N₃O₆ with an EFM of 288 g mol⁻¹. The multiplier now is 115 ÷ 288 ≈ 0.40, which still does not produce a whole number, indicating that the reported molar mass may be inaccurate or that the compound is a hydrate. In practice, one would verify the molar mass by an independent method (e.g., mass spectrometry) before finalizing the formula.

Example 5: A Coordination Complex

A coordination compound is analyzed and found to contain 36.0 % chlorine, 12.5 % nitrogen, and 51.5 % water by mass. Its molar mass is 280 g mol⁻¹.

  1. Convert to grams: Cl = 36.0 g, N = 12.5 g, H₂O = 51.5 g.
  2. Calculate moles:
    • Cl: 36.0 g ÷ 35.45 g mol⁻¹ ≈ 1.02 mol
    • N: 12.5 g ÷ 14.01 g mol⁻¹ ≈ 0.89 mol
    • H₂O: 51.5 g ÷ 18.02 g mol⁻¹ ≈ 2.86 mol
  3. Divide by the smallest (0.89):
    • Cl ≈ 1.02 ÷ 0.89 ≈ 1.15
    • N ≈ 0.89 ÷ 0.89 = 1.00
    • H₂O ≈ 2.86 ÷ 0.89 ≈ 3.21
  4. Obtain whole numbers: Multiply all values by 5 to clear the decimals:
    • Cl ≈ 1.15 × 5 ≈ 5.75 → round to 6
    • N ≈ 1.00 × 5 = 5
    • H₂O ≈ 3.21 × 5 ≈ 16.05 → round to 16
      The provisional empirical formula is Cl₆N₅(H₂O)₁₆.
  5. Separate the water of crystallization: The water molecules are part of the crystal lattice, not the coordination sphere. Subtract the mass contributed by the 16 water molecules (16 × 18.02 ≈ 288 g) from the total molar mass, leaving 280 – 288 = –8 g, which signals that the initial percentages were rounded and the true water content is slightly lower. Re‑evaluating with 4.0 % water (instead of 51.5 %) yields a consistent set of ratios that give the empirical formula Cl₂N(H₂O)₄.
  6. Empirical formula mass:
    • Cl: 2 × 35.45 ≈ 70.9 g mol⁻¹
    • N: 1 × 14.01 ≈ 14.0 g mol⁻¹
    • H₂O: 4 × 18.02 ≈ 72.1 g mol⁻¹
      Total ≈ 157 g mol⁻¹.
  7. Multiplier: 280 g mol⁻¹ ÷ 157 g mol⁻¹ ≈ 1.78 → the nearest whole number is 2, giving a molecular formula of Cl₄N₂(H₂O)₈.

Example 6: A Polymeric Segment

A polymer fragment is reported to consist of 62.Which means 5 % carbon, 12. Practically speaking, 5 % hydrogen, and 25. 0 % oxygen by mass, with an average repeat‑unit molar mass of 112 g mol⁻¹.

  1. Convert to grams: C = 62.5 g, H = 12.5 g, O = 25.0 g.
  2. Moles:
    • C: 62.5 g ÷ 12.01 ≈ 5.20 mol
    • H: 12.5 g ÷ 1.008 ≈ 12.40 mol
    • O: 25.0 g ÷ 16.00 ≈ 1.56 mol
  3. Normalize: Divide each by the smallest (1.56):
    • C ≈ 5.20 ÷ 1.56 ≈ 3.33
    • H ≈ 12.40 ÷ 1.56 ≈ 7.95
    • O ≈ 1.56 ÷ 1.56 = 1.00
  4. Eliminate fractions: Multiply by 3 to approach whole numbers:
    • C ≈ 3.33 × 3 ≈ 10
    • H ≈ 7.95 × 3 ≈ 24
    • O ≈ 1.00 × 3 = 3
      The empirical formula becomes C₁₀H₂₄O₃.
  5. Empirical formula mass:
    • C: 10 × 12.01 ≈ 120.1 g mol⁻¹
    • H: 24 × 1.008 ≈ 24.2 g mol⁻¹
    • O: 3 × 16.00 ≈ 48.0 g mol⁻¹
      Sum ≈ 192.3 g mol⁻¹.
  6. Multiplier: 112 g mol⁻¹ ÷ 192.3 g mol⁻¹ ≈ 0.58 → the data are inconsistent; a more realistic repeat‑unit mass would be around 192 g mol⁻¹, indicating that the reported mass likely corresponds to a larger oligomer rather than a single monomeric unit.

Conclusion

The systematic approach to deducing empirical and molecular formulas remains consistent across diverse chemical systems: start with a mass‑based sample, convert each component to moles, normalize by the smallest mole value, and adjust the resulting ratios to the nearest set of whole numbers. When the initial ratios are non‑integral, multiplying by a common factor or revisiting the original percentage data can resolve ambiguities. Still, verification of the calculated empirical formula mass against the experimentally determined molar mass is essential; discrepancies often point to rounding errors, mis‑reported elemental percentages, or the presence of water of crystallization or polymeric extensions. By rigorously applying these steps and continuously cross‑checking intermediate results, chemists can confidently assign the correct molecular formula, even for complex inorganic salts, coordination compounds, or repeat‑unit polymers.

Latest Drops

Freshest Posts

More Along These Lines

Related Corners of the Blog

Thank you for reading about How To Write Molecular Formula Of Compounds. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home