The key difference between gasoline and kerosene and diesel is that the gasoline is a lightweight hydrocarbon mixture that ranges from 4 to 12 carbon atoms per molecule and kerosene is a moderate weight hydrocarbon mixture that ranges from 10 to 16 carbon atoms per molecule whereas diesel is a heavyweight hydrocarbon mixture that ranges from 8 to 21 carbon atoms per molecule.
In brief, when considering the difference between gasoline and kerosene and diesel, the real difference lies in their boiling points, which are different from each other. The three petroleum products are separated by heating crude oil to different temperatures. There, different hydrocarbon chains are separated and pulled out depending upon their boiling points.