
How Big Your Small Refinery’s ETP Needs to Be Depends on Whether Soapstock Is “Treated” or “Recovered”
When a small edible oil refinery plans its wastewater treatment, the most common approach is to first estimate the plant’s total COD and flow, then size the DAF, biological tank, or SBR accordingly. This sequence looks logical, but it overlooks a prior variable — one whose influence on treatment facility sizing is far greater than the choice of process itself.
Industry engineering data provides a direct reference point: a refinery processing 100 tonnes of crude oil per day, with a crude oil FFA content of 3%, generates 3,000–8,000 kg of soapstock per day. If this soapstock enters the wastewater system directly, the BOD load it carries is equivalent to 3,000–8,000 m³/day of municipal sewage. For a small refinery, a wastewater treatment facility sized for that equivalent load is far beyond a reasonable investment and footprint.
Conversely, if the soapstock undergoes acidulation recovery, the fatty acids are converted into acid oil — a saleable product — and the organic load entering the wastewater system is reduced to wash water, condensate, and cleaning water. The same material, routed as a by-product, is revenue; routed as wastewater, it is an inflated treatment facility. Engineering economic analysis of continuous soapstock acidulation systems shows total fatty acid recovery of 98%–100%, and compared with conventional batch acidulation, system payback of 2–4 years through acid savings, improved oil yield, and reduced labor costs. This means that before discussing DAF surface loading rates or biological tank hydraulic retention times, a small refinery should answer one question: has the soapstock acidulation equipment been installed yet?
KMEC has over two decades of experience in oil refining and supporting environmental engineering. The following sections examine the engineering details of soapstock acidulation, the separate handling of acid wastewater, the process configuration for remaining wastewater after recovery, and the investment sequence for small plants.
1. Soapstock Acidulation: Converting Wastewater Load into a Saleable Product
1.1 Why Soapstock Cannot Simply Be “Diluted and Sent to the ETP”
Soapstock is the product of the caustic refining deacidification stage. It contains soaps, neutral oil, phospholipids, and water, with a pH typically above 9, and exists as a stable emulsion. Its danger is not “toxicity” but the extremely high density of organic load.
If soapstock is discharged directly into the equalization tank without acidulation, it consumes large amounts of acid for neutralization, and the emulsifying stability of soap-like substances in water interferes with subsequent coagulation and flotation. More critically, this organic matter consumes significant aeration energy and sludge treatment costs in the biological stage. For a small refinery processing tens of tonnes of crude oil per day, the BOD equivalent from soapstock may already exceed the design margin of the wastewater plant.
1.2 The Engineering Advantages of Continuous Acidulation
Conventional batch acidulation involves intermittent sulfuric acid dosing, mixing, and gravity separation in a reaction tank. Continuous acidulation follows a different engineering logic: soapstock and acid are continuously mixed, reacted, and separated under controlled conditions, resulting in more stable reaction conditions and precisely controllable acid consumption.
An underappreciated advantage of continuous acidulation systems is that the reaction pH is relatively higher, allowing equipment to be constructed from standard stainless steel rather than high-grade acid-resistant alloys throughout. For a capital-sensitive small refinery, downgrading equipment material directly reduces capital expenditure. At the same time, the residual mineral acid in the acid oil produced by continuous acidulation is extremely low (potentially below 0.01%), and the acidity of the acid water is relatively controllable, reducing the neutralization burden on downstream wastewater treatment.
1.3 The Value Logic of Acid Oil
The selling price of acid oil is directly linked to its total fatty acid (TFA) content. Industry convention uses 95% TFA as the pricing benchmark; acidulated products below 85% TFA typically struggle to enter formal sales channels. Continuous acidulation systems can achieve 98%–100% TFA recovery, meaning the TFA concentration of the acid oil produced approaches the upper limit, placing it in a favorable pricing position.
For small refineries, acid oil does not need to be further processed into biodiesel or high-purity oleic acid. Its downstream market is feed energy ingredients and chemical intermediates, with relatively mature sales channels. Revenue from acid oil recovery can directly offset a portion of the wastewater treatment facility’s operating costs — a non-negligible positive item in the cash flow model of a small project.
2. Acid Wastewater: A Stream That Requires Separate Handling
Soapstock acidulation recovers acid oil while producing a strongly acidic wastewater stream. The characteristics of this stream mean it cannot simply “follow the crowd” into the conventional wastewater system.
Measured data provides the profile: pH as low as 1.7 ± 0.05, a strongly acidic medium; sulfate concentrations vary widely depending on source and process conditions, with some measurements in the tens to low hundreds of mg/L range and other studies reporting higher sulfate loads. The risk of this wastewater is not its volume but its acidity and sulfate content, which can potentially inhibit downstream biological systems.
Small refineries have two paths for handling this stream. The first is segregation followed by separate neutralization, using alkali to bring pH to the neutral range before mixing with other wastewater for the main treatment system. The second is mixing with alkaline soapstock wash water, using alkalinity for partial neutralization, but this requires verifying whether the resulting sulfate load exceeds the biological system’s tolerance. Whichever path is chosen, acid wastewater cannot be treated as “ordinary cleaning water.” Its volume is small, but its impact per unit volume is strong.
3. After Recovery: Process Configuration for the Remaining Wastewater
After soapstock acidulation recovery, the main streams entering the wastewater system are degumming wash water, caustic refining wash water, deodorization condensate, and equipment cleaning water. This wastewater still has relatively high FOG concentrations and contains emulsified oil stabilized by soap-like substances.
3.1 DAF Is Not “Optional” — It Is a Prerequisite for Biological Treatment
For edible oil refining wastewater, oil must be removed before biological treatment. High concentrations of FOG encapsulate activated sludge, impede oxygen transfer, and cause sludge bulking. A 500 m³/day refining and packaging wastewater treatment project provides a reference configuration and operating data: influent COD 3,000–6,000 mg/L, oil & grease 300–800 mg/L, with the process sequence equalization and pH adjustment → DAF → A/O biological treatment → sludge dewatering. DAF surface loading 8–12 m³/m²·h, PAC dosage 200–400 mg/L, PAM 3–6 mg/L, oil removal efficiency >90%; biological stage MLSS 3,500–5,000 mg/L, HRT 18–24 hours. Final COD reduced from approximately 5,000 mg/L to <90 mg/L (>98%), oil & grease from approximately 500 mg/L to <8 mg/L (>98%), system energy consumption 0.7–1.0 kWh/m³, with a payback period of approximately 2 years.
3.2 Acid-Zone DAF: The Key Adjustment That Distinguishes Refinery Wastewater from Ordinary Oily Wastewater
For ordinary oily wastewater (such as dairy wastewater), DAF at neutral pH with PAC or polyaluminum chloride effectively breaks the emulsion. But the emulsifier in edible oil refining wastewater is the soap molecule — a strong surfactant that actively resists charge neutralization by coagulants at neutral pH.
The engineering solution is acid-zone coagulation: before dosing coagulant, lower the pH to 5–6. In this pH range, soap (in sodium salt form) converts to free fatty acids, surfactant activity drops sharply, and coagulation and flotation efficiency improve accordingly. Acid-zone DAF with PAC dosage of 60–100 mg/L can achieve 85%–95% FOG removal, comparable to dairy DAF efficiency at neutral pH, but with the added pH adjustment step specific to refinery wastewater.
If a small refinery’s DAF is designed as “general oily wastewater” without acid-zone adjustment capability, actual oil removal efficiency may be significantly below the design value, pushing unremoved emulsified oil to the biological stage and causing shock.
3.3 Biological Stage: Selection Logic for MBBR, A/O, and SBR
After DAF, dissolved organic matter (low-concentration free fatty acids, glycerol, polar lipids) enters biological treatment. The BOD:COD ratio of refining wash water is typically 0.5–0.7, indicating good biodegradability.
MBBR (moving bed biofilm reactor) is a validated option for refinery wastewater. With effective oil removal by DAF, MBBR at HRT 8–16 hours and 50% fill fraction can achieve 90%–95% BOD removal, with effluent BOD <30 mg/L. A key operational point: refining wash water collection temperature may be 50–70°C and must be cooled to below 40°C before entering the biological stage to avoid thermal shock.
The A/O process performed stably in the 500 m³/day project, with COD and oil & grease removal both above 98%, suitable for small-to-medium projects with relatively stable flow.
SBR’s batch operation provides buffering capacity against water quality fluctuations, suitable for small plants with intermittent discharge. However, SBR operating data in the literature must be distinguished by scale: a laboratory-scale anaerobic-aerobic SBR reported COD removal of 80.15%, FOG removal of 72.43%, and phosphorus removal of 78.40% under specific conditions; another laboratory SBR study at lower organic loading reported 75% COD removal and over 90% oil and SS removal. These data indicate SBR can operate stably at small-to-medium loads, but they should not be directly treated as engineering-scale guarantees. For high-load refinery wastewater with influent COD approaching 20,000 mg/L, SBR alone struggles to reliably meet discharge standards; SBR is better suited as a medium-to-low-load biological treatment unit after acid-zone DAF.
4. Investment Sequence for Small Refineries: Recovery → Segregation → Treatment
4.1 Why Sequence Matters More Than Technology Choice
The Tanta Oil and Soap Company pollution prevention case in Egypt provides a verifiable reference. After installing gravity oil separators in the fatty acid unit and implementing a series of source recovery measures alongside improved operational management, the plant achieved annual savings of EGP 637,000 and reduced wastewater treatment plant investment by EGP 500,000. The logic is clear: recovery comes first, and the size of the end-of-pipe treatment facility can then be reduced. For small refineries, this logic holds at a different scale.
The recommended investment sequence for small plants is: Step one, soapstock acidulation recovery, stripping high-concentration organic load from the wastewater; Step two, clean/contaminated stream segregation, separating cooling water, cleaning water, and high-concentration process wastewater to avoid low-load water being “dragged along” and inflating treatment scale; Step three, acid-zone DAF + biological treatment, sizing facilities for the actual remaining load after recovery. If the sequence is reversed — building DAF and biological tanks for the load of un-recovered soapstock — investment and footprint are unnecessarily inflated.
4.2 Integration with the Refining Line
Wastewater treatment is not an auxiliary project independent of the refining process. Soapstock acidulation recovery efficiency, caustic refining wash water volume, and cleaning operation frequency all directly affect the load entering the wastewater plant. In the design of oil refining equipment and supporting environmental systems, KMEC considers soapstock handling and wastewater load accounting as an integrated whole. For clients operating both oil press machines and refining lines, the process integration between pressing and refining also affects wastewater biodegradability and treatment difficulty — for example, the more stable the crude oil quality entering refining, the smaller the variation in soapstock quantity and properties, and the more predictable the operation of acidulation recovery and subsequent wastewater treatment.
5. FAQ
Q1: Should a small refinery build soapstock acidulation first or the wastewater treatment plant first?
Build soapstock acidulation recovery first. Soapstock entering the wastewater system generates a BOD load equivalent to thousands of cubic meters of municipal sewage, far exceeding a small refinery’s reasonable ETP capacity. Continuous acidulation can achieve 98%–100% TFA recovery with a 2–4 year payback. Recover first, then design treatment facilities for the remaining load, avoiding unnecessary inflation of treatment scale.
Q2: What is the economics of soapstock acidulation recovery?
Continuous acidulation systems, compared with conventional batch acidulation, achieve 2–4 year system payback through acid savings, improved oil yield, and reduced labor costs. Acid oil is priced by TFA content, with 95% TFA as the benchmark; a 98%–100% TFA recovery rate places the product in a favorable pricing position.
Q3: How does refinery wastewater DAF differ from ordinary oily wastewater DAF?
The emulsifier in edible oil refining wastewater is the soap molecule, a strong surfactant at neutral pH that resists conventional coagulation. pH must be lowered to 5–6 before DAF to convert soap to free fatty acids, reducing surfactant activity before coagulant dosing. Acid-zone DAF with PAC 60–100 mg/L achieves 85%–95% FOG removal.
Q4: How should the acid wastewater from soapstock acidulation be treated?
Acid wastewater pH can be as low as 1.7, with sulfate concentration varying by process. It cannot enter the biological system directly. Small plants can choose segregated separate neutralization, or mixing with alkaline wash water for partial neutralization, but must verify whether the resulting sulfate load exceeds the biological stage’s tolerance.
Q5: Is SBR suitable for small refinery wastewater treatment?
SBR’s batch operation suits small plants with intermittent discharge and water quality fluctuations. Laboratory-scale studies report COD removal in the 75%–80% range and FOG removal of 72% to over 90%. But these are laboratory data and should not be directly treated as engineering guarantees. For high-concentration refinery wastewater, SBR is better suited as a medium-to-low-load biological treatment unit after acid-zone DAF, not as a full-load main process.
Q6: What are the operating parameters for MBBR in refinery wastewater?
With effective oil removal by DAF, MBBR at HRT 8–16 hours and 50% fill fraction can achieve 90%–95% BOD removal, with effluent BOD <30 mg/L. Refining wash water temperature may be 50–70°C and must be cooled to below 40°C before entering MBBR.
References
- Stahle, C.W., “Engineering and economic aspects of continuous soapstock acidulation,” Journal of the American Oil Chemists’ Society — 98–100% TFA recovery, 2–4 year system payout.
- GQ Water, “Edible Oil Wastewater Treatment in South Africa — 500 m³/day Project Case,” 2026.
- Spans Envirotech, “ETP for Vegetable Oil Refinery Wastewater — Soapstock Segregation, Acid-Zone DAF and MBBR,” 2026.
- “Acidic Wastewater from Cottonseed Soapstock Processing — Chemical Composition,” KIMS-IMIO.
- “Anaerobic Treatability of Soapstock Splitting Wastewater,” Istanbul Technical University, 2019.
- EPAP3, “Industrial Pollution Prevention Case Study: Oil and Fats Recovery at Tanta Oil and Soap Company, Tanta, Egypt.”
- Manganyi, A.J., “Biological phosphorus removal from edible oil effluent by anaerobic-aerobic sequencing batch reactor,” Durban Institute of Technology, 2004.
- Mkhize, S.P., Atkinson, B.W. & Bux, F., “Evaluation of a laboratory-scale biological process for the treatment of edible oil effluent,” Water SA, 2000.
- “Post treatment of anaerobic effluent using sequencing batch reactors,” ScienceDirect, 2013.
For soapstock acidulation recovery, acid-zone DAF configuration, or biological treatment system design for small refineries, contact the KMEC engineering team.
