How to Produce Biogas from Cow Dung: A Step-by-Step Guide for Dairy Farms

📅 March 31, 2026 👤 By Cathy

Cow dung is not only a waste-management problem for dairy farms. With the right manure handling and anaerobic digestion system, it can also become a source of biogas, heat, electricity, and reusable nutrients.

Biogas production from cow dung typically involves manure collection, pretreatment, anaerobic digestion, gas treatment, energy utilization, and digestate management. The correct system depends on manure volume, solids content, climate, site conditions, investment budget, and how the farm plans to use the recovered energy.

Dairy farm cow dung biogas production process from manure collection to energy recovery

From our experience evaluating dairy manure projects, the part buyers most often underestimate is not whether biogas can be produced. It is whether the complete system can generate an acceptable return on investment.

Collection pits, pumps, separators, digesters, gas treatment, generators, storage ponds, and professional operation all require investment. For many farms, especially smaller operations, the payback period can be long.


Step 1: Calculate the Actual Manure Flow

Herd size is the starting point because more cows normally mean more manure.

But the digester should not be sized from cow numbers alone.

The design should also consider:

  • Manure and urine
  • Milking-center wastewater
  • Flush water
  • Bedding materials
  • Sand and feed residues
  • Total solids concentration
  • Seasonal variation

Two farms with the same number of cows can therefore require very different biogas systems.

A scraped-manure barn may produce concentrated slurry, while a flush system can produce a much larger volume of diluted wastewater.


Step 2: Design Manure Collection and Pretreatment

A reliable biogas system begins before the digester.

Typical manure collection may include:

Barn → Manure Scraper / Flush System → Collection Pit → Equalization → Pretreatment → Digester

Cow manure wastewater often contains long grass, sawdust, sand, stones, and other foreign materials.

If these enter downstream equipment directly, they can cause:

  • Pump blockage
  • Pipeline clogging
  • Sediment accumulation
  • Mixer wear
  • Reduced effective digester volume

For this reason, screening, sand removal, mixing, and equalization should be considered during the initial design.

Dairy manure collection pit and pretreatment system before anaerobic digestion


Step 3: Use Solid-Liquid Separation Where Required

For many commercial dairy manure projects, solid-liquid separation is installed before the main anaerobic treatment stage.

This is a common configuration because separation can remove a large portion of coarse suspended material and reduce the risk of downstream blockage.

The separated solids may then be:

  • Composted
  • Processed into organic fertilizer
  • Further dewatered
  • Used in suitable bedding-recovery systems

However, there is an important balance.

Organic solids also contain potential biogas energy. Removing too much biodegradable material before digestion can reduce methane potential.

The objective should therefore be:

Remove problematic solids while retaining an appropriate organic load for the selected anaerobic process.


Step 4: Choose the Right Digester Technology

It is not accurate to select a digester only according to herd size.

In practice, however, there are some common tendencies.

Smaller or lower-budget projects often consider covered anaerobic lagoons or black membrane biogas ponds, while larger commercial projects may use CSTR, USR, or other engineered anaerobic digestion systems.

The final decision should consider:

  • Daily manure volume
  • Solids concentration
  • Climate
  • Available land
  • Terrain
  • Ground conditions
  • Investment budget
  • Required process stability
  • Operator capability

Covered Anaerobic Lagoon

Covered lagoons are often attractive when manure is relatively dilute, sufficient land is available, and the project needs to control capital expenditure.

They generally have lower mechanical complexity than fully engineered tank systems.

CSTR or USR

CSTR and similar engineered reactors provide greater control over temperature, mixing, organic loading, and process stability.

They are more commonly considered for larger projects or applications requiring more stable year-round operation.

The trade-off is higher investment, automation, maintenance, and operational requirements.

Covered lagoon and CSTR anaerobic digestion systems for dairy manure


Step 5: Keep Feed Concentration and Temperature Stable

A biogas digester is a biological system.

Large changes in manure concentration or organic loading can disturb the microorganisms responsible for methane production.

One important risk is volatile fatty acid (VFA) accumulation.

If organic material enters too quickly, acid-forming bacteria can produce VFAs faster than methane-producing microorganisms can consume them.

This may lead to:

VFA accumulation → pH instability → reduced methanogenic activity → lower biogas production

Temperature instability can create similar problems.

For this reason, commercial systems should pay close attention to:

  • Equalization
  • Controlled feeding
  • Temperature
  • pH
  • Organic loading
  • Biological stability

Step 6: Treat the Biogas Before Using It

Raw biogas contains methane, carbon dioxide, moisture, and contaminants such as hydrogen sulfide (H₂S).

H₂S deserves particular attention because it is corrosive and harmful to engines, pipelines, valves, and heat exchangers.

A commercial gas-handling system may therefore include:

  • H₂S removal
  • Moisture removal
  • Condensate drainage
  • Pressure control
  • Gas storage
  • Safety valves
  • Flare equipment

Gas treatment should be designed together with the generator or boiler rather than added later.


Step 7: Use Combined Heat and Power Where Practical

Modern dairy biogas projects often use Combined Heat and Power (CHP).

The biogas engine generates electricity, while heat from the engine cooling system and exhaust is recovered through heat exchangers.

