HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Mass Spectrometry and Infrared Spectroscopy: Mass, Formula and Functional Groups
  1. 1The mass spectrum: molecular ion, isotopes and formula
  2. 2Fragmentation: reading the pieces of a molecule
  3. 3Infrared spectroscopy: bond vibrations and functional groups
  1. Chemistry
  2. /Mass Spectrometry and Infrared Spectroscopy: Mass, Formula and Functional Groups
  3. /The mass spectrum: molecular ion, isotopes and formula

Course 38.1·Lesson 1 of 3

The mass spectrum: molecular ion, isotopes and formula

How can a chemist weigh a single molecule? A mass spectrometer turns molecules into ions and sorts them by mass. This lesson reads the molecular ion, the base peak and the small isotope peaks, and turns them into a molecular formula and its index of hydrogen deficiency.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Mass Spectrometry and Infrared Spectroscopy: Mass, Formula and Functional Groups
  1. 1The mass spectrum: molecular ion, isotopes and formula
  2. 2Fragmentation: reading the pieces of a molecule
  3. 3

Try the code and the simulations beside the lesson.

Weighing molecules

A chemist has a few milligrams of a colourless liquid and wants to know what it is. The first question is always: how heavy is one molecule? A mass spectrometer answers it.

In the common type, the sample is turned into a gas and hit by a beam of fast electrons. This is electron ionisation. An electron is knocked out of the molecule M:

M+e−→M+∙+2e−\displaystyle \text{M} + e^- \rightarrow \text{M}^{+\bullet} + 2e^-M+e−→M+∙+2e−

The ion M+∙\text{M}^{+\bullet}M+∙ has lost one electron, so it is a cation and also a radical. It is called the molecular ion. The ions are then sorted by their mass-to-charge ratio, m/zm/zm/z. Almost every ion here has z=1z = 1z=1, so m/zm/zm/z is simply the mass of the ion.

Only ions reach the detector. A neutral molecule or radical is not deflected and is not recorded.

Reading the spectrum

A mass spectrum is a bar chart. The x axis is m/zm/zm/z. The y axis is the relative abundance, how many ions of that mass reach the detector.

  • The base peak is the tallest peak. It is set to 100 %, and every other peak is a percentage of it.
  • The molecular ion peak, M, is the peak of the whole ion. It is usually the peak of highest m/zm/zm/z, apart from its small isotope peaks. It gives the relative molecular mass.

The base peak and the molecular ion are often different peaks. Many molecular ions break up before they reach the detector, as the next lesson shows.

Isotope peaks: counting carbon atoms

Natural carbon is 98.9 % carbon-12 and 1.1 % carbon-13. So a few molecules carry one 13C^{13}\text{C}13C atom and weigh one unit more. They give a small peak at M+1.

For a molecule with nnn carbon atoms, each carbon has a 1.1 % chance of being carbon-13. So

IM+1IM=1.1 %×n\displaystyle \dfrac{I_{M+1}}{I_{M}} = 1.1\ \% \times nIM​IM+1​​=1.1 %×n

Here III is the height of a peak. We want nnn, so n=1001.1×IM+1IMn = \dfrac{100}{1.1} \times \dfrac{I_{M+1}}{I_{M}}n=1.1100​×IM​IM+1​​.

Hexane, C6H14\text{C}_{6}\text{H}_{14}C6​H14​, has M at 86. Its M+1 peak is about 6.6 % of M. Deuterium and nitrogen-15 add a little more, but carbon is by far the largest share. Some books use 1.07 % or 1.08 % for carbon-13; A-Level questions use 1.1 %.

Chlorine and bromine

Chlorine is about three parts 35Cl^{35}\text{Cl}35Cl to one part 37Cl^{37}\text{Cl}37Cl. Bromine is about one part 79Br^{79}\text{Br}79Br to one part 81Br^{81}\text{Br}81Br. These atoms leave a clear mark two units apart.

Three small stick mass spectra side by side, each with the relative height of the peaks in percent. Left, a compound with one chlorine atom: a peak M of height 100 and a peak M+2 of height 32. Middle, two chlorine atoms: M 100, M+2 64 and M+4 10. Right, one bromine atom: M 100 and M+2 97, two peaks of almost equal height.
  • One Cl atom: peaks at M and M+2 in a ratio of about 3 : 1.
  • One Br atom: M and M+2 of almost equal height, 1 : 1.
  • Two Cl atoms: M, M+2 and M+4 in a ratio of about 9 : 6 : 1.

