Alkalinity Test

The alkalinity test is the standardised titration procedure used at the well site and in oilfield laboratories to measure the acid-neutralising capacity of a drilling fluid filtrate, whole mud sample, completion fluid, or produced water, with results used to characterise the hydroxide, carbonate, and bicarbonate ion concentrations in the sample and to guide daily chemical treatment of the mud system. The test is codified in API Recommended Practice 13B-1 (Field Testing of Water-Based Drilling Fluids) and uses two sequential pH endpoints corresponding to the alkalinity of different carbonate species: the phenolphthalein endpoint at pH 8.3 (where carbonate and hydroxide are measured) and the methyl orange endpoint at pH 4.3 (where total alkalinity including bicarbonate is measured). The procedure involves titrating a known volume of sample (typically 1.0 mL of filtrate) with 0.02 N H2SO4 from a graduated pipette or digital titrator, recording the volume of acid required to reach each endpoint: the Pf value (filtrate phenolphthalein alkalinity) is reported as mL of titrant per mL of filtrate to the pH 8.3 endpoint; the Mf value (filtrate methyl orange alkalinity) is reported as mL of titrant per mL of filtrate to the pH 4.3 endpoint; and the Pm value (whole mud phenolphthalein alkalinity) is the titrant volume to pH 8.3 using a 1.0 mL whole mud sample, capturing the alkalinity of suspended basic solids (Ca(OH)2 particles in lime muds, MgO in specialty muds) not present in the clear filtrate. From the Pf and Mf values, the dominant alkalinity species are determined: if Mf = 0, only OH- and/or CO32- are present, indicating no bicarbonate contamination; if Mf > 0, HCO3- is present in the filtrate, indicating CO2 influx from carbonate formations, cement contamination, or atmospheric CO2 absorption. The test is performed at minimum once per shift (typically morning and afternoon) as part of the API RP 13B-1 full mud analysis, and results are reported in the daily drilling report (DDR) and morning tour mud report submitted to the operator's drilling engineer and shared with the AER under the conditions of the well permit.

