How to Generate Electricity from Biogas: Step-by-Step Guide

Jun 01, 2026

Biogas power generation is a mature technology that converts organic waste – such as agricultural residues, livestock manure, municipal wastewater, or industrial organic effluent – into renewable energy through anaerobic digestion. The resulting biogas, after purification, drives a gas engine or generator to produce stable electricity and recoverable heat.

This guide is written for small‑scale operators, technical enthusiasts, and engineers starting to explore biogas electricity. It walks you step by step from waste collection to lighting up a bulb, using the same core principles applied in industrial biogas electricity plants, just on a smaller scale.

Step 1: Collect the Right Organic Waste

Biogas comes from anaerobic digestion – bacteria breaking down organic matter without oxygen. Almost any wet organic waste works, but some are better than others.

Best feedstocks for biogas electricity:

Feedstock Biogas potential (m³ per ton) Notes
Cow dung 20–40 Most common, easy to handle
Food waste 80–150 High yield but needs pre‑processing
Pig manure 40–60 Good yield, high water content
Poultry litter 60–100 High ammonia – needs special digester
Crop residue 50–100 Works best when mixed with manure

 How to make electricity from gobar gas (cow dung gas): If you have cows, you already have the perfect feedstock. One cow produces about 10–15 kg of dung per day, which can generate roughly 0.5–1 m³ of biogas – enough for 1–2 kWh of electricity per day.

 Pro tip: Mix different feedstocks. A mix of cow dung and food waste produces more biogas than either alone.

Step 2: Build or Buy an Anaerobic Digester

The digester is where the magic happens. For small‑scale electricity generation, you have three options:

Option A: Floating‑dome digester (DIY, very low cost)

  • Made from a drum or tank inverted inside a larger container
  • Biogas collects under the dome, lifting it
  • Good for 1–10 m³ of biogas per day
  • Cost: $200–$800 (DIY)

Option B: Fixed‑dome digester (more durable)

  • Brick or concrete dome built underground
  • Lasts 20+ years
  • Good for 5–50 m³ per day
  • Cost: $1,000–$5,000 (depending on size)

Option C: Prefabricated biogas system (plug‑and‑play)

  • HDPE or fibreglass tanks, ready to install
  • Includes inlet, outlet, gas outlet, safety valve
  • Good for 10–200 m³ per day
  • Cost: $5,000–$30,000

What size digester do you need for electricity?
A rule of thumb: 1 m³ of biogas = 2 kWh of electricity. So if you want to run a 5 kW generator for 5 hours (25 kWh), you need about 12–15 m³ of biogas. That requires roughly 500–800 kg of cow dung per day.

For most small farms (5–20 cows), a 10–20 m³ digester is enough for lighting and small tools.

Step 3: Capture and Clean the Biogas

Raw biogas contains 50–70% methane (the fuel) plus:

  • Hydrogen sulfide (H₂S) – corrosive, smells like rotten eggs
  • Water vapor – can damage your generator
  • Carbon dioxide (CO₂) – reduces energy content but does not need removal for electricity

For electricity generation, you must remove H₂S and water. CO₂ removal (upgrading to biomethane) is optional and usually not worth it for small‑scale power.

Simple H₂S removal (low‑cost)

  • Iron filings or steel wool in a transparent pipe: H₂S reacts with iron, turning black. Replace when saturated.
  • Commercially available H₂S scavenger media (e.g., SulfaTreat, Iron Sponge)

Water removal

  • Run the gas pipe through a cold spot (underground or with a small radiator) so water condenses out.
  • Install a simple water trap (drip leg) at the lowest point.

After cleaning, the biogas is ready for your generator.

Step 4: Generate Electricity with a Biogas Generator

This is the step where biogas is used to generate electricity. A biogas generator is simply an internal combustion engine (usually a modified gasoline or diesel engine) coupled with an alternator.

Choosing a biogas generator

Generator size Best for Approx. price (new) Biogas needed (m³/hour)
1–3 kW Single home, lights, phone charging $1,000–$3,000 0.5–1.5
5–10 kW Small farm, workshop, water pump $4,000–$8,000 2.5–5
15–30 kW Dairy farm, small factory, school $10,000–$20,000 7.5–15
50–100 kW Larger farms, industrial pilot $25,000–$60,000 25–50

