At-a-Glance: Refinery quality control (QC) is a closed-loop system spanning feed receipt, in-process control, and blend/product certification, driven by lab testing, online analyzers, and APC/MPC to ensure on-spec products with minimum giveaway and zero off-spec shipments.
| Goal | How |
|---|---|
| Consistent on-spec products at lowest cost | Defined specs, sampling plans, standard test methods, SPC, online property models, corrective actions, and release authority |
I. Objective Definition and Key KPIs
- I.1 Objective: Maintain continuous compliance of all intermediates and finished products with contractual and regulatory specifications while minimizing quality giveaway, rework, and delays.
- I.2 Scope: Crude/feed QC, unit/in-process QC, blending control, product certification, custody transfer.
- I.3 Core KPIs:
- On-spec first-pass blend rate (FPY): target = 95%.
- Quality giveaway (e.g., octane, sulfur, flash point): target = defined per product; track $/bbl impact.
- Off-spec incidents per 1,000 shipments: target 0.
- Lab turnaround time (TAT): routine = 60 minutes; critical = 15 minutes.
- Analyzer availability: = 98% uptime.
- Process capability indices: Cp, Cpk = 1.33 on critical-to-quality (CTQ) parameters.
- Blend rework volume: = 0.5% of monthly sales.
- Mass balance closure for blends: within ±0.2%.
II. Critical Parameters and Target Ranges
Ranges are representative; actual site specs vary by market. “Target” means internal control target, typically centered to minimize giveaway.
| Stream/Product | CTQ Parameters | Typical Spec | Internal Target (Estimated) |
|---|---|---|---|
| Crude/Feeds | API, sulfur, TAN, salt, water, metals, Conradson carbon | Per contract | API ±0.3; salt = 5 lb/1,000 bbl; BS&W = 0.5% |
| Gasoline (mogas) | RON/MON, RVP, sulfur, benzene, aromatics, olefins, distillation (E70/E100/FBP), oxygenates | RON = 91–95; RVP per season; S = 10 ppm | RON target +0.2–0.4; S 6–8 ppm; RVP -0.1 to -0.2 psi |
| Diesel | Cetane, sulfur, density, CFPP/CP, FAME, water, lubricity | Cetane = 51; S = 10 ppm | Cetane +1.0; S 6–8 ppm; water = 100 ppm |
| Jet fuel | Flash point, freezing point, smoke point, aromatics, sulfur, MSEP, thermal stability | Per grade (Jet A/A-1) | Freeze point 2–3 °C below spec; aromatics -0.5 vol% |
| LPG | Vapor pressure, total sulfur, H2S, C3/C4 composition, moisture | Per grade | S 50–80% of limit; dryness on-spec with margin |
| Fuel oil | Viscosity, density, sulfur, flash point, pour point, CCR, ash, water | Per contract | Viscosity -5% from limit; S 0.1–0.2 wt% below max |
| In-Process | Desalter eff., overhead chloride, H2S in fuel gas, amine strength/lean loading, sour water pH | Site standards | Cl- in overhead = 5 ppm; lean loading = 0.35 mol/mol |
III. Step-by-Step QC Procedure / Workflow
III.1 Governance and Planning
- III.1.1 Define specs and CTQs: Contractual, regulatory, and internal control limits; create product data sheets and blend targets.
- III.1.2 Control plans: Sampling locations/frequency, test methods, analyzer coverage, release authority, escalation matrix.
- III.1.3 Systems: Use LIMS for sample tracking and certificates; integrate DCS/APC, blend control, and historian for closed-loop control.
III.2 Feedstock QC
- III.2.1 Pre-receipt qualification: Verify assay, compatibility (stability/asphaltene), contaminants (metals, H2S), pour point; simulate run plan.
- III.2.2 Receipt sampling: Composite and spot samples per standard practice; test API, sulfur, salt, water, TAN. Hold cargo until preliminary pass.
- III.2.3 Desalter control: Monitor brine conductivity, effluent oil-in-water, residual salt; adjust wash water, mix valve DP, demulsifier rate, temperature.
III.3 In-Process QC (Unit Operations)
- III.3.1 Online analyzers and inferentials: Property analyzers (sulfur, RVP, density, NH3, H2S), NIR models, GC; maintain analyzer shelters and calibration routines.
- III.3.2 Lab spot checks: Round-robin lab vs. analyzer; SPC charts for key endpoints (e.g., CDU side draw ASTM D86 points, FCC gasoline sulfur/aromatics).
- III.3.3 APC/MPC loop: Controllers target product properties (endpoints, flash points) constrained by energy and capacity; adjust cut points, reflux, reboiler duty, H2/oil ratio.
- III.3.4 Event response: For excursions, implement predefined correction playbooks (e.g., increase wash water for rising salts; trim caustic for naphtha chloride).
III.4 Blending and Product Certification
- III.4.1 Blend planning: Optimize component line-up and targets to meet specs with minimal giveaway; lock critical slop controls and additive plans.
- III.4.2 Inline blend control: Mass flow meters, ratio control, online property analyzers; real-time property models to steer to target with bias.
- III.4.3 Tank verification: Pre-blend tank inspection (water bottoms, temperature stratification), line-up verification, positive isolation to avoid cross-contamination.
- III.4.4 Lab testing: Grab samples during blend (e.g., 25%, 75%) and final composite; test all CTQs. Use hold points for critical grades.
- III.4.5 Release and certification: QC authority issues certificate once all CTQs on-spec and SPC demonstrates stability; archive retain samples.
III.5 Custody Transfer and Post-Release
- III.5.1 Pre-transfer checks: Verify tank identity, seals, volumes, temperature compensation, and water draw-off.
- III.5.2 During transfer: Spot samples at start/middle/end for critical products; monitor density/VFQ to detect contamination.
- III.5.3 After-action review: Record KPIs (giveaway, TAT, reblends), lessons learned, and update control plans.
IV. Risks & Mitigations (HSE, Reliability, Integrity)
- IV.1 Sample integrity risk: Contamination, wrong tank, non-representative sampling.
- Mitigation: Certified samplers, composite methods, traceable chain-of-custody, clean containers, nitrogen blankets where needed.
- IV.2 Analyzer drift/failure: Leads to biased control and off-spec production.
- Mitigation: Redundant critical analyzers, automated calibration checks, lab cross-verification and analyzer health KPIs.
- IV.3 Blend tank stratification/water: False property readings and shipment risk.
- Mitigation: Circulation/mixing, water heel removal, temperature homogenization before certification.
- IV.4 Additive mis-dosing: Off-spec lubricity, stability, or octane response.
- Mitigation: Double-check systems, mass flow verification, interlocks, batch reconciliation.
- IV.5 Cross-contamination/line-up errors: Wrong valve position or shared lines.
- Mitigation: Valve line-up checklists, tag/verify, smart P&IDs, witnessed line-ups, pigging where applicable.
- IV.6 HSE exposure (H2S, benzene, static):
- Mitigation: Gas testing, appropriate PPE, bonding/grounding, inerting, permit-to-work controls.
- IV.7 Data integrity/cyber risk: LIMS or historian tamper or loss.
- Mitigation: Role-based access, backups, checksums, reconciliation with physical tickets.
V. Optimization Levers
- V.1 APC/MPC and Real-Time Optimization: Drive cutpoint and hydrogen management to hit property targets with minimum energy and giveaway; include analyzer bias compensation.
- V.2 Advanced analyzers and inferentials: NIR for gasoline/diesel properties; soft sensors for endpoints; cross-validated with lab to maintain low RMSEP.
- V.3 Statistical Process Control (SPC): Tighten control limits; use control charts and capability analysis to reduce variability and giveaway.
- V.4 Blend recipe optimization: Nonlinear solvers with property models; enforce slop limits; penalize giveaway and component value loss.
- V.5 Maintenance strategy: Condition-based analyzer maintenance; spare parts kitting; MTBF/MTTR tracking; calibration schedule adherence = 95%.
- V.6 Data integration: LIMS–DCS–planning integration; automate certificates; golden batch analytics for repeatable grades.
- V.7 Training and standard work: Certified sampler programs; lab analyst proficiency; blend panel simulation drills.
VI. Verification & Monitoring Plan
- VI.1 Daily/Shift:
- Review CTQs control charts (E70/E100, FBP, sulfur, cetane surrogate) and APC KPIs (CV variance).
- Analyzer bias check vs. lab on at least one standard per shift; update bias table if within policy.
- Blend dashboard: FPY, ongoing blends, predicted vs. measured properties.
- VI.2 Weekly:
- Capability review (Cp/Cpk) for top five CTQs; action on any Cpk < 1.33.
- Rework/root cause analysis for any off-spec or near-miss; implement corrective/preventive actions.
- VI.3 Monthly/Quarterly:
- Mass balance and giveaway audit by product; reconcile analyzer model coefficients; proficiency testing for lab.
- Management review of QC KPIs, certification errors, and MOC for any spec changes.
VII. Relevant Equations and Calculation Notes
- VII.1 Density and API Gravity:
\( \mathrm{API} = \frac{141.5}{\mathrm{SG}_{60^\circ \mathrm{F}}} - 131.5 \), where \( \mathrm{SG} = \frac{\rho}{\rho_{\text{water, }60^\circ \mathrm{F}}} \).
- VII.2 Process Capability:
\( C_p = \dfrac{\mathrm{USL} - \mathrm{LSL}}{6\sigma} \), \( C_{pk} = \min\!\left(\dfrac{\mathrm{USL} - \mu}{3\sigma}, \dfrac{\mu - \mathrm{LSL}}{3\sigma}\right) \).
- VII.3 Linear Blending (mass or volume basis as applicable):
For linear properties (e.g., sulfur, density): \( P_{\text{blend}} = \sum_{i=1}^{n} w_i P_i \), with \( \sum w_i = 1 \).
- VII.4 Nonlinear Property Examples:
- Reid Vapor Pressure (approximate): \( \ln P_{\text{blend}} \approx \sum z_i \ln P_i \) (mole fraction basis).
- Octane with interaction term (approximate): \( \mathrm{RON}_{\text{blend}} \approx \sum v_i\, \mathrm{RON}_i - k \sum_{i}\sum_{j>i} v_i v_j \), where k is empirically fitted.
- VII.5 Giveaway Cost (generic):
\( \text{Giveaway \$} = \sum_{\text{batches}} V \cdot \left(P_{\text{meas}} - P_{\text{spec}}\right)^{+} \cdot \alpha \), where \( \alpha \) is $/unit giveaway and \( (\cdot)^{+} \) denotes positive part.
- VII.6 Analyzer Availability:
\( \text{Availability} = \dfrac{\text{Uptime}}{\text{Uptime} + \text{Downtime}} \times 100\% \).
- VII.7 Mass Balance Closure (blend):
\( \% \text{Closure} = \dfrac{\left|\sum \dot{m}_{\text{in}} - \dot{m}_{\text{out}}\right|}{\sum \dot{m}_{\text{in}}} \times 100\% \).
VIII. Practical Checklist (Operator/Analyst)
- VIII.1 Before shift: Review pending blends/specs; confirm analyzer health; verify calibration gas/standards in date.
- VIII.2 During shift: Execute sampling plan; log SPC values; validate analyzer bias; action on alarms per control plan.
- VIII.3 Pre-blend: Confirm component qualities in LIMS; tank heel/water check; lock line-up; start inline QC.
- VIII.4 During blend: Track predicted vs. measured properties; apply trims; document deviations.
- VIII.5 Post-blend: Composite sample pass; certificate issued; retain sample sealed; update KPIs and lessons learned.
IX. Assumptions (Estimated)
- IX.1 Typical Euro/US-style fuel specs and lab capability; adjust for local regulations and methods.
- IX.2 Standard integration between DCS, APC, and LIMS; if absent, substitute with manual controls and increased lab frequency.


Collaborate and learn alongside you peers. Professional development on your schedule. API training programs will help you advance your career. Browse our list of courses today.