Research on the separation of H2S and NH3 gases from tofu waste water-based biogas has been conducted to improve the content of CH4 of biogas in order to increase calorific value. Biogas from tofu waste water contained many kinds of gases such as: CH4 of 53-64%, CO2 of 36-45%, H2S of 3,724-5,880 mg/Nm(3), NH3 of 0.19-70.36 mg/Nm(3), and H2O of 33,80019,770,000 mg/Nm(3). In fact, CO2, H2S, NH3, and moisture are impurities that have disturbance to human and environment, so that they are necessary to be separated from biogas. Particularly, H2S and NH3 have high toxicity to people, particularly the workers in the tofu industry. Therefore, separation of H2S and NH3 from biogas to increase calorific value is the focus of this research. The method used in this research is by adsorption of H2S and NH3 gases using activated carbon as adsorbent. It also used condensation as pretreatment to remove moisture content in biogas. Biogas was flowed to adsorption column (70 cm height and 9 cm diameter containing activated carbon as much as 500 g) so that the H2S and NH3 gases were adsorbed. This research was conducted by varying flow rate and flow time of biogas. From this experiment, it was found that the optimum adsorption conditions were flow rate of 3.5 l/min and 4 hours flow time. This condition could reach 99.95% adsorption efficiency of H2S from 5,879.50 mg/Nm(3) to 0.67 mg/Nm(3), and 74.96% adsorption efficiency of NH3 from 2.93 mg/Nm(3) to 0.73 mg/Nm(3). The concentration of CH4 increased from 63.88% to 76.24% in the biogas.