Haloform Reaction and the Iodoform Test: Mechanism, Which Compounds Pass and Exam Traps
The haloform reaction turns a methyl ketone into a carboxylate with one carbon fewer, and the methyl group into a haloform, . The reagent is sodium hypohalite, NaOX, made from the halogen and sodium hydroxide. With iodine it gives iodoform, , a yellow solid with a strong smell, and that is the iodoform test for a group or a group. The reaction is in the Class 12 NCERT chapter on aldehydes, ketones and carboxylic acids. JEE Main and NEET most often ask which compounds give the iodoform test.
- General:
- Iodoform test, acetone:
- Ethanol also gives it:
- Needs: a group whose C=O carbon is also bonded to H or C (not OH, OR or ), or a group, which NaOX first oxidises to .
- Products: the haloform, (X = Cl, Br, I), and , with one carbon fewer.
- Left alone: a C=C elsewhere in the molecule.
1. Mechanism
The reaction has two parts. First the base halogenates the methyl group three times through the enolate. Then hydroxide attacks the C=O, and the group leaves as an anion, which is what makes this a cleavage reaction. In the alkali the halogen and the hypohalite are in equilibrium, and the enolate takes X from (or from HOX):
1.1 Three halogens on the methyl group
1.2 The C–C bond breaks
- Enolate. removes an H from the next to the C=O; the negative charge is shared with the oxygen.
- Halogenation. The enolate takes an X from , giving R–CO– and . This happens twice more, faster each time, until the group is .
- Addition. adds to the C=O of R–CO–.
- Cleavage. The C=O reforms and leaves; it then takes the acid's proton, giving and .
"Methyl next door." The test needs a on the carbon that carries the oxygen: C=O, or CH–OH (NaOI oxidises CH–OH to C=O first), and that carbon must be bonded to H or C, not part of an acid, ester or amide group. Among compounds with only one functional group, ethanol is the only primary alcohol and ethanal the only aldehyde that pass.
2. The iodoform test: which compounds pass
| Compound | Iodoform test | Why |
|---|---|---|
| Ethanol, | Yes | Oxidised to ethanal, |
| Methanol, | No | Gives , which has no |
| Propan-2-ol, | Yes | Oxidised to propanone |
| Propan-1-ol, | No | Gives propanal; its is not on the C=O carbon |
| Butan-2-ol, 1-phenylethanol | Yes | Both have the group |
| Ethanal, | Yes | The only simple aldehyde with on the CHO carbon (a keto-aldehyde such as passes through its part) |
| Propanone, butan-2-one, acetophenone | Yes | Methyl ketones |
| Pentan-3-one, | No | Ethyl groups on both sides of C=O |
| Ethanoic acid, methyl ethanoate, ethanamide | No | The is part of an acid, ester or amide group |
The test is done by warming the compound with iodine and sodium hydroxide (or with KI and NaOCl, which together give KOI). A yellow precipitate of iodoform, which smells like an antiseptic, means a pass. With chlorine or bromine the same reaction gives chloroform or bromoform, which are liquids, so only iodine gives an easily seen yellow precipitate.
Why base keeps going. In base, each halogen added makes the remaining α-H more acidic, so the second and third halogenations are faster than the first: the methyl group ends as . In acid, each X makes the C=O oxygen less basic, so enol formation (the slow step) gets slower and the reaction can be stopped after one X.
Why can leave. A carbanion is normally a very poor leaving group, but three halogens pull electron density away from the carbon and stabilise the anion. That is why only a group, not , is split off.
Making acids. The reaction shortens a chain by one carbon: acetophenone with NaOCl gives benzoate, and pent-3-en-2-one gives but-2-enoate with its C=C intact. Acetone chlorinated three times and then treated with gives chloroform and calcium ethanoate.
3. Worked examples
Propan-2-ol (it has the group) and acetophenone (a methyl ketone). Propan-1-ol has no on the carbon bearing the oxygen, pentan-3-one has ethyl groups on both sides of its C=O, and in ethanoic acid the is part of the acid group.
The methyl ketone gives iodoform, , and the rest becomes the carboxylate with one carbon fewer: sodium but-2-enoate, . The C=C is not touched.
1-Phenylethanol, . It has the group, which NaOI oxidises to acetophenone, a methyl ketone. The other two alcohols carry their OH on a group.
4. Exam traps
- Ethanoic acid, methyl ethanoate and ethanamide do not give the test, although they contain (an ethyl or isopropyl ester can hydrolyse in warm NaOH to an alcohol that passes).
- Ethanol passes (it is oxidised to ethanal); methanol and methanal fail.
- Propan-1-ol and propanal fail: the must sit on the carbon that carries the oxygen.
- Pentan-3-one fails, butan-2-one passes.
- The carboxylate has one carbon fewer than the methyl ketone.
- NaOX (or KOI) is an oxidising agent; NaOCl with KI makes KOI.
- A C=C elsewhere in the molecule survives.
- Only iodoform is a solid; chloroform and bromoform are liquids.
Past-paper questions on Haloform reaction
Our past papers: JEE Main 2025-2026, JEE Advanced 2022-2026, NEET 2018-2019, 2022-2026. We found 15 questions in them that test this:
- JEE Main 13 (2025-2026)
- JEE Advanced 1 (2024)
- NEET 1 (2018)
- JEE Main 2026 Apr 6 Shift 2, Chemistry Q15Butan-2-one, a methyl ketone from hydration of but-2-yne, is confirmed by the haloform test.
- JEE Main 2026 Apr 5 Shift 1, Chemistry Q14R, a methyl ketone, loses with /NaOH; acidification gives the acid S.
- JEE Main 2026 Jan 28 Shift 2, Chemistry Q13Only isopropylamine gives an alcohol whose oxidation product (acetone) passes the iodoform test.
- JEE Main 2026 Jan 28 Shift 1, Chemistry Q8Statement I: acetone (Z, from propyne) gives yellow with NaOI.
- JEE Main 2026 Jan 28 Shift 1, Chemistry Q9Statement D is false: propiophenone has no group, so it gives no yellow iodoform with /NaOH.
- JEE Main 2026 Jan 23 Shift 2, Chemistry Q8Which pairs the iodoform test can tell apart: methanol and ethanol, anisole and acetone.
- JEE Main 2026 Jan 23 Shift 2, Chemistry Q12True: A (NaOCl with KI gives KOI) and C (pent-3-en-2-one gives iodoform); KOI is an oxidising agent, isopropyl alcohol passes and methanoic acid fails.
- JEE Main 2026 Jan 23 Shift 2, Chemistry Q16Both alcohols from the ether (ethanol and butan-2-ol) give yellow iodoform with NaOI, which fixes the ether.
- JEE Main 2026 Jan 22 Shift 2, Chemistry Q20R gives the iodoform test but not Tollens', so it is a methyl ketone from Markovnikov hydration of a terminal alkyne.
- JEE Main 2026 Jan 21 Shift 1, Chemistry Q11P is a methyl ketone (iodoform positive) that also carries an acetal; dilute acid frees the CHO, so Q gives both tests.
- JEE Main 2025 Apr 4 Shift 2, Chemistry Q3Which give yellow with NaOI/NaOH: butan-2-ol and butan-2-one, not propan-1-ol, acetic acid or propanal.
- JEE Main 2025 Apr 3 Shift 1, Chemistry Q11Count the compounds that cannot give iodoform: butanal, pentan-3-one, pentanal and pentan-3-ol (4).
- JEE Main 2025 Jan 28 Shift 1, Chemistry Q12Both acetaldehyde and acetone have the group, so both give the iodoform reaction.
- JEE Advanced 2024 Paper 1, Chemistry Section 2 Q2Acetone with three gives , which cleaves to chloroform and calcium acetate: the haloform reaction.
- NEET 2018, Chemistry Q11Which gives a yellow precipitate with NaOI: 1-phenylethanol, which has the unit; Y is iodine.
Each question was read and checked by hand (list checked 2026-10-15). A question that shows its structures only as pictures can be missed by our search. Each opens in a new tab, with the question to try and our step-by-step solution.
Learn it with the chapter
Related named reactions
Practise questions like these
Concept-wise questions with instant solutions, and full mock tests, on Fundamenthol.