The octane rating is an indication of how compressible the gasoline is before it spontaneously combusts. The octane rating says absolutely nothing at all about energy content and mileage. It really irks me that the oil companies market higher octane gas as “premium” when there is absolutely nothing inherently better about it. In fact, it could be much worse for your car.
In a typical car engine, the gasoline and air mixture is compressed. The spark plug then ignites it, and the resulting BANG is what makes your car go. If you use gasoline with too low of an octane rating for your car, what happens is that the gasoline can go BANG all by itself just from the compression. Since this happens earlier than it was supposed to, it’s called predetonation and it is a very bad thing for your car. These days, most cars have knock sensors that allow the engine computer to fiddle with the timing and prevent you from doing any permanent harm to the engine, but using too low of an octane still isn’t a good thing for your engine.
Using too high of an octane is just wasting your money, though. At best, all you are doing is wasting money on gasoline that won’t spontaneously combust at pressures that your engine doesn’t reach anyway. In other words, you are paying extra for something that makes absolutely no difference at all to your engine.
Sometimes though, higher octane gasoline burns more slowly. Since your engine is tuned to a particular octane, the higher octane can make your engine have worse performance. In other words, your mileage can actually go DOWN when using higher octane gasoline. Instead of making it better, you are paying more money to make it worse.
Want to make higher octane gas? Mix it with alcohol. Alcohol has a higher octane rating than gasoline, but it also has significantly less energy in it. Your mileage will go down as your octane rating goes up.
High performance cars often are built around high compression engines. These cars need higher octane gasoline or they’ll experience early detonation (pinging and knocking). This has led to the perception that high octane gas is for high performance cars, and the common misconception that octane equals performance. It doesn’t. A car that needs high octane gas will perform very poorly on low octane gas, but a car that needs low octane gas will not perform better with high octane gas.
Use the octane rating specified in your car’s manual. Anything lower can be harmful, and anything higher will at best be wasting money, and at worst will actually decrease performance while wasting money.