Spent coffee grounds contain enough oil for biodiesel – if it can be extracted cleanly. A research team from Tarragona has re-measured the conditions for doing so. What matters is what remains after the oil has been removed.
Around ten million tonnes of coffee beans are harvested worldwide each year. Most of their material does not end up in the cup: after brewing, a wet solid remains, which is mostly burned, composted or thrown away. Yet it still contains a good deal – about 15 per cent of the dry mass is lipids, i.e. fats from which biodiesel can be produced.
Researchers at the Universitat Rovira i Virgili in Tarragona have systematically investigated how these fats can be extracted as completely as possible while still being gentle. The work has been published in the journal Biomass and Bioenergy.
Three variables, one optimum
The group led by Jorge F. Romero, Alberto Tampieri, Daniel Montané, Magdalena Constantí and Francesc Medina varied three parameters: the temperature, the duration of extraction and the ratio of solvent to coffee grounds. The solvent used was n-hexane, a substance common in the oil and food industries that separates fats from other material.
45 degrees, 60 minutes, 35 millilitres
According to the measurements, the optimum is 45 degrees Celsius, 60 minutes of contact time and 35 millilitres of hexane per gram of dry residue. Under these conditions, the process extracts around 90 per cent of the oil that the Soxhlet method achieves – the laboratory standard in which the solvent is repeatedly evaporated, condensed and passed through the material.
Less ballast in the oil
The difference is not just in the effort. The optimised process yielded oil with 0.3 per cent impurities, compared with 3.9 per cent for the Soxhlet method. The fatty acid composition remained stable across all test variants, with linoleic acid and palmitic acid as the largest components – a composition suitable for biodiesel.
The researchers also examined the obvious way of speeding things up: ultrasound and microwaves shorten the first phase of extraction, but brought no advantage in the overall picture of yield, purity, energy demand and scalability. The simple batch process with hexane at moderate temperature performed most evenly.
The paper leaves open the question of the balance over the whole process. Hexane is a petrochemical solvent; it must be recovered after extraction, otherwise the advantage shifts. The study does not include a life-cycle assessment that considers cultivation, roasting, collection, drying and solvent recovery together. It provides the process data for such an assessment – nothing more.
It also remains open how much spent coffee grounds are actually available in a usable form. The figure cannot be derived from the quantities of beans, because a considerable proportion is mixed with other organic waste in households and catering. For a valorisation chain, what counts is therefore less the theoretical total amount than the question of whether a region can gather enough material of consistent quality.
What remains after the oil
The second part of the study is the more interesting one. Removing the oil from coffee grounds does not turn them into waste but into a different raw material. The remaining lignocellulosic matrix of cellulose, hemicellulose and lignin can be processed into bioethanol, lactic acid, polyhydroxyalkanoates, phenolic compounds and feedstocks for sustainable aviation fuels.
Fat as a barrier
Removing the oil actually helps here. Fats form a film on the surface that prevents solvents and catalysts from reaching the other components. If the oil is removed without altering the structure of the material, the remainder is easier to process further. A residue thus becomes two product streams instead of a disposal problem.
What this means in practice
This does not mean a plant in the backyard of a roastery. Spent coffee grounds arise decentrally and wet, which makes collection and drying the real cost factor. The calculation becomes interesting where large quantities of biomass are processed anyway and an oil fraction runs as an additional stream, rather than being collected specifically for the purpose. The principle is familiar: mango kernels left over from juice production are now used to obtain a cocoa butter substitute, and cascara is made from the coffee cherry instead of waste. Spent coffee grounds fit the same logic – a residue that becomes a starting material once someone masters the separation cleanly.
Sources
- Romero, Tampieri, Montané, Constantí, Medina: Systematic evaluation of batch hexane extraction as a scalable pretreatment for the comprehensive valorization of spent coffee grounds. Biomass and Bioenergy, 2026 — doi.org
- Universitat Rovira i Virgili, press release on the study, 12 November 2026 — sciencedaily.com
- Digital Journal: Waste coffee grounds could provide raw material for next-generation biofuels, 15 November 2026 — digitaljournal.com



