Refinery Desalter and Sour Water Stripper Wastewater: API + DAF + SWS + Biological for EPC Contractors in Saudi Arabia and Indonesia Refining Hubs

August 24, 2026
No Comment

Introduction: The Two Most Demanding Wastewater Streams in Oil Refining

Oil refining is a water-intensive industry, and the two highest-strength wastewater streams — the desalter effluent and the sour water stripper (SWS) overhead — account for 40-60% of the total wastewater load in a typical refinery. A 200,000 barrels/day refinery generates 800-2,500 m3/day of desalter brine containing emulsified oil at 200-2,000 mg/L, total suspended solids at 500-3,000 mg/L, total dissolved solids at 30,000-80,000 mg/L, and dissolved heavy metals (vanadium, nickel, iron) at 5-50 mg/L. The SWS overhead adds 200-1,000 m3/day of high-ammonia (1,000-8,000 mg/L NH3-N), high-sulfide (50-500 mg/L H2S), and high-phenol (50-500 mg/L) wastewater. Combined, these two streams drive 70%+ of refinery wastewater treatment OPEX.

For EPC contractors, refinery desalter and SWS wastewater treatment is a high-value, technically specialized niche distinct from general petrochemical wastewater. Saudi Arabia (Aramco’s 9+ domestic refineries with combined throughput of 2.5+ million barrels/day, plus Yanbu and Ras Tanura export refineries) and Indonesia (Pertamina’s 6+ refineries including Cilacap, Balikpapan, Dumai, Plaju, plus private refineries like TPPI Tuban) are the two largest refining markets in the region. Both countries are enforcing tighter discharge and zero-discharge standards while expanding refining capacity (Aramco’s Jazan Petrochemical Refinery, Pertamina’s RDMP and GRR projects).

This post covers the complete design framework — API separator + DAF for oil removal + SWS pre-treatment + biological polishing — and regional market entry for Saudi Arabia and Indonesia.

Refinery Wastewater Stream Classification

A modern refinery generates multiple wastewater streams from different process units. Each has a distinct treatment requirement:

Stream Flow (% of Total) Oil (mg/L) TSS (mg/L) TDS (mg/L) Key Contaminants
Desalter Brine 15-25% 200-2,000 500-3,000 30,000-80,000 Emulsified oil, dissolved salts, V/Ni/Fe, suspended solids
Sour Water Stripper Overhead 5-10% 20-200 50-500 2,000-10,000 NH3-N (1,000-8,000), H2S (50-500), phenol (50-500)
Crude Unit + Coker Wastewater 15-20% 50-500 200-1,500 500-3,000 Free oil, phenols, sulfides, cyanides
Hydrocracker + Catalytic Cracker 15-20% 20-200 100-800 500-2,500 Sulfides, cyanides, mercaptans, dissolved organics
Process Water + Equipment Wash 20-30% 10-200 50-500 200-1,500 Trace oil, cleaning chemicals
Stormwater + Ballast Water 15-25% 5-50 20-300 200-1,000 Variable, episodic oil spills

Stream segregation is the foundation of refinery wastewater design. Desalter brine and SWS overhead must be separated from “conventional” refinery wastewater (process water, stormwater) because they require specialized pre-treatment before the main biological plant. Mixing them at the API inlet overwhelms the conventional plant with TDS, ammonia, and sulfide loading.

Stage 1: API Separator for Free Oil Recovery

The first step in refinery wastewater treatment is American Petroleum Institute (API) separator for free oil and settleable solids removal:

API Separator Design Parameters

  • Separator type: Rectangular concrete basin with API-style oil skimmer and sludge scraper
  • HRT: 30-60 minutes for free oil; 2-4 hours for settleable solids
  • Surface loading: 0.5-1.0 m3/m2-h for oil; 0.2-0.5 m3/m2-h for TSS
  • Oil removal: 60-80% of free oil (typically 200 mg/L to 50 mg/L)
  • TSS removal: 50-70%
  • Skimmed oil: Recovered oil routed to slop oil tank (recyclable, $300-500/tonne crude value)
  • Sludge: 3-8% DS, oil-rich; routed to sludge treatment
  • Material: Concrete with chemical-resistant coating (sulfide attack protection)

API limitations: API separators cannot remove emulsified oil (oil droplets < 20 microns) or dissolved oil. DAF is required downstream to achieve < 10 mg/L oil discharge.

