MEDWISE: How Composting Works, from Coffee Grounds to Compost – An Integrated Solution for Waste Management

What happens inside a compost pile, why coffee grounds need to be balanced with dry material, and what MEDWISE will measure at its composting pilot in Bikfaya, Lebanon.

Publication Date
04/12/2026
Reading Time
3 minutes

A large share of what households throw away is organic: vegetable peels, leftover food, garden cuttings, and the coffee grounds that collect after every pot of coffee. In the general bin, all of this ends up in landfills and dumpsites. Composting takes the same material and, with some care, turns it into something that improves soil.

What happens inside a compost pile

Composting is controlled decomposition. Bacteria and fungi feed on organic matter and break it down, and they work best when a few conditions are in balance. They need nitrogen-rich “greens” such as food scraps and fresh grass, and carbon-rich “browns” such as dry leaves, straw, cardboard or wood chips, ideally at about 30 parts carbon for every part nitrogen by weight. They need oxygen, which is why piles are turned or aerated. And they need moisture: decomposition slows sharply below about 40% moisture and almost stops below 30%, while above roughly 60% the pile runs short of air and starts to smell (Richard & Trautmann, 1996). In practice, the material should feel like a wrung-out sponge.

Once a pile is built, it goes through three stages. For the first couple of days, microorganisms that prefer moderate temperatures break down the most easily digestible compounds, and the heat they release makes the pile warm up. Above about 40°C, heat-loving (thermophilic) microbes take over. This hot phase, which can last from a few days to several months, is when decomposition is fastest, and temperatures of 55°C and above destroy many human and plant pathogens, as well as weed seeds and fly larvae (Cornell University, n.d.; Trautmann, 1996). As the easily digested material runs out, the pile cools and the compost cures over several months, until it is dark, crumbly and smells of earth.

Sorting organic waste at the source matters at every stage. Plastic, glass or metal that gets into the pile ends up in the finished compost, and a study of household bio-waste in Austria found it virtually impossible to produce quality-assured compost once impurities exceed about 3% of the collected material by weight (Adam et al., 2024).

Coffee grounds: an everyday waste in Lebanese homes

In Lebanon, coffee is part of every morning and every visit, so used grounds end up in household bins every day. They look brown, but in a compost pile they count as a green. They are about 2% nitrogen, with a carbon-to-nitrogen ratio of roughly 20 to 1, in the same range as animal manure (Oregon State University, 2008). That makes them a useful nitrogen source, as long as they are mixed with plenty of dry, carbon-rich material. Oregon State University Extension recommends keeping grounds to no more than 20% of the pile’s volume, since larger amounts can harm plants, and notes that paper filters can be composted too (Pokorny, 2023). Households can add grounds to a home or community bin, and coffee shops, which produce them in larger and steadier quantities, are natural partners for local composting schemes.

What MEDWISE will learn from the process

MEDWISE is testing decentralized composting, where organic waste is treated close to where it is produced, at a pilot facility in Bikfaya, Mount Lebanon, twinned with a second pilot in Spain. The project will monitor the factors described above: the waste that enters the facility, how the composting process behaves, and the quality of the compost that comes out. Data collected before and after the facility is upgraded will show which changes improve the process, and comparing the two sites will help identify what decentralized composting needs to work in other Mediterranean towns. The findings will also feed into MEDWISE training for municipalities on managing organic waste.

References

Adam, J., Wellacher, M., Azizi, F., Loidl, A., Zöscher, A., Poschacher, F., Pomberger, R., & Tischberger-Aldrian, A. (2024). Determination and improvement of the quality of separately collected bio-waste from households. Waste Management & Research, 42(9), 842–854. https://doi.org/10.1177/0734242X241259895

Cornell University. Composting: Science and engineering. New York Center for Organics Recycling and Education, College of Agriculture and Life Sciences. https://cals.cornell.edu/ny-center-organics-recycling-education/composting/science-and-engineering

Oregon State University. (2008, July 10). Coffee grounds perk up compost pile with nitrogen. ScienceDaily. https://www.sciencedaily.com/releases/2008/07/080707171641.htm

Pokorny, K. (2023). Coffee grounds boost soil health — and help control slugs. Oregon State University Extension Service. https://extension.oregonstate.edu/news/coffee-grounds-boost-soil-health-help-control-slugs

Richard, T. L., & Trautmann, N. M. (1996). Getting the right mix: Calculations for thermophilic composting. Cornell Waste Management Institute. https://compost.css.cornell.edu/calc/rightmix.html

Trautmann, N. (1996). Compost physics. Cornell Waste Management Institute. https://www.css.cornell.edu/cwmi/compost/physics.html

Last Update

04/12/2026