Pf: Phenolphthalein Filtrate Alkalinity, Mud Chemistry Diagnostics, and Cement Contamination Detection

Pf is the phenolphthalein alkalinity of drilling mud filtrate, the most widely-run alkalinity test on water-based drilling fluids and one of the four routine mud checks performed by the on-site mud engineer every tour, typically every 6 hours on a Montney or Duvernay horizontal program. The test value, expressed in cubic centimetres, is the volume of standardized 0.02 N (N/50) sulfuric acid required to titrate exactly 1 cubic centimetre of filtrate from a positive-pink phenolphthalein endpoint at approximately pH 8.3 down to colourless. The companion test, Mf (methyl orange filtrate alkalinity), continues the titration to a methyl orange endpoint at approximately pH 4.3, and the relationship between Pf and Mf identifies which alkaline species hydroxide (OH-), carbonate (CO3=), or bicarbonate (HCO3-) are present in the filtrate. Under API Recommended Practice 13B-1 (Field Testing Water-Based Drilling Fluids), the standard interpretation is: when Mf is greater than 2Pf, alkalinity is purely bicarbonate; when Mf equals 2Pf, it is purely carbonate; when Mf is less than 2Pf, both hydroxide and carbonate are present; and when Mf equals Pf, alkalinity is purely hydroxide. This four-state diagnostic is the fastest way to detect cement contamination (rising Ca2+ alongside rising OH- from cement dissolution), carbon-dioxide influx from a sour zone, or sodium-bicarbonate over-treatment that has shifted mud chemistry toward viscosity instability. On a Montney drilling rig in northeast BC, a Pf value drifting from a target band of 0.5 to 2.5 cc per cc typically signals one of four problems: cement contamination as the surface casing shoe is drilled out (Pf above 5 alongside hardness above 600 ppm Ca), carbon-dioxide influx (Pf low, Mf high, pH falling), polymer degradation in wells past 110 degrees C, or salt-saturated brine encroachment from the Prairie Evaporite halites. Mud chemists adjust Pf by adding caustic soda (NaOH) to raise it, or treating out with sodium bicarbonate and lime if hydroxide builds beyond program targets. The Pf number drives downstream decisions on bentonite hydration, polymer functionality, and corrosion protection of the drill string, and a properly-managed Pf is the single best leading indicator of mud-system health on a WCSB drilling rig. See also Pm, Mf, and drilling mud.

Key Takeaways

  • API RP 13B-1 Procedure: Pf is run on 1 cc of filtrate dosed with 2 to 4 drops of phenolphthalein indicator, titrated with 0.02 N H2SO4 to a colourless endpoint. The mud engineer reports the result in cc per cc to one decimal place. The test takes under 90 seconds and is performed at every mud check, typically every 6 hours on a horizontal Montney or Duvernay drilling program, and is documented in the daily mud report submitted under AER Directive 059.
  • Cement Contamination Signature: When a Montney surface casing shoe is drilled out and cement fragments enter the mud system, Ca(OH)2 dissolves and pushes Pf above 5 cc per cc while total hardness rises above 400 ppm Ca2+. The standard treatment is sodium bicarbonate addition at 0.5 to 1.5 kg per m3 of mud to precipitate calcium as CaCO3 and restore the Pf target band, typically completed in 6 to 12 hours of continuous chemical treatment.
  • Pf and Mf Diagnostic Chart: The four standard interpretations (OH only, OH plus CO3, CO3 only, HCO3 only) are determined by the Pf-to-Mf ratio. WCSB mud engineers maintain a diagnostic chart at every wellsite mud lab so the four states can be read off in under 30 seconds, supporting decisions on caustic addition, lime treatment, or carbonate stripping with sodium bicarbonate or gypsum.
  • Sour Gas and CO2 Detection: When carbon dioxide enters the mud system from a sour or sweetened-sour zone in the Montney or Duvernay, it consumes OH- and converts to bicarbonate. Pf falls toward zero while Mf rises, and pH drops from a typical 9.5 target to 8.0 or lower. A Pf-Mf swing of this character is one of the first indicators of CO2 influx and triggers AER Directive 060 sour-well shutdown protocols on H2S confirmation.
  • Target Bands by Mud System: Bentonite-water muds run Pf between 0.5 and 1.5; lime-treated muds intentionally run Pf between 5 and 10 to leverage excess lime; gypsum muds run Pf below 0.5; polymer muds (PHPA) run Pf between 1.0 and 3.0. A WCSB mud program specifies the target Pf band in the mud plan, and the day-rate mud engineer adjusts continuously to hold it within plus or minus 0.3 cc per cc of target.

