Bromocresol Green as a Filtrate pH Indicator in Drilling Fluid Alkalinity Testing: Detecting Carbonate, Bicarbonate, and Cement Contamination in WCSB Water-Based Muds

Bromocresol green in drilling fluid analysis is a sulfonphthalein pH indicator dye that changes color from yellow at pH values below 3.8 through a blue-green transition zone near pH 4.6 to a definitive blue color above pH 5.4, used as the colorimetric endpoint indicator in the P2 (or Pf2) alkalinity titration of drilling fluid filtrate under API Recommended Practice 13B-1 to measure the combined concentration of hydroxide, carbonate, and bicarbonate alkalinity in a water-based mud system, with the disappearance of blue color and appearance of yellow-green signaling that sufficient sulfuric acid has been added to convert all alkaline species to neutral or acidic forms. The P2 alkalinity measurement — using bromocresol green as the indicator to detect the pH 4.3 titration endpoint — is the counterpart to the P1 alkalinity measurement that uses phenolphthalein indicator (endpoint at pH 8.3) to detect only hydroxide and half of carbonate alkalinity, and together the P1 and P2 results allow the WCSB mud engineer to calculate the individual concentrations of hydroxide, carbonate, and bicarbonate ions in the filtrate by the three-equation system derived from the half-equivalence points of carbonate chemistry. Bromocresol green's specific pH transition zone at 4.3-4.8 makes it the preferred indicator for the P2 endpoint over methyl orange (endpoint at pH 3.7-4.0), which can miss bicarbonate contributions when carbonate and bicarbonate coexist in the filtrate, and over bromophenol blue (endpoint at pH 4.6-5.2), which has a less distinct color change in the muddy yellow-to-blue transition that can be difficult to read under wellsite lighting conditions. In WCSB water-based mud (WBM) operations, bromocresol green-based P2 alkalinity testing is performed at the wellsite by the mud engineer or mud logger at least once per 8-hour tour, and more frequently when any of the following events has occurred: a cement squeeze job in the past 48 hours (cement contamination raises filtrate pH dramatically, converting carbonate buffer to hydroxide and requiring lime treatment adjustment); drilling through a CO2-bearing zone (CO2 dissolves in the water phase, converting alkalinity from carbonate or bicarbonate and reducing pH of the filtrate in a pattern detectable only by P2 titration rather than the surface pH meter); or a formation water influx (saline formation water entering the mud can introduce bicarbonate from the Cretaceous or Devonian aquifer, altering the carbonate chemistry). The practical advantage of bromocresol green over simple pH measurement with a pH meter or pH strip is that the titration method measures total alkalinity by quantitative acid consumption rather than point-in-time hydrogen ion activity, giving the mud engineer a stoichiometric determination of how much lime, sodium hydroxide, or sodium carbonate is buffering the mud system against acid contamination from CO2 or organic acids in WCSB formations.