Parameter API Separator Corrugated Plate Interceptor (CPI) Tilted Plate Interceptor (TPI)
Free Oil Removal 60-80% 70-90% 75-92%
Emulsified Oil Removal < 20% < 30% < 30%
Footprint Large Medium Small
Sludge Handling Scraper mechanism Manual / pump Pump
Best Fit for Refinery Yes (standard pre-treatment) Yes (small footprint option) Maybe (modern refineries)

Stage 2: DAF for Emulsified Oil and TSS Polishing

After API, the wastewater still contains emulsified oil (20-200 mg/L), fine suspended solids, and metals. DAF with chemical conditioning is the workhorse polishing step:

DAF Design Parameters for Refinery Wastewater

  • Surface loading rate: 5-8 m3/m2-h
  • Coagulant: PAC at 80-200 mg/L or emulsion-breaker polymer at 5-20 mg/L
  • pH adjustment: 6.5-7.5 (optimum for oil emulsion breaking)
  • Cationic polymer: 2-5 mg/L (specific for oil-in-water emulsions)
  • Air-to-solids ratio: 0.03-0.05 kg air/kg TSS
  • Expected removal: 90-98% emulsified oil, 70-90% TSS, 50-75% heavy metals (with coagulant)
  • Float sludge: 5-12% DS (oil-rich, recovered as slop oil)
  • Material: 316L stainless steel (sulfide and chloride corrosion resistance)

Emulsion breaking chemistry is the critical design choice. Refinery wastewater contains chemically stabilized emulsions from:

  • Caustic injection upstream of desalter (produces stable oil-in-water emulsions)
  • Demulsifier residues from crude unit
  • Soluble organic acids from crude degradation
  • Fine solids (clay, iron sulfide, calcium carbonate) that stabilize emulsions

Standard alum or ferric coagulation is often insufficient. Emulsion-specific polymers (high molecular weight cationic polyacrylamide or dicyandiamide-based polymers) are needed at 5-20 mg/L dose. Some refineries also use inorganic coagulants like aluminum chloride or polyaluminum chloride (PAC) at 100-200 mg/L followed by polymer for best results.

Stage 3: Sour Water Stripper (SWS) Pre-Treatment for Ammonia and Sulfide

Refinery sour water — from hydrocracker, catalytic cracker, coker, and hydrotreater overhead receivers — contains 1,000-8,000 mg/L ammonia and 50-500 mg/L sulfide. This stream is toxic to biological treatment and is pre-treated in a dedicated Sour Water Stripper (SWS):

SWS Design Parameters

  • Stripper type: Packed or trayed column with overhead condenser and reboiler
  • Steam-to-feed ratio: 0.10-0.20 kg steam per kg feed (refinery low-pressure steam)
  • Operating pressure: 0.3-0.7 kg/cm2g (low pressure, easy integration with refinery steam)
  • Overhead temperature: 95-105 degrees C
  • pH adjustment: 6.5-7.5 (avoid high pH that keeps H2S in solution as HS-)
  • Ammonia removal: 95-99% (outlet < 100 mg/L NH3-N for biotreatment compatibility)
  • Sulfide removal: 98-99.5% (outlet < 5 mg/L H2S)
  • Recovered ammonia: Condensed as 20-25% ammonium hydroxide (NH4OH), sellable to fertilizer industry ($100-300/tonne)
  • Recovered H2S: Routed to Claus unit for sulfur recovery (mandatory; no atmospheric release)
  • Material: 316L stainless steel or carbon steel with internal alloy overlay (NACE compliance for sour service)
Parameter Conventional SWS Refinery SWS with Side Draw Ammonia-Only Stripper
NH3 Removal 95-99% 98-99.9% 99.5%+
H2S Removal 98-99.5% 99-99.8% 30-50% (poor)
Phenol Carryover 10-30% 2-10% 50-80%
Recovered NH3 Quality Low (H2S contamination) High (NH4OH grade) Very High
Best Fit for Refinery Yes (standard) Yes (best economics) No (H2S issue)

Side-draw SWS is the modern design that produces a clean ammonium hydroxide byproduct suitable for sale to fertilizer plants or use in the refinery’s wastewater biotreatment as a nutrient source (for nitrogen-limited streams). The side-draw configuration adds a draw tray at mid-column where the ammonia-rich, sulfide-lean fraction is withdrawn, condensed separately, and treated as a clean NH4OH product.

Stage 4: Biological Treatment for Final Polishing

