Therefore, in this study of biogas production A comparative between pig farm and cattle farm. The number of pigs 500 and a number of cattle 528-1,127. To determine the amount of biogas pig and cattle farms that the efficiency of the biogas. Factors that affect biogas production and organic elements that are suitable for the production of biogas. The study found that swine manure solids than making biogas yield from cattle manure: pig is 5: 1. For efficiency found efficiency of the cow manure more pig manure and a payback period of less than cattle farm efficiency of biogas 100% by the investment of biogas unit can be recovered within 5.72 years.