Key Takeaways

  • The Pf and Mf values together define the complete carbonate species distribution in the mud filtrate, and the ratio Pf/Mf determines whether the dominant alkalinity species is hydroxide, carbonate, bicarbonate, or a mixture of two species, with the diagnostic result guiding the specific chemical treatment required: The API RP 13B-1 species calculation rules are: (1) if Pf = 0: only HCO3- present, concentration = Mf × 1,220 mg/L bicarbonate; (2) if Pf = Mf/2: only CO32- present, concentration = Mf × 1,200 mg CaCO3/L as carbonate; (3) if Pf > Mf/2: both OH- and CO32- present, where OH- content = (2Pf - Mf) × 340 mg/L and CO32- = (Mf - Pf) × 2,400 mg CaCO3/L; (4) if Pf < Mf/2: both CO32- and HCO3- present, where CO32- = Pf × 2,400 mg CaCO3/L and HCO3- = (Mf - 2Pf) × 1,220 mg/L. Practical application: a filtrate with Pf = 1.5 mL and Mf = 0 is hydroxide/carbonate dominant, consistent with a well-conditioned lime or KOH mud; a filtrate with Pf = 0.4 mL and Mf = 2.0 mL has 2×Pf = 0.8 < Mf = 2.0, indicating CO32- and HCO3- contamination requiring NaOH treatment to raise Pf and eliminate the bicarbonate component.
  • The Pm (whole mud alkalinity) value is required in addition to Pf to assess lime mud systems where excess Ca(OH)2 solids are suspended in the mud and contribute to the total alkalinity reserve unavailable in the filtrate, with the ratio Pm/Pf indicating whether sufficient lime reserve exists to maintain the target pH buffer through anticipated CO2 or CO32- contamination: In a lime mud targeting pH 11.5 to 12.5, the filtrate Pf reflects only the dissolved Ca(OH)2 in the filtrate (at solubility of 1.5 g/L, corresponding to Pf ≈ 5.4 mL/mL for pure saturated Ca(OH)2 solution), while the excess undissolved lime particles are captured by the whole mud Pm test. A Pm/Pf ratio of 3 to 8 is typical for a well-treated lime mud (3 to 8 times more alkalinity reserve in the solid lime than is dissolved in the filtrate), providing sustained buffering as CO2 from drill cuttings or formation gas is absorbed. A Pm/Pf ratio below 2 in a lime mud indicates inadequate lime reserve and warrants addition of hydrated lime (Ca(OH)2) at 1 to 3 kg/m³ to rebuild the solid alkalinity buffer. In Alberta Foothills deep HPHT wells where lime muds are used in the 3,000 to 5,000 m section through highly reactive Blackstone and Wapiabi shales, Pm monitoring twice per shift is standard practice because CO2 uptake rates from organic-rich shale cuttings can deplete lime reserve within 4 to 6 hours of drilling rate above 25 m/hr without timely chemical addition.
  • Digital alkalinity titrators (Hach Ratio XR, Orion 960) improve the precision and reproducibility of well-site alkalinity testing compared to manual drop-count titration and are recommended for critical mud systems where small alkalinity changes (less than 0.2 mL) drive significant treatment decisions: Manual titration with a graduated Mohr pipette introduces operator error of ±0.05 to 0.1 mL per test due to subjective endpoint colour determination and variability in drip rate near the endpoint. Digital titrators using pre-filled acid cartridges and electronic dispensing reduce the volume delivery precision to ±0.002 mL per step (0.02 N H2SO4, 100-count digital display), and the coloured endpoint indicator change is sharpened by adding a known quantity of indicator solution rather than relying on the fading colour of the phenolphthalein at trace concentrations. For standard 4 ms sample interval KCl/polymer muds drilling through Cardium and Viking sections in central Alberta, where the target Pf of 1.0 to 2.5 mL and Mf = 0 are straightforward to achieve and maintain, manual titration is adequate. For lime and gyp muds in Alberta Foothills deep HPHT wells where precision of ±0.1 mL in Pm measurement distinguishes adequate from inadequate lime reserve, digital titrators or potentiometric titration (pH electrode) are specified in the mud programme.
  • The alkalinity test procedure requires the filtrate to be a representative aliquot of the clear filtrate obtained from API standard filtration (low-pressure API 100 psi filtration on a 100 cm² API filter press at room temperature), and using whole mud or unclarified filtrate introduces systematic positive errors in Pf and Mf that can trigger unnecessary chemical treatment: If the filtrate sample contains fine colloidal clay particles or undissolved Ca(OH)2 fines that passed through the filter paper, these suspended solids titrate along with the dissolved alkalinity species and give falsely high Pf and Mf readings. Standard API practice requires visual inspection of the filtrate for turbidity and re-filtration through a 0.45-micron membrane filter if the filtrate appears cloudy. In barite-weighted muds at densities above 1.80 g/cm³, the high solids content increases the probability of barite fines in the filtrate (BaSO4 is not alkaline but can co-precipitate CaCO3 from high-calcium filtrates), and the mud engineer must confirm filtrate clarity before proceeding with the titration. Errors from non-representative filtrate are systematic (always positive) and can result in withholding caustic or lime treatment because alkalinity appears sufficient when the actual filtrate alkalinity is 20 to 40% lower than the measured value.
  • Water-based completion and workover fluids require alkalinity testing using the same Pf/Mf protocol adapted for the specific fluid composition, with calcium brine (CaCl2, CaBr2) completion fluids requiring pH adjustment to 8.5 to 9.5 and alkalinity maintenance at Pf 1.0 to 2.5 mL to protect tubular steel and prevent pitting corrosion during completions and extended shut-in periods: Dense calcium chloride (1.38 to 1.80 g/cm³) and calcium bromide (1.75 to 2.30 g/cm³) brines used as completion fluids in WCSB Montney and Duvernay perforating and workover operations are acidic if untreated (pH 4 to 6 due to hydrolysis of dissolved CaCl2 and CaBr2). Without pH control, these brines cause pitting corrosion of the tubing and casing at rates of 0.5 to 2.0 mm/year — unacceptable for well integrity over the 20 to 30-year well life anticipated for deep HPHT Montney wells. NaOH or KOH is added to raise pH to 8.5 to 9.5, establishing Pf alkalinity at 1.0 to 2.5 mL. However, at high calcium concentrations (100,000 to 150,000 mg/L CaCl2), excess NaOH addition raises pH above 10 and precipitates Ca(OH)2, which deposits on the tubular walls as a white scale. The alkalinity test identifies this risk: if Pm/Pf ratio unexpectedly rises above 3 in a completion brine, Ca(OH)2 precipitation from excess caustic is likely and the treatment dose must be reduced.