Can you convert a diesel generator to run on biogas?
Yes. You need a carburetor conversion kit (adds a gas mixer) and a spark ignition system instead of compression ignition. Many companies sell conversion kits for popular engine models (e.g., Changchai, Lister, Kubota).

 Important: Biogas burns slower than natural gas. Your generator must have adjustable ignition timing. Most dedicated biogas generators come pre‑configured.

Step‑by‑step to start generating:

  1. Connect your gas pipe from the digester (after cleaning) to the generator's inlet.
  2. Open the gas valve slowly – purge air from the line.
  3. Set the engine to gas mode (if dual‑fuel) or start on gasoline then switch.
  4. Crank the engine. It may take a few tries to get the air/fuel mixture right.
  5. Once running, adjust the mixture screw for smooth operation.
  6. Connect your electrical load (lights, batteries, appliances).

 Safety first: Biogas is flammable. Install a flame arrestor and a gas shutoff valve. Never run a generator indoors – carbon monoxide is deadly.

Step 5: Use or Store the Electricity

Now that you're producing electricity, what do you do with it?

Option 1: Direct use

Connect your generator to a transfer switch or directly to equipment. Works best when the generator runs while you need power (e.g., during daytime for water pumps, cooling, tools).

Option 2: Battery storage (recommended for small systems)

  • Use deep‑cycle batteries (lead‑acid or lithium)
  • Install a charge controller to protect batteries
  • Add an inverter to convert DC to AC for home appliances
  • Now you have 24/7 power even when the generator is off

Option 3: Grid connection (net metering)

In some countries, you can connect a small biogas generator to the grid and sell excess power. This requires a grid‑tie inverter, utility permission, and safety disconnects.

 For most small farms, battery storage + inverter is the simplest and most reliable setup.

Summary Table: Input vs Output (Realistic Example)

Number of cows Dung per day Biogas per day Electricity per day What it can power
5 cows 50–75 kg 2.5–3.5 m³ 5–7 kWh 10 LED lights + fridge + phone charging
15 cows 150–225 kg 7–10 m³ 14–20 kWh Small farm (lights, fans, small water pump, tools)
30 cows 300–450 kg 15–22 m³ 30–44 kWh Entire dairy farm (milking machine, cooling, lights, workshop)

These are rough estimates. Actual output depends on digester type, temperature, and feedstock quality.

Frequently Asked Questions

 Can I run my whole house on biogas electricity?
Yes, if you have enough cows or food waste. A typical home uses 15–30 kWh per day. That requires roughly 10–15 cows or a small food waste digester (200–300 kg per day).

 How much does a small biogas electricity system cost?
A complete small system (digester + cleaning + 5 kW generator + batteries) costs roughly: DIY with used generator: $3,000–$6,000; new complete system: $12,000–$25,000.

 How is biogas used to generate electricity differently from natural gas?
The principle is identical – both burn gas to turn an engine. The difference is biogas needs H₂S removal, and the engine's air/fuel mixture and timing are adjusted for biogas's lower methane content (50–70% vs 95%+ for natural gas).

 What's the smallest generator that works on biogas?
You can find 1–2 kW biogas generators, but they are not common. Most small users start with a 5 kW generator and only run it a few hours per day.

 Is it worth it for a small farm?
If you already have animals and are paying for grid electricity or diesel, yes. Payback time is typically 3–7 years for small systems, faster if you replace diesel generators. Plus, you get free fertilizer from the digester outlet.

 Can I make biogas from just food waste without manure?
Yes, but food waste alone digests faster and can become acidic. You'll need to monitor pH and add a buffer like crushed eggshells or lime. Mixing food waste with a small amount of manure or rumen content is better.

When You Need an Industrial System (Not a DIY Guide)

This guide is for small‑scale learning and demonstration. But if you have:

  • More than 50 cows (or 5+ tons of organic waste per day)
  • A factory, food processing plant, or large farm
  • Need for 100 kW or more of continuous power
  • Interest in combined heat and power (CHP) for 80%+ efficiency

then a DIY system is not practical. You need an engineered biogas electricity plant with industrial digesters, automated gas cleaning, and purpose‑built generators.

Next Steps

Now you understand how to generate electricity from biogas – from waste collection to powering lights. If you want to try a small‑scale system, start with a 5–10 m³ digester and a 5 kW generator. Search for "biogas generator kit" or "small anaerobic digester plans" to get started.

For commercial projects, reach out to professional biogas plant suppliers like Biowatt.

📖 Want to learn more? Read our complete guide: Biogas Electricity Plant: Cost, Working, and CHP for Industrial Users