Gasoline does not have a single chemical formula. It is a mixture of hundreds of different hydrocarbon molecules, mostly containing between four and twelve carbon atoms, along with smaller amounts of additives and oxygenated compounds like ethanol. If you had to write something on a whiteboard to represent gasoline, the closest approximation chemists sometimes use is C₈H₁₈ (isooctane), but that is a reference compound for rating fuel quality, not a description of what is actually in the tank. The reality is messier and more interesting than any single formula can capture.
What Gasoline Is Made Of
Gasoline is built primarily from carbon and hydrogen atoms arranged into molecules of various shapes and sizes. These hydrocarbons fall into a handful of families, each with distinct properties. Straight-chain and branched-chain alkanes (sometimes called paraffins) make up a large share of the blend. Cyclic hydrocarbons called naphthenes contribute another portion. Aromatic compounds, which contain a ring structure related to benzene, add still more. And in modern fuel, olefins (hydrocarbons with at least one double bond between carbon atoms) round out the mix. A typical gallon of gasoline might contain over 200 individual chemical compounds from these families, all blended together.
Modern gasoline derives from multiple refinery processes. Rather than coming from a single distillation step, it is assembled from fractions produced by reforming, cracking, isomerization, and alkylation, with the addition of oxygenated compounds and light hydrocarbons like butane.1Journal of Separation Science. Multidimensional gas chromatographic determination of naphthenes, paraffins, olefins, and aromatics in reformed gasolines Each of these refinery streams has a different chemical profile. The reformate stream, for example, is rich in aromatics. The cracked stream contains more olefins. The final product is a carefully tuned blend of all of them.
Carbon, hydrogen, and oxygen are the major elements in modern fuels.2SAE Technical Paper Series. Elemental Composition Determination and Stoichiometric Air-Fuel Ratios of Gasoline Containing Ethanol By mass, gasoline is roughly 85 to 88 percent carbon and about 12 to 15 percent hydrogen, with trace amounts of sulfur, nitrogen, and oxygen depending on what has been blended in. That elemental breakdown is fairly stable even though the specific molecules vary, which is one reason engines can run reliably on fuel from different refineries and regions.
Why Every Batch of Gasoline Is Different
If gasoline were a single compound, every gallon would be identical. Because it is a blend, the composition shifts constantly. Refineries adjust the recipe based on the crude oil they start with, the season, local environmental regulations, and the octane grade being produced. Winter gasoline tends to include more volatile light hydrocarbons like butane, which help engines start in cold weather. Summer blends reduce those lighter components to limit evaporative emissions when temperatures climb. The result is that gasoline purchased at a station in January can have a meaningfully different chemical profile from gasoline purchased at the same station in July, even from the same refinery.
Regional regulations also reshape the blend. Some areas require reformulated gasoline with lower levels of certain pollutants, which changes how much of each hydrocarbon family the refinery puts in. Octane grade matters too: premium fuel typically contains a higher proportion of branched alkanes and aromatics, which resist premature ignition (more on that shortly), while regular grade uses a slightly different ratio of the same families. None of these variations give gasoline a fixed formula. They just move the proportions around within the same general family of hydrocarbons.
Ethanol and the Oxygen Factor
Most gasoline sold in the United States today contains up to 10 percent ethanol by volume (often labeled E10), and higher ethanol blends like E15 and E85 are available in many areas. Ethanol is an alcohol with the formula C₂H₅OH. Unlike the hydrocarbons that make up the rest of the fuel, ethanol contains oxygen, which changes the way the fuel burns. Adding ethanol increases the oxygen content of the fuel blend, which in turn alters the ratio of air to fuel needed for complete combustion.2SAE Technical Paper Series. Elemental Composition Determination and Stoichiometric Air-Fuel Ratios of Gasoline Containing Ethanol
Ethanol’s presence in the blend is another reason why “the formula for gasoline” is a moving target. A gallon of E10 has a fundamentally different molecular makeup from a gallon of pure petroleum gasoline, even though both are sold under the same name at the pump. The ethanol displaces some of the hydrocarbon volume, lowers the overall energy content per gallon slightly (ethanol packs less energy per unit volume than petroleum hydrocarbons), and changes the combustion chemistry. Researchers study these blends to understand how the oxygenated component affects engine performance and exhaust emissions under various operating conditions.3PubMed Central. Effects of Ethanol-Gasoline Blending on Combustion, Performance, and Emissions of a Spark Ignition Engine: An Experimental and Detailed Chemistry-Based Numerical Study The upshot for you as a driver is that the gasoline you buy is rarely if ever a pure hydrocarbon mixture anymore.
How Molecular Shape Affects Engine Performance
The reason refineries go to so much trouble blending different hydrocarbon families is that molecular structure directly controls how fuel behaves inside an engine. The key concern is knock, the uncontrolled detonation of fuel that causes a metallic pinging sound and can damage engine components over time. Early researchers discovered that knock was not caused by fuel igniting too early but by a sudden spike in pressure after the spark plug had already fired.4Organometallics. The Rise and Fall of Tetraethyllead. 2. Different molecules resist this kind of runaway combustion to very different degrees.
Octane rating is the standard measure of a fuel’s resistance to knock. The scale is anchored by two reference compounds: isooctane (2,2,4-trimethylpentane, a branched alkane assigned a rating of 100) and n-heptane (a straight-chain alkane assigned a rating of 0). Regular unleaded gasoline in the United States is rated 87, meaning it behaves roughly like a mixture of 87 percent isooctane and 13 percent n-heptane in a standardized test engine. Premium grades typically range from 91 to 93.
Research going back decades has mapped out how molecular structure relates to knock resistance. In general, branched hydrocarbons and aromatics resist knock far better than their straight-chain counterparts. The American Petroleum Institute’s Research Project 45 tested more than 300 pure compounds and found consistent structural patterns. Shorter main chains, more branching, branching concentrated near the center of the molecule, smaller ring sizes in cyclic compounds, and shorter side chains on aromatic rings all boost octane rating.5Fuel. Determination of octane numbers of gasoline compounds from their chemical structure by 13C NMR spectroscopy and neural networks This is why isooctane, with its compact, heavily branched shape, sits at the top of the scale while long, straight n-heptane sits at the bottom. Refineries use this knowledge to adjust the proportions of each hydrocarbon family and hit the target octane grade.
This structure-performance relationship also explains why “the formula” for premium gasoline looks different from the formula for regular. Premium is not made from a different base material; it has a higher proportion of the molecular shapes that resist knock. More branched alkanes, more aromatics, sometimes more of the reformate stream from the refinery. The chemistry under the hood, literally, is one of molecular geometry.
From Leaded to Unleaded
For most of the twentieth century, the easiest way to boost octane was not to change the hydrocarbons at all but to add a small amount of tetraethyllead, an organometallic compound with the formula Pb(C₂H₅)₄. Tetraethyllead was remarkably effective at suppressing knock at very low concentrations. Its discovery in the early 1920s solved a pressing engineering problem and shaped the global fuel supply for decades.4Organometallics. The Rise and Fall of Tetraethyllead. 2.
The trouble, of course, was that burning leaded gasoline released lead into the air, soil, and water. Lead is a potent neurotoxin even at low concentrations. By the 1970s, mounting evidence of widespread lead poisoning, combined with the introduction of catalytic converters (which lead damages), led to a phaseout in the United States. Most countries have since banned leaded gasoline for road vehicles entirely. The last country to do so for on-road use was Algeria, which stopped sales in 2021. One legacy fuel still uses lead: a specialized aviation gasoline called 100LL (low lead), used in piston-engine aircraft. Finding a replacement that matches its performance without lead has proven surprisingly difficult, though unleaded alternatives are now in development.
With lead gone, refineries had to achieve octane targets by changing the hydrocarbon blend itself rather than relying on an additive. This drove greater use of catalytic reforming (which converts low-octane straight-chain hydrocarbons into high-octane aromatics and branched alkanes), isomerization (which rearranges straight chains into branched ones), and alkylation (which combines small molecules into larger, branched ones). The modern refinery’s sophistication in blending these streams is a direct consequence of needing to replace what a few milliliters of tetraethyllead used to do cheaply.
Benzene, Sulfur, and the Ongoing Cleanup
Raising octane through reforming and aromatics brought its own problems. Benzene, the simplest aromatic hydrocarbon (C₆H₆), is a known human carcinogen. Because reformate is rich in aromatics including benzene, the shift away from leaded fuel initially increased benzene in the gasoline supply. Regulations caught up. In the United States, the EPA’s Mobile Source Air Toxics rule capped the annual average benzene content of gasoline at 0.62 percent by volume starting in 2011. The effects have been measurable. In Anchorage, Alaska, for example, the average annual benzene content in gasoline dropped by about 70 percent after the regulation took effect, falling from roughly 5 percent to about 1.5 percent by weight. Ambient benzene concentrations in the air fell by about half in parallel.6Atmospheric Environment. Impact of a new gasoline benzene regulation on ambient air pollutants in Anchorage, Alaska
Sulfur is the other contaminant that has shaped modern gasoline chemistry. Crude oil naturally contains sulfur compounds like mercaptans, sulfides, thiophenes, and benzothiophenes. When these burn, they produce sulfur dioxide and sulfate particulates, both of which are harmful to human health and the environment. Sulfur also poisons catalytic converters, reducing their ability to clean up other pollutants in the exhaust. Refineries now run a process called hydrodesulfurization, which uses heat and hydrogen pressure to strip sulfur out of the fuel and convert it to hydrogen sulfide, leaving behind cleaner hydrocarbon products.7PubMed Central. Advances in Gasoline Hydrodesulfurization Catalysts: The Role of Structure–Activity Relationships and Machine Learning Approaches In the United States, the EPA’s Tier 3 standard limits sulfur in gasoline to an annual average of 10 parts per million, down from 30 ppm under the previous Tier 2 rule. Europe’s Euro 5 standard imposes a similar ceiling.
The combined effect of benzene and sulfur regulations is that today’s gasoline, while still a complex hydrocarbon mixture, is a cleaner version of what was pumped two or three decades ago. Each regulatory step has forced refineries to adjust the blend yet again, adding another layer of complexity to a product that was never simple to begin with.
Why Isooctane Gets to Stand In for the Whole Mix
Given all this complexity, it is worth understanding why C₈H₁₈ keeps showing up as the “formula for gasoline” in textbooks and quick-reference answers. The convention exists because isooctane (specifically the branched isomer 2,2,4-trimethylpentane) sits at the heart of how octane rating works. When engineers needed a standardized test for knock resistance in the 1920s, they chose two pure compounds to anchor the scale: isooctane for the high end and n-heptane for the low end. Isooctane became synonymous with good gasoline performance, and its molecular formula became a convenient shorthand.
The shorthand is useful but misleading if you take it literally. Real gasoline contains molecules with as few as four carbons (butane, C₄H₁₀) and as many as twelve or more. It contains ring structures and double bonds that C₈H₁₈ does not account for. It contains ethanol, an entirely different kind of molecule. And the average carbon number of the blend shifts depending on the grade, the season, and the regulations in your region. Saying gasoline “is” C₈H₁₈ is a bit like saying a forest “is” an oak tree: it picks out a representative example while ignoring the enormous diversity around it.
A slightly more accurate shorthand, sometimes used in combustion research, is to describe gasoline as a mixture with an average molecular formula around C₇H₁₃ to C₈H₁₅, reflecting the fact that the blend includes unsaturated and aromatic compounds (which have fewer hydrogen atoms relative to carbon than pure alkanes do). But even this is an approximation. No single formula captures what gasoline is, because gasoline is defined by performance specifications, not by chemical identity. If a blend meets the octane rating, vapor pressure, distillation curve, and emissions standards, it is gasoline, regardless of which specific molecules achieve those targets.
What Happens When Gasoline Sits Too Long
Because gasoline is a blend of reactive organic molecules rather than a single stable compound, it degrades over time. The lighter, more volatile components evaporate first, which changes the vapor pressure and makes the remaining fuel harder to ignite. Meanwhile, some of the unsaturated hydrocarbons (particularly olefins) undergo slow oxidation reactions, forming gummy, varnish-like deposits. These deposits can clog fuel injectors, coat intake valves, and gum up carburetors in older engines.
Ethanol in the blend adds another wrinkle. Ethanol is hygroscopic, meaning it absorbs moisture from the air. In a partially filled tank left sitting for months, the ethanol can absorb enough water to phase-separate, forming a distinct water-ethanol layer at the bottom of the tank and a degraded hydrocarbon layer on top. Neither layer burns well. This is why fuel stabilizer additives are commonly recommended for seasonal equipment like lawnmowers, boats, and generators that may sit unused for weeks or months. The stabilizers are antioxidants that slow the gum-forming oxidation reactions, buying the fuel a longer usable life.
The general rule of thumb is that untreated gasoline remains in good condition for roughly three to six months under typical storage conditions. Ethanol-blended fuel tends to degrade faster than pure petroleum gasoline, especially in warm or humid environments. If you have stored fuel for longer than that, you might notice harder starting, rough idling, or reduced power, all symptoms of a blend whose composition has drifted away from its engineered specifications. The lack of a fixed chemical formula means there is no bright line between “good” and “bad” gasoline; it is a gradual shift as the molecules change.