Production chemicals can be injected downhole at the wellhead or between the wellhead and the oil/water separation facilities. Typically the injected fluid is a complex mixture of chemicals designed to impart several different functions including (i) inhibition of asphaltene wax inorganic or organic scale deposition (ii) inhibition of gas hydrates (iii) corrosion inhibition (iv) scavenging of unwanted species such as H2S and (v) enhancement of the efficiency of oil/water separation. Most production chemicals are soluble in the produced water in the liquid hydrocarbon phase or they partition between the water and oil phases. Produced waters are either reinjected or in some cases they treated to minimise the concentration of residual oil and production chemicals prior to discharge. There is a need for methods to quantify and monitor the concentration of production chemicals in produced water in order to optimise their process efficiency and for environmental reasons. We have developed a method to quantify the concentration of corrosion inhibitor in produced brines. The method is based on a critical sample concentration step (during which the water is removed) followed by an analysis of the solid inorganic/organic residue by diffuse reflectance Fourier transform infra-red spectroscopy (DRIFTS). The DRIFTS spectrum comprises absorbance bands due to the infra-red active salts in the brine and the residual organics (corrosion inhibitor components) present in the solid residue. Therefore a specific DRIFTS calibration is constructed for any given production chemical/mixture and produced brine composition. Several different absorbance peaks can be used to construct a calibration relating the absorbance of the peak to the concentration of the corrosion inhibitor in the brine. The detection limit of the method depends on the sample volume used to create the solid residue. Pre-concentration steps can be used to reduce the detection limit. Examples of the method are given wherein the corrosion inhibitor is a quaternary ammonium compound dispersed in a North Sea produced brine.