Set three carbons and one chlorine atom. You now see the pattern of a chloropropane: a small M+1 peak and an M+2 peak about a third of M.

Exact masses and the nitrogen rule

A high-resolution spectrometer measures m/zm/zm/z to four decimal places. On this scale atoms do not have whole-number masses: 1H^{1}\text{H}1H is 1.0078, 12C^{12}\text{C}12C is 12.0000, 14N^{14}\text{N}14N is 14.0031 and 16O^{16}\text{O}16O is 15.9949. So carbon monoxide, CO, is 27.9949, while nitrogen, N2\text{N}_{2}N2​, is 28.0061. Both have a nominal mass of 28, but the exact mass tells them apart.

The nitrogen rule helps too. A molecule made of C, H, O and halogens always has an even molecular mass. An odd molecular mass means an odd number of nitrogen atoms.

The index of hydrogen deficiency

Once the formula is known, count the rings and π bonds. The index of hydrogen deficiency (IHD), also called the degree of unsaturation or double bond equivalent, is

IHD=2C+2+N−H−X2\displaystyle \text{IHD} = \dfrac{2C + 2 + N - H - X}{2}IHD=22C+2+N−H−X​

Here C, N, H and X are the numbers of carbon, nitrogen, hydrogen and halogen atoms. Oxygen does not change it. Each ring or double bond adds 1, and a triple bond adds 2. Benzene, C6H6\text{C}_{6}\text{H}_{6}C6​H6​, has IHD =(12+2−6)/2=4= (12 + 2 - 6)/2 = 4=(12+2−6)/2=4: one ring and three double bonds.

Practise with new numbers

Try it in Python

The program builds the isotope pattern of chlorine and bromine atoms, one atom at a time.

Read it first. Predict the pattern for two bromine atoms. Then run it.

1. Add a line for three chlorine atoms. How many peaks do you get?

2. Why is the M+2 peak of two bromine atoms the tallest one?

Common mistakes

  • Taking the base peak as the molecular ion. The base peak is only the most common ion.
  • Dividing the M+1 height by the base peak. Divide it by the height of M.
  • Reading a 3 : 1 pair as bromine. Bromine gives 1 : 1. Chlorine gives 3 : 1.
  • Counting oxygen in the IHD. Oxygen leaves the formula unchanged.

Remember these

  • M+e−→M+∙+2e−\text{M} + e^- \rightarrow \text{M}^{+\bullet} + 2e^-M+e−→M+∙+2e−. Only ions are detected.
  • n=1001.1×IM+1IMn = \dfrac{100}{1.1} \times \dfrac{I_{M+1}}{I_{M}}n=1.1100​×IM​IM+1​​.
  • Cl: M and M+2, 3 : 1. Br: 1 : 1. Odd M: odd number of N.
  • IHD=2C+2+N−H−X2\text{IHD} = \dfrac{2C + 2 + N - H - X}{2}IHD=22C+2+N−H−X​.

References

  • OpenStax Organic Chemistry (2023), Chapter 12, Structure Determination: Mass Spectrometry and Infrared Spectroscopy.
  • Clayden, Greeves and Warren, Organic Chemistry, 2nd edition, Chapter 3, Determining organic structures.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A spectrum has its tallest peak at m/z 31 and its highest heavy peak at m/z 46. Which is the base peak, and which gives the relative molecular mass?
  1. The M peak of a compound is 40 % high and its M+1 peak is 2.2 % high. How many carbon atoms are there?
  1. Two peaks of equal height appear at m/z 94 and 96. Which halogen is in the molecule?
  1. Find the IHD of C5H5N\text{C}_{5}\text{H}_{5}\text{N}C5​H5​N.

Enroll free in Mass Spectrometry and Infrared Spectroscopy: Mass, Formula and Functional Groups

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A student is given a volatile liquid that burns with a green edge to the flame, a hint that it…Hard · High School (11–12) · by StemPy Lab
A high-resolution mass spectrometer gives the molecular ion of an unknown at m/z 70.0419…Advanced · High School (11–12) · by StemPy Lab
A liquid once used as a fuel additive gives three peaks at the top of its mass spectrum: m/z 186…
Next: lesson 2Fragmentation: reading the pieces of a molecule
← Mass Spectrometry and Infrared Spectroscopy: Mass, Formula and Functional Groups
← PreviousFragmentation: reading the pieces of a molecule →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
4 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Infrared spectroscopy: bond vibrations and functional groups
Hard · High School (11–12) · by StemPy Lab

Python Labs (1)

A formula from a mass spectrumPython Lab · by StemPy Lab