After API + DAF + SWS, the combined refinery wastewater is suitable for biological treatment. The most common configuration is a three-stage activated sludge system with nitrification-denitrification:

Biological Treatment Design Parameters

  • Stage 1: Roughing (high-rate): HRT 4-6 hours, MLSS 2,000-3,000 mg/L, removes 60-75% COD/BOD
  • Stage 2: Nitrification: HRT 12-18 hours, MLSS 3,000-4,000 mg/L, SRT 15-25 days, DO 2-3 mg/L, converts NH3-N to NO3-N
  • Stage 3: Denitrification: HRT 3-6 hours, anoxic, MLSS 2,500-3,500 mg/L, methanol or refinery spent caustic as carbon source, reduces NO3-N to N2
  • Final Clarifier: HRT 3-4 hours, surface loading 0.8-1.2 m3/m2-h, sludge recycle 50-100%
  • Effluent quality: COD < 80 mg/L, BOD < 20 mg/L, TSS < 30 mg/L, oil < 5 mg/L, NH3-N < 5 mg/L, total N < 15 mg/L, sulfide < 0.5 mg/L

Methanol vs. refinery spent caustic for denitrification carbon source. Refineries often have surplus spent caustic (from Merox, hydrotreater, ethylene unit caustic washes) that is high-pH (12-14), high-COD (50,000-200,000 mg/L), and high-sulfide (1,000-10,000 mg/L). Spent caustic is a hazardous waste disposal liability. Controlled co-feeding of spent caustic to the denitrification basin (after sulfide pre-oxidation to sulfate) provides a free carbon source and reduces both denitrification OPEX and spent caustic disposal cost. The trade-off is careful process control — too much spent caustic inhibits the denitrifiers.

Stage 5: Sludge Handling and Oil Recovery

Refinery wastewater generates three sludge streams:

  • API skimmings: Free oil + water; routed to slop oil tank and re-refined or sold as bunker fuel oil ($300-500/tonne)
  • DAF float sludge: Emulsified oil + biological solids; 5-12% DS; dewatered by screw press to 25-35% DS; sold as fuel oil substitute or shipped to sludge processor
  • Biological waste sludge: 1-2% DS; thickened by DAFT (dissolved air flotation thickener) to 4-6% DS; dewatered by screw press to 18-22% DS; non-hazardous if oil < 5% and heavy metals below TCLP limits; landfilled or incinerated

Regional Market Analysis

Saudi Arabia

Saudi Aramco operates 9+ domestic refineries with combined throughput of 2.5+ million barrels/day, including Ras Tanura (the world’s largest refinery, 550,000 bpd), Yanbu Export Refinery (400,000 bpd), SATORP Jubail (400,000 bpd, Aramco-Total JV), and the recently commissioned Jazan Refinery (400,000 bpd). Saudi Arabia’s Royal Commission environmental standards in Yanbu and Jubail mandate zero liquid discharge (ZLD) for refineries built after 2010. GAMEP standards limit oil < 5 mg/L, COD < 100 mg/L, ammonia < 10 mg/L, and sulfide < 0.5 mg/L for discharge. The Saudi Arabian Oil Company (Aramco) is pursuing the In-Kingdom Total Value Add (IKTVA) program with 70% local content target, creating strong demand for Saudi-fabricated DAF skids, RO units, and SWS columns. The Jazan Integrated Gasification Combined Cycle (IGCC) project creates additional wastewater treatment demand for syngas cooling and gasification wastewater.

Indonesia

Pertamina operates 6+ refineries with combined throughput of 1+ million bpd, including Cilacap (Central Java, 348,000 bpd — Indonesia’s largest), Balikpapan (East Kalimantan, 260,000 bpd), Dumai (Riau, 170,000 bpd), Plaju (South Sumatra, 140,000 bpd), Balongan (West Java, 125,000 bpd), and Kasim (Papua, 10,000 bpd). Pertamina’s Refinery Development Master Plan (RDMP) is adding capacity at Cilacap, Balikpapan, and Dumai (combined +400,000 bpd) through 2027. PP 22/2021 industrial discharge standards limit oil < 10 mg/L, COD < 100 mg/L, ammonia < 10 mg/L. Indonesia’s Cilacap and Balongan refineries are on Java’s south coast, with marine discharge limited by the Java Sea environmental carrying capacity. The Balongan fire (2021) and Cilacap fire (2023) increased regulatory pressure for water treatment upgrades. Private refineries include TPPI Tuban (Trans Pacific Petrochemical Indotama, 100,000 bpd condensate splitter) and Star Energy (geothermal condensate, not strictly crude but generates similar wastewater).