Alkalinity Test Interpretation in Lime Mud Systems

In Alberta Foothills HPHT wells drilling through the Blackstone, Wapiabi, and Belly River shale sections at temperatures above 120°C, lime mud systems maintain pH 11.5 to 12.5 using excess suspended Ca(OH)2. The mud programme specifies Pf 4 to 8 mL (high dissolved alkalinity), Pm 20 to 40 mL (large solid lime reserve), and Mf = 0 (no bicarbonate contamination). When the drill string tags a biogenic gas horizon in the Belly River, CO2 uptake consumes OH- from the lime dissolution equilibrium: Ca(OH)2(s) + CO2 → CaCO3 + H2O. The titration results the following morning show Pf = 3.2 mL (down from 6.1 mL the previous morning), Pm = 14 mL (down from 28 mL), and Mf = 0.6 mL (HCO3- present). The mud engineer adds 2.5 kg/m³ Ca(OH)2 to the active system, which after 1 hour of circulation raises Pf to 5.8 mL, Pm to 24 mL, and reduces Mf to zero. The sequence of tests — twice-shift monitoring, immediate response on CO2 indicator (Mf > 0), treatment confirmation — illustrates the operational value of the alkalinity test as a real-time quality control tool for mud system stability in chemically challenging drilling environments.

Fast Facts

The phenolphthalein indicator used in the Pf alkalinity test was synthesised by Adolf von Baeyer in 1871 and was introduced into analytical chemistry as a pH indicator in the 1880s; it exhibits a sharp colour transition from colourless (pH below 8.2) to vivid pink-red (pH above 8.4), making endpoint detection reliable even in the dimly lit conditions of a mud logging unit or rig mud lab. API RP 13B-1 was first published by the American Petroleum Institute in 1942 as part of the original Standard on Drilling Fluids, and the Pf/Pm/Mf alkalinity test protocol has remained essentially unchanged through all subsequent revisions (1952, 1977, 1990, 2009, 2019), reflecting the robust and straightforward chemistry that makes it a reliable field test requiring no electronic equipment. The methyl orange indicator (sodium 4-[(4-(dimethylamino)phenyl)azo]benzenesulfonate) changes from yellow (alkaline, above pH 4.4) to orange-red (acid, below pH 3.1) with a sharp transition at pH 4.1 to 4.4, effectively marking the point where all carbonate and bicarbonate alkalinity has been neutralised. In Canadian drilling operations, both CAOEC (Canadian Association of Oilwell Drilling Contractors) and AER Directive 059 reference API RP 13B-1 as the standard for mud analysis reporting, with Pf, Mf, and Pm values required in the drilling records submitted to the AER for all wells drilled in Alberta. Modern Hach digital titration systems used on offshore drilling rigs in the Jeanne d'Arc Basin (Newfoundland) and the Norwegian Continental Shelf perform the Pf and Mf titrations automatically with barcode-scanned acid cartridges and electronic data recording, eliminating manual volume reading errors and producing a time-stamped digital record that is transmitted directly to the operator's wellsite data management system.