The need to improve the sustainability of bioethanol production from sugarcane in Brazil has intensified the search for process energy optimization coupled with the environmental suitability of the generated coproducts and wastes. In this scenario, the anaerobic digestion of vinasse (the most abundant effluent from a sugarcane biorefinery) arises as an interesting altemative because, in addition to promoting the stabilization of organic matter, it also enables energy generation from biogas. In this work, vinasse anaerobic digestion in biorefineries was evaluated in terms of energy, environmental, and economic considerations. The energy potential from vinasse of a single sugarcane biorefinery, which is generally lost due to its application to soil with no treatment, was found to be comparable to the electricity supply demand of a city of approximately 130,000 inhabitants or to the surplus energy from bagasse burning that is exported by some sugarcane mills in Brazil. On a national level, such energy is comparable to the electricity generated by some hydroelectric plants, reaching 7.5\% of the electricity generated by the world's largest hydroelectric plant. When burned in boilers, biogas could be used to stimulate second-generation ethanol production because almost 12\% of the bagasse could be released from burning and the biogas used to attenuate the process energy demand. As an alternative fuel, biogas could replace up to 40\% of the annual diesel supply in the agricultural operations of a sugarcane biorefinery and still provide approximately 14 MW h annually from cogeneration. An environmental assessment demonstrated significant savings in terms of greenhouse gas emissions that could financially benefit the biorefineries due to carbon credit commercialization. Such revenue would be more than enough to cover the operational costs of an anaerobic digestion plant. A global economic analysis revealed that the application of biogas as a diesel replacement would be the most attractive alternative for a sugarcane biorefinery with anaerobic digestion of vinasse. (C) 2013 Elsevier Ltd. All rights reserved.