As the main unconventional natural gas reservoirs, shale gas reservoirs and coalbed methane (CBM) reservoirs belong to adsorptive gas reservoirs, i.e., gas reservoirs containing adsorbed gas. Shale gas and CBM reservoirs usually have the characteristics of rich adsorbed gas and obvious dynamic changes of porosity and permeability. A generalized material balance equation and the corresponding reserve evaluation method considering all the mechanisms for both shale gas reservoirs and CBM reservoirs are necessary. In this work, a generalized material balance equation (GMBE) considering the effects of critical desorption pressure, stress sensitivity, matrix shrinkage, water production, water influx, and solubility of natural gas in water is established. Then, by converting the GMBE to a linear relationship between two parameter groups related with known formation/fluid properties and dynamic performance data, the straight-line reserve evaluation method is proposed. By using the slope and the y -intercept of this straight line, the original adsorbed gas in place (OAGIP), original free gas in place (OFGIP), original dissolved gas in place (ODGIP), and the original gas in place (OGIP) can be quickly calculated. Third, two validation cases for shale gas reservoir and CBM reservoir are conducted using commercial reservoir simulator and the coalbed methane dynamic performance analysis software, respectively. Finally, two field studies in the Fuling shale gas field and the Baode CBM field are presented. Results show that the GMBE and the corresponding straight-line reserve evaluation method are rational, accurate, and effective for both shale gas reservoirs and CBM reservoirs. More detailed information about reserves of shale gas and CBM reservoirs can be clarified, and only the straight-line fitting approach is used to determine all kinds of reserves without iteration, proving that the proposed method has great advantages compared with other current methods.