Mid-FTIR spectroscopy can be used to rapidly and quantitatively determine the BN of hydrocarbon lubricating oils by spectroscopically measuring the carboxylate (COO-) functional group of the salt produced when trifluoroacetic acid (TFA) reacts with basic constituents present in an oil sample.