There is no single molecular formula for gasoline, as it is a mixture of many different hydrocarbons. These hydrocarbons typically have between 5 and 10 carbon atoms, and can be either branched or unbranched. Some of the most common hydrocarbons found in gasoline include octane, heptane, and benzene.