Key Takeaways

  • Chemical structure and color transition mechanism of bromocresol green in drilling fluid filtrate: Bromocresol green (3,3',5,5'-tetrabromo-m-cresolsulfonphthalein, molecular weight 698 g/mol) is a sulfonphthalein dye whose chromophoric sulfonyl group undergoes a structural change when deprotonated or protonated, shifting the wavelength of maximum light absorption from the yellow-green range (below pH 3.8, lambda_max near 440 nm) to the blue range (above pH 5.4, lambda_max near 625 nm). At the 4.3 pH endpoint of the P2 alkalinity titration, the color is a definitive transition from blue to yellow-green, which an experienced wellsite mud engineer can read to approximately 0.1 mL of 0.02 N sulfuric acid precision in a 1 mL filtrate sample, equivalent to approximately 5 mg/L resolution in the total alkalinity measurement. The dye is typically used at 0.1% concentration in an isopropanol-water carrier, applied as 2-3 drops to a 1 mL filtrate sample in a white porcelain spot plate or small Erlenmeyer flask before adding sulfuric acid titrant drop by drop from a burette. BCG degrades in strong oxidizing conditions and under extended UV light exposure, requiring fresh indicator solution to be prepared weekly at active WCSB wellsites.
  • API RP 13B-1 P1 and P2 alkalinity test procedure and calculation of individual carbonate species: The API RP 13B-1 alkalinity test protocol for WBM filtrate involves two sequential titrations of the same 1 mL filtrate sample. First, the P1 titration uses phenolphthalein indicator: sulfuric acid is added until the pink color disappears (pH 8.3 endpoint), and the volume used (in mL of 0.02 N H2SO4) equals P1. Second, the P2 titration continues from the same sample: bromocresol green indicator is added, and sulfuric acid titration continues to the pH 4.3 yellow-green endpoint; the additional volume used equals (P2 - P1). Using the P1 and P2 results, the three alkalinity species are calculated: hydroxide alkalinity = 2P1 - P2 (in mg/L OH-); carbonate alkalinity = 2(P2 - P1) (in mg/L CO3²-); bicarbonate alkalinity = P2 - 2P1 (in mg/L HCO3-). Negative values indicate that species is absent. For a WCSB Montney WBM filtrate with P1 = 1.2 mL and P2 = 2.8 mL: hydroxide = 2(1.2) - 2.8 = -0.4 (none); carbonate = 2(2.8 - 1.2) = 3.2 mL equivalent = approximately 960 mg/L CO3²-; bicarbonate = 2.8 - 2(1.2) = 0.4 mL equivalent = approximately 244 mg/L HCO3-. This result indicates carbonate-dominated alkalinity buffer with minor bicarbonate, consistent with a lime-treated WBM drilling through a low-CO2 Montney formation without significant cement contamination.
  • Cement contamination detection in WCSB workover and squeeze cementing operations using bromocresol green alkalinity testing: Cement contamination of WBM occurs when Portland cement (whose hydration products include Ca(OH)2, pH 12-13) mixes with the drilling fluid during cementing operations, cement squeeze jobs, or when drilling through poorly consolidated cemented zones. The Ca(OH)2 from cement raises filtrate hydroxide alkalinity dramatically: a WCSB Cardium workover mud contaminated with 2% cement by volume can show P1 alkalinity readings of 8-12 mL (indicating 4,000-6,000 mg/L OH- hydroxide alkalinity) and a P2 result nearly equal to P1 (negligible bicarbonate, pure hydroxide alkalinity profile). Bromocresol green-based P2 testing detects this pattern (P2 approximately equals P1, both elevated) immediately, allowing the mud engineer to begin calcium reduction treatment (CO2 aeration or sodium bicarbonate addition to convert Ca(OH)2 to CaCO3 precipitate) before the cement contamination increases viscosity, flocculates the clay system, and causes a stuck-pipe event. The P2 alkalinity method is more sensitive than pH meter measurement for cement contamination because the meter reads only surface activity (saturated Ca(OH)2 solutions stabilize pH near 12.4 regardless of Ca(OH)2 excess), while the titration measures the total alkalinity reserve available to cause further mud deterioration.
  • CO2 contamination detection in WCSB Foothills and Deep Basin WBM systems using P2 alkalinity shift: Carbon dioxide from CO2-bearing WCSB formations (Foothills Deep Basin tight gas, some Devonian carbonate zones) dissolves in the water phase of WBM and reacts with alkalinity: CO2 + 2OH- converts to CO3²- (carbonate) and then to HCO3- (bicarbonate) as CO2 continues to dissolve, progressively shifting the alkalinity profile from hydroxide-dominated to bicarbonate-dominated. The bromocresol green P2 test detects this shift as a pattern where P1 decreases (less hydroxide alkalinity consumed) while (P2 - P1) increases (more bicarbonate present), and the calculated bicarbonate alkalinity rises above 500 mg/L while hydroxide approaches zero. A WCSB Foothills horizontal well drilling through Triassic Baldonnel carbonate at 3,200 m showed P2 alkalinity shifts: original P1 = 1.8, P2 = 2.1 (low bicarbonate, hydroxide-dominated, normal); after drilling 40 m into CO2-rich zone: P1 = 0.6, P2 = 2.9 (bicarbonate 3,500 mg/L, hydroxide near zero). The mud engineer responded with sodium hydroxide addition (5 kg/m³) to restore alkalinity buffer and lime addition to re-establish the P1/P2 ratio, preventing the bicarbonate-rich mud from flocculating the clay system.
  • Bromocresol green versus other pH indicators used in WCSB drilling fluid testing and their comparative advantages: The choice of indicator for alkalinity endpoint detection in WBM filtrate testing depends on the expected alkalinity range and the precision required. Phenolphthalein (P1 test, pH 8.3 endpoint) is selective for hydroxide and carbonate but cannot detect bicarbonate, which is neutral at pH 8.3 — a mud with only bicarbonate alkalinity shows zero P1 but nonzero P2. Methyl orange (endpoint pH 3.7-4.0) can detect total alkalinity but requires over-titration relative to the API-standard 4.3 endpoint, introducing small but systematic error in bicarbonate calculation. Bromocresol purple (endpoint pH 5.2-6.8) overshoots the 4.3 endpoint and reports falsely elevated P2 values in the presence of strong carbonate buffers. Bromocresol green's specific 4.3 pH endpoint matches the theoretical equivalence point for complete conversion of CO3²- to H2CO3 (carbonic acid), making it the theoretically correct indicator for the P2 measurement under API RP 13B-1. Digital titrators with pH electrode endpoint detection are replacing bromocresol green indicators in some WCSB mud laboratory workflows where precision and reproducibility requirements exceed what the visual color-change indicator can provide at approximately 0.1 mL titrant precision.

