Gas explosion and detonated waves parameters were determined for an ideal gas in an enclosed volume with rigid walls in gas systems on the border between explosive gases and liquids for different boundary conditions. Examples of the explosion of the combustible mixture of methane and air, with full and partial oxidation of methane have been considered.