Vietnam

Vietnam operates the Nghi Son Refinery and Petrochemical Complex (200,000 bpd, in Thanh Hoa province, Kuwait Petroleum + Idemitsu + Mitsui JV) and the Dung Quat Refinery (130,000 bpd, in Quang Ngai province, Petrovietnam). Both are state-of-the-art refineries designed in the 2010s. QCVN 40:2011/BTNMT Column A limits oil < 5 mg/L, COD < 80 mg/L, ammonia < 5 mg/L. Vietnam’s coastal location of both refineries enables marine discharge but is increasingly constrained by environmental impact assessments. Vietnam is planning a third refinery (Long Son Petrochemical, 200,000 bpd in Ba Ria-Vung Tau, 2026-2028) that will require a full API + DAF + SWS + biotreatment system.

CAPEX/OPEX Benchmark: 1,500 m3/day Refinery Desalter + SWS Wastewater Treatment Plant

Cost Element API Only (Legacy) (USD) API + DAF + SWS + Biological + ZLD (USD)
CAPEX
API Separator (Concrete + Skimmer) $280,000 $320,000
DAF Unit + Chemical System $0 $420,000
Sour Water Stripper + Auxiliaries $0 $850,000
Three-Stage Biological + Clarifier $0 $680,000
RO Polishing for ZLD Reuse $0 $520,000
Screw Press Sludge Dewatering $0 $180,000
Total CAPEX $280,000 $2,970,000
OPEX (Annual)
Energy (Aeration + Pumps + SWS Steam) $45,000 $280,000
Chemicals (PAC, Polymer, Methanol) $15,000 $180,000
Sludge Disposal $80,000 $45,000
Maintenance + Membrane $10,000 $65,000
Slop Oil Sales Revenue -$15,000 -$180,000
Ammonium Hydroxide Sales Revenue $0 -$90,000
Water Reuse Savings $0 -$110,000
Total Annual OPEX $135,000 $190,000
Net 5-Year Cost $955,000 $3,920,000
Compliance Status Non-compliant (oil > 10 mg/L) Fully compliant + ZLD-ready

The legacy API-only system is non-compliant with modern discharge limits in all three target countries. The full treatment train achieves compliance with margin and recovers sellable byproducts (slop oil, ammonium hydroxide) that offset most of the additional OPEX. The 5-year net cost of $3.9M is small for a 200,000 bpd refinery (single-day revenue exceeds $15M at current prices), and the avoided environmental liability is significantly higher.

Key Design Takeaways for EPC Contractors

  1. Segregate desalter brine and SWS overhead from the start: These two streams drive 70% of refinery wastewater OPEX and require specialized pre-treatment. Mixing them at the API inlet overwhelms the conventional plant.
  2. Emulsion-specific polymers are mandatory: Standard alum or PAC alone cannot break refinery emulsions. Use 5-20 mg/L high-molecular-weight cationic polymers specifically formulated for oil-in-water emulsions.
  3. Side-draw SWS turns waste into a product: Recovered ammonium hydroxide is a sellable commodity to fertilizer producers. The 5-10% CAPEX premium for side-draw design pays back in 2-3 years.
  4. Reuse refinery spent caustic as denitrification carbon: Pre-oxidize sulfide to sulfate, then feed controlled doses to the denitrification basin. Saves methanol purchase and reduces spent caustic disposal liability.
  5. 316L stainless for sulfide-contact surfaces: Hydrogen sulfide stress corrosion cracking (SSC) destroys carbon steel within 6-12 months in refinery wastewater service. NACE MR0175 compliance requires 316L or higher alloy throughout the API/DAF/SWS train.
  6. Design for ZLD from day one in Saudi Arabia: All new Aramco refineries are ZLD. Even if the initial plant is not ZLD, the RO polishing skid and brine handling provisions should be designed in from the start.

Building a refinery wastewater treatment system for desalter brine and SWS overhead? Contact our EPC engineering team for a refinery-specific treatment train design, slop oil and ammonium hydroxide recovery model, and ZLD roadmap for Saudi Aramco, Pertamina, or Vietnamese refinery projects.

Refinery Desalter and Sour Water Stripper Wastewater: API + DAF + SWS + Biological for EPC Contractors in Saudi Arabia and Indonesia Refining Hubs