Gas production analysis during the thermal runaway (TR) process plays a crucial role in early fire accident detection in electric vehicles. To assess the TR behavior of lithium-ion batteries and perform early warning and risk estimation, gas production and analysis were conducted on LiNixCoyMn1-x-yO2/graphite and LiFePO4/graphite cells under various trigger conditions. The findings indicate that the unique gas signals can provide TR warnings earlier than temperature, voltage, and pressure signals, with an advanced warning time ranging from 16 to 26 min. A new parameter called the thermal runaway degree (TRD) is introduced, which is the product of the molar quantity of gas production and the square root of the maximum temperature during the TR process. TRD is proposed to evaluate the severity of TR. The research reveals that TRD is influenced by the energy density of cells and the trigger conditions of TR. This parameter allows for a quantitative assessment of the safety risk associated with different battery types and the level of harm caused by various abuse conditions. Despite the uncertainties in the TR process, TRD demonstrates good repeatability (maximum relative deviation < 5%) and can be utilized as a characteristic parameter for risk estimation in lithium-ion batteries.