P2 Alkalinity Testing Detects Cement Contamination During a WCSB Cardium Squeeze Job

A WCSB Pembina Cardium production well requires a cement squeeze to remediate a casing leak at 1,240 m. The workover crew uses a non-weighted potassium chloride WBM as the drilling fluid for the cement squeeze operation. Pre-squeeze alkalinity check: P1 = 0.9 mL, P2 = 1.1 mL (pH meter reads 8.9), consistent with normal low-alkalinity KCl WBM with minor carbonate buffer. Squeeze cement is pumped (Class G cement slurry, 1.89 sg). Post-squeeze: the mud engineer runs P1 and P2 alkalinity tests on the first return samples after reversing out excess cement. Results: P1 = 7.2 mL, P2 = 7.4 mL (pH meter reads 12.4). Calculated alkalinity: hydroxide = 2(7.2) - 7.4 = 7.0 mL equivalent = 7,000 mg/L OH-; carbonate = 2(7.4 - 7.2) = 0.4 mL (minor); bicarbonate = negative (none). This pattern confirms severe cement contamination: the OH- alkalinity reserve is 70-fold above the pre-squeeze baseline. The mud engineer begins treatment: 20 kg sodium bicarbonate added per cubic metre of mud to convert Ca(OH)2 to CaCO3 precipitate and bicarbonate, combined with 2 kg/m³ lignosulfonate to disperse the flocculated clay system. Follow-up P1 and P2 testing every 30 minutes tracks the treatment progress: after three bicarbonate treatments over 90 minutes, P1 drops to 1.4 mL and P2 reaches 2.2 mL, indicating the cement contamination is substantially reduced and the mud is safe to return to normal circulation without risk of gelation-induced stuck pipe.

Fast Facts

Bromocresol green was first synthesized by John Henderson Urquhart in 1908 as part of a series of sulfonphthalein dyes developed for medical and biochemical pH measurement — a decade before the petroleum industry began adapting pH indicators for oilfield fluid chemistry. The compound entered drilling fluid testing practice in the 1940s when API standardized the alkalinity titration method for WBM quality control, replacing the simpler but less informative litmus paper and pH meter methods that could not distinguish between hydroxide, carbonate, and bicarbonate alkalinity contributions. WCSB mud logging laboratories have used BCG-based P2 titration continuously since the standardization, making it one of the longest-serving unmodified analytical methods in the Canadian oilfield.

The water-based drilling fluid system whose filtrate alkalinity is measured by bromocresol green P2 titration — including lime, sodium carbonate, and caustic soda treatment chemicals used to maintain WCSB WBM alkalinity within specification, and the consequences of carbonate and cement contamination on viscosity, clay stability, and fluid loss — is described under water-based mud. The phenolphthalein indicator used for the P1 alkalinity measurement paired with bromocresol green for P2 — including the API RP 13B-1 test procedure, the interpretation of P1 and P2 results to calculate hydroxide, carbonate, and bicarbonate concentrations, and their use in WCSB mud treatment decisions — is described under alkalinity. The cement squeeze operation in WCSB workover programs that is a primary source of cement contamination detectable by the bromocresol green P2 test shift — including squeeze pressure design, cement volume calculation, and post-squeeze WBM reconditioning procedures — is described under cement squeeze.