An octane rating is the primary measure of a fuel's stability, and is determined by judging how much pressure is required for a fuel to spontaneously combust within an internal combustion engine.