The electricity can support:

  • Milking equipment
  • Milk cooling
  • Barn ventilation
  • Pumps
  • Farm electrical loads

Recovered heat can be used for:

  • Digester heating
  • Winter heating
  • Hot water
  • Cleaning
  • Dairy processing

Dairy biogas CHP system generating electricity and recovering heat

Using both electricity and recovered heat can significantly improve the total energy utilization of a biogas project.


Step 8: Plan the Digestate Outlet Before Construction

Anaerobic digestion does not make nutrients disappear.

The digestate still contains:

  • Nitrogen
  • Phosphorus
  • Potassium
  • Water
  • Fiber
  • Mineral solids

If the farm has no practical outlet for the liquid digestate, the project may simply replace one manure-management problem with another.

Before construction, the farm should already know whether digestate will be:

  • Used for fertigation
  • Applied to cropland
  • Further separated
  • Composted
  • Processed into fertilizer
  • Transported off site

Dairy digestate storage and fertigation after anaerobic digestion


Is a Complete Biogas Power System Worth It for a Small Dairy?

Not always.

This is one of the most important commercial realities.

Small biogas projects may be technically possible but financially difficult because the farm still needs to pay for:

  • Gas treatment
  • Generator equipment
  • Electrical controls
  • Maintenance
  • Professional operation
  • Equipment depreciation
  • Grid connection where required

From the projects we evaluate, very small systems, including projects with biogas production below roughly 1,000 m³/day, should be examined particularly carefully.

This is not a fixed industry threshold. Electricity prices, subsidies, heat demand, construction cost, and local regulations can change the economics significantly.

For many small and medium dairy farms, a better strategy is a lightweight upgrade.

This may include:

  • Reusing an existing biogas pond
  • Improving gas collection
  • Upgrading desulfurization
  • Using biogas internally
  • Recovering heat where stable thermal demand exists
  • Avoiding unnecessary generation or grid-export equipment

The objective is not maximum equipment investment.

It is lower manure-management cost and higher internal energy utilization.


How Does the Strategy Change for Large Dairy Farms?

Large commercial dairies have different economics because manure-management infrastructure is required regardless of whether biogas is produced.

A larger system may include:

Barns → Central Collection → Pretreatment → Solid-Liquid Separation → Equalization → Anaerobic Digestion → Gas Treatment → CHP

The digestate then continues to:

Storage / Further Separation → Fertigation / Fertilizer Management

At this scale, system reliability, automation, energy utilization, and professional operation become more important than simply minimizing initial equipment cost.


Why Do Dairy Biogas Projects Fail?

In our experience, the most common problems are usually not caused by one single piece of equipment.

They come from several factors working together:

  • Large fluctuations in feed concentration
  • Excessive sand, straw, and foreign materials
  • VFA accumulation and system acidification
  • Poor temperature control
  • H₂S corrosion
  • Inadequate generator maintenance
  • No practical digestate outlet
  • Lack of professional operators

A biogas plant combines biological, mechanical, electrical, and environmental systems.

It cannot simply be installed and left to operate without monitoring.


The Most Commonly Underestimated Issue: ROI

Before purchasing equipment, the farm should calculate more than theoretical gas production.

A realistic feasibility study should consider:

Factor What to Evaluate
Capital Cost Civil works, equipment and installation
Electricity Value of electricity actually used or sold
Heat Value of recovered thermal energy
Maintenance Pumps, mixers, gas treatment and generator
Labor Professional operators
Digestate Storage, transport and application
Depreciation Long-term equipment replacement

This is why a technically successful biogas plant can still become a poor investment.

The system should be designed around usable economic value, not maximum theoretical gas production.


FAQ

Is a black membrane biogas lagoon suitable for a small dairy?

It can be, especially when manure is relatively dilute, sufficient land is available, and the project needs a lower-cost and simpler system.

However, climate, terrain, manure characteristics, and investment budget still need to be evaluated.

Is CSTR always better than a covered lagoon?

No.

CSTR provides stronger process control but also requires higher investment and more professional operation.

The better system depends on the complete project.

Should solid-liquid separation be before the digester?

For many dairy projects, upstream separation is useful because grass, sand, sawdust, and coarse solids can create operating problems.

However, excessive removal of biodegradable solids may reduce potential gas production, so the separation target should match the digestion process.

Can a small dairy make money from biogas electricity?

Sometimes, but a complete generator-based project can be difficult to justify at small scale.

Internal gas use, existing-digester upgrades, and CHP where useful heat demand exists may offer better economics.


Conclusion

Producing biogas from cow dung is technically straightforward. Building a system that remains economical and reliable for many years is much harder.

A practical dairy biogas project should follow this logic:

Understand the Manure → Evaluate the Site → Plan Pretreatment → Select the Digestion Process → Decide How Energy Will Be Used → Plan Digestate Management → Calculate ROI

For smaller farms, this often means controlling investment and using existing infrastructure wherever possible.

For larger dairy operations, manure collection, solid-liquid separation, anaerobic digestion, CHP, digestate management, and automation should be designed as one integrated system.

At NexAgri Solutions, we evaluate dairy manure projects from this complete system perspective rather than treating the digester as an isolated piece of equipment.

The goal is not to build the largest possible biogas plant.

It is to build a system the farm can operate reliably and economically over the long term.