# Why is methyl iodide more dense than ethyl iodide, even though the latter has more carbon atoms?

It is understood that more carbon atoms present in a hydrocarbon, the greater the density of the hydrocarbon.

But then why does $\mathrm{CH_{3}I}$ have a greater density than $\mathrm{C_{2}H_{5}I}$?

• Because the iodides are not hydrocarbons, maybe? – Oscar Lanzi Aug 3 '17 at 10:20
• @OscarLanzi If so then the effect of iodide should be pronounced on both ethyl iodide and methyl iodide equally and more on ethyl iodide as it is having one more carbon? – Abdul Khan Aug 3 '17 at 15:05
• Spacing between iodine atoms in different size molecules. – Oscar Lanzi Aug 3 '17 at 15:10