Phenolphthalein Endpoint Chemistry and Interferences

Phenolphthalein is a triphenylmethane indicator that is colourless below pH 8.3 and pink above. The titration endpoint at pH 8.3 corresponds to the conversion of OH- to water and of CO3= to HCO3-, but does not fully neutralize HCO3-. Coloured or fluorescing mud filtrates can mask the endpoint, requiring the mud engineer to dilute the sample with deionized water by 2:1 or 5:1 before titration. Lignosulfonate-treated muds, common in deep Pembina Cardium drilling, produce a brown filtrate that makes endpoint detection challenging, and most mud engineers carry electronic pH meters as backup. The 2018 revision of API RP 13B-1 added a section on pH meter use for visually-impaired colour endpoints, and Canadian regulations under AER Directive 059 require mud-property reports to identify which method was used.

Pf in Lime Muds and Salt-Saturated Drilling Fluids

Lime muds, used in WCSB drilling through reactive shales of the Colorado Group and Wapiabi formations, intentionally carry excess Ca(OH)2 to inhibit shale hydration via Ca2+ ion exchange on clay surfaces. These systems run Pf intentionally high (5 to 10 cc per cc) and require continuous lime addition at 5 to 15 kg per m3 of mud. Salt-saturated muds drilled through shallow Devonian halites of the Prairie Evaporite (common in southeast Saskatchewan deeper drilling) suppress phenolphthalein colour development and require diluted filtrate testing. Reagent shelf life matters: phenolphthalein solution in isopropanol degrades within 6 months, and a CAD 25 reagent kit will support roughly 200 Pf tests before requiring replacement at the rig site.

Fast Facts

The phenolphthalein indicator was first synthesized by German chemist Adolf von Baeyer in 1871, more than 60 years before water-based drilling mud chemistry was systematized into the practical Pf and Mf alkalinity tests that mud engineers run today. API first standardized Pf as a routine mud check in 1949, and the same test procedure (with minor refinements) has been running on every drilling rig in the WCSB for more than 75 years. A single drilling mud engineer on a deep Montney lateral may perform 600 Pf tests over a 90-day drilling program at roughly CAD 0.25 in reagent cost per test.

Pf is part of a tightly-linked family of water-based mud tests. Pm is the analogous phenolphthalein alkalinity test run on whole mud rather than filtrate, used primarily in lime muds where excess undissolved Ca(OH)2 matters. Mf is the methyl orange alkalinity titration that pairs with Pf to identify the alkaline species present in the filtrate. Drilling mud is the parent category of fluids on which these tests are performed, and mud engineer is the wellsite specialist who runs the tests every tour and interprets results to guide chemical treatment.

Cement Contamination During Surface Casing Drill-Out in Montney

A Dawson Creek-area Montney horizontal drilled in February 2024 by an ARC Resources rig hit a classic cement contamination event when drilling out the 339.7 mm (13 3/8 inch) surface casing shoe at 575 metres measured depth. The mud engineer's morning report showed Pf jumping from 1.2 to 7.8 cc per cc within 4 hours, hardness rising from 80 to 480 ppm Ca2+, pH climbing from 9.3 to 11.6, and funnel viscosity flocculating from 48 to 78 seconds per quart. The mud system was a 9.2 ppg PHPA polymer mud carrying low-gravity solids at 4.8 vol%, and continued drilling without intervention would have triggered serious yield-point destabilization.

Treatment was 0.9 kg per m3 of sodium bicarbonate added over 6 hours, supplemented by 0.4 kg per m3 of SAPP (sodium acid pyrophosphate) to chelate residual calcium. Pf returned to 1.8 cc per cc, hardness dropped to 110 ppm, and the mud was back to program spec within 11 hours. Direct treatment cost was approximately CAD 4,200 in chemicals, and no rig time was lost beyond the routine mud-check cycle.