Petroleum Knowledge Base

pH and Alkalinity

The pH of a drilling fluid is the negative logarithm of the hydrogen ion concentration in its filtrate, and alkalinity is the ability of the fluid or filtrate to neutralize strong acid. Water-based drilling fluids are mostly controlled at a weakly alkaline pH of 8 to 11. In the field, the phenolphthalein alkalinities Pf and Pm and the methyl orange alkalinity Mf are used to estimate the contents of OH⁻, CO₃²⁻ and HCO₃⁻ and to calculate the reserve alkalinity of calcium-treated drilling fluids.

Concept

pH is the negative logarithm of the hydrogen ion concentration, pH = −lg[H⁺]. What is measured in the field is mostly the filtrate, and a pH above 7 means the solution is alkaline. Alkalinity is the ability of a drilling fluid or its filtrate to neutralize strong acid; it reflects the total amount of ions that can react with H⁺, such as OH⁻, CO₃²⁻ and HCO₃⁻.

The pH is directly related to the degree of dispersion of clay particles, so it markedly affects the viscosity, gel strength and other properties of a drilling fluid. On the test curve of a prehydrated bentonite base slurry (bentonite 57.1 kg/m³), the apparent viscosity is essentially unchanged at about 9 mPa·s when the pH is between 7 and 9; above pH 9 the apparent viscosity rises more quickly, reaching about 27 mPa·s near pH 11 (value read from the graph). The reason is that as the pH rises, more OH⁻ is adsorbed on the surfaces of the clay unit layers, the negative charge on the clay increases, and the clay hydrates and disperses more easily under shear.

Most water-based drilling fluids are controlled in the weakly alkaline range of pH 8 to 11, for three main reasons:

  • to reduce corrosion of the drill string and to prevent damage to the drill string and casing caused by hydrogen embrittlement;
  • to suppress the dissolution of calcium and magnesium salts in the drilling fluid;
  • treating agents such as tannins, lignite products and lignosulfonates work fully only in an alkaline medium.

The usual control range differs among types of drilling fluid:

System Usual pH range
Dispersed drilling fluid Above 10
Lime-containing calcium-treated drilling fluid 11 to 12
Gypsum-containing calcium-treated drilling fluid 9.5 to 10.5
Nondispersed (polymer) drilling fluid 7.5 to 8.5

To prevent CO₂ corrosion of the drill string, the pH of dispersed systems is often controlled above 10. The main treating agent for adjusting pH is caustic soda (NaOH); soda ash (Na₂CO₃) and lime can also be used, and the pH of saturated lime water is above 12. Adding sodium acid pyrophosphate, gypsum or calcium chloride lowers the pH.

Classification

Why Alkalinity Is Measured in Addition to pH

The pH is on a logarithmic scale: each unit of change corresponds to a tenfold difference in hydroxide concentration, so the reading is coarse, and it cannot tell which ions the alkalinity comes from. Alkalinity titration can separately estimate the amounts of OH⁻, CO₃²⁻ and HCO₃⁻ in the filtrate, and can also give the amount of suspended lime.

Three Alkalinities

Alkalinity is titrated with standard sulfuric acid and, according to the end-point indicator, is divided into:

  • Phenolphthalein alkalinity: the amount of acid consumed in titrating to the color change point of phenolphthalein (pH ≈ 8.3, red to colorless). For the filtrate it is denoted Pf, and for the whole drilling fluid Pm.
  • Methyl orange alkalinity: the amount of acid consumed in titrating to the color change point of methyl orange (pH ≈ 4.3, yellow to orange-red), that is, the total acid consumed cumulatively from the start of the titration. For the filtrate it is denoted Mf, and for the whole drilling fluid Mm.

In the API method, the acid is 0.02 N (that is, 0.01 mol/L) H₂SO₄, and the value is taken as the milliliters of acid consumed in titrating 1 mL of sample, with the unit often omitted. For Pf and Mf, 1 mL of filtrate is titrated directly; for Pm, 1 mL of drilling fluid is first diluted with 25 to 50 mL of distilled water so that the suspended lime dissolves fully, and then titrated.

Ion Concentrations in the Filtrate

At pH 8.3, OH⁻ has been fully neutralized and CO₃²⁻ has been converted to HCO₃⁻; on titrating further to pH 4.3, HCO₃⁻ is converted to CO₂ and water. The mass concentrations of the three ions, in mg/L, can therefore be estimated from the relation between Pf and Mf:

Condition OH⁻ CO₃²⁻ HCO₃⁻
Pf = 0 0 0 1 220 Mf
0 < 2Pf < Mf 0 1 200 Pf 1 220 (Mf − 2Pf)
2Pf = Mf 0 1 200 Pf 0
2Pf > Mf 340 (2Pf − Mf) 1 200 (Mf − Pf) 0
Pf = Mf 340 Mf 0 0

These coefficients are converted from the acid concentration: 1 mL of 0.02 N acid consumed by 1 mL of sample is equivalent to 20 mmol/L of H⁺, which is then multiplied by the molar masses of OH⁻ (17), CO₃²⁻ (60) and HCO₃⁻ (61) to give 340, 1 200 and 1 220. The table assumes that these three are the only alkaline ions in the filtrate. If the filtrate also contains inorganic ions that react with H⁺, such as silicate and phosphate, or organic treating agents, both Pf and Mf will be in error, and the results in the table can be taken only as estimates; where accurate ion contents are required, a separate determination should be made (see Ion Analysis of Drilling Fluids).

Example A calcium-treated drilling fluid filtrate is measured with Pf = 1.0 and Mf = 1.1. Since 2Pf = 2.0 > Mf, OH⁻ = 340 × (2.0 − 1.1) = 306 mg/L, CO₃²⁻ = 1 200 × (1.1 − 1.0) = 120 mg/L, and HCO₃⁻ is 0. Pf and Mf are very close, which shows that the alkalinity is mainly supplied by OH⁻.

Reserve Alkalinity

In a calcium-treated drilling fluid, part of the lime is suspended in solid form. When the pH falls it continues to dissolve, which on the one hand replenishes Ca²⁺ and on the other keeps the pH stable. This amount of alkalinity is called the reserve alkalinity, and it is usually expressed as the content of undissolved Ca(OH)₂:

Reserve alkalinity (kg/m³) = 0.742 (Pm − fw Pf)

where fw is the volume fraction of water in the drilling fluid (as a decimal). The term fwPf in the parentheses is the amount of alkalinity dissolved in the filtrate; subtracting it from Pm leaves the suspended lime. The coefficient 0.742 corresponds to the equivalence of 0.02 N acid and Ca(OH)₂.

Example For the same drilling fluid as in the example above, Pm = 7.0, the solids content is 10%, and there is no oil, so fw = 0.90 and the reserve alkalinity = 0.742 × (7.0 − 0.90 × 1.0) = 0.742 × 6.1 ≈ 4.53 kg/m³. The amount of suspended lime in a calcium-treated drilling fluid is generally best kept at 3 to 6 kg/m³. For the control range of excess lime in lime drilling fluids, see Calcium-Treated Mud.

Influencing Factors and Considerations

Measuring pH. pH test paper can be read to 0.5 pH unit and precision pH paper to 0.2; where greater accuracy is required, a pH meter is used, calibrated beforehand with buffer solutions, and the temperature of the test liquid and the buffer should be the same. For a drilling fluid with high salt content, the color reading of test paper may be inaccurate, and the glass electrode also gives errors at high Na⁺ concentration, so a special electrode or a correction factor is needed.

A higher pH is not always better. A rise in pH makes clay hydrate and disperse more easily, so viscosity and gel strength increase (see the curve above). In a lime drilling fluid, the solubility of lime decreases as the pH rises: if the pH is too high, the filtrate contains very little Ca²⁺ and calcium treatment loses its purpose; if the pH is too low, Ca²⁺ increases and the viscosity and gel strength may exceed the allowable range.

Changes in pH. During drilling, salt contamination, cement contamination and adsorption on the borehole wall can all change the pH, and a decrease is more common; the pH should therefore be measured regularly and adjusted promptly, usually by adding caustic soda. For the types of contamination and their treatment, see Drilling Fluid Contamination and Treatment.

Carbonate and bicarbonate. An Mf clearly greater than Pf shows that the filtrate contains too much carbonate or bicarbonate. The source should be found before treatment, and thinners such as lignosulfonate should not be added directly, because when the thickening is caused by carbonate, thinning it with such agents may give a worse result. The two ions act differently: at low CO₃²⁻ concentration the initial and final gel strengths fall slightly, but beyond a certain range the rheological properties may deteriorate sharply, approaching solidification in severe cases; HCO₃⁻ may impair the rheological properties even at quite low concentration, and further increases no longer make the effect markedly worse. For treatment, see Drilling Fluid Contamination and Treatment.

References

  1. Drilling Handbook (in Chinese).
  2. Yan Jienian. Drilling Fluid Technology (in Chinese). China University of Petroleum Press, 2001.
  3. Zhang Keqin; Chen Leliang. Drilling Technology Handbook (II): Drilling Fluids (in Chinese). Petroleum Industry Press, 1988.