Residual biomass is a renewable resource with the ability to provide energy solutions at a local and regional level. In fact, this resource is a very good alternative to provide electricity in rural or non-interconnected areas, where the livestock and agricultural sectors are the most representative. This book presents a review focused on the study of the biochemical process of anaerobic digestion (AD), its mathematical modeling and its respective computational implementation, including the development of a software tool that facilitates its calculation and application. In this way, the reader will have a support tool that allows him to evaluate the electrical potential of a region or a specific place, establish the most appropriate biogas-electricity conversion technologies and determine the conversion efficiency of a power generation system. electricity based on biodigesters (SGEB).