A generalized partial-least-squares calibration for determination of the trans content of edible fats and oils by Fourier transform near-infrared (FT-NIR) spectroscopy using 8-mm disposable glass vials for sample handling and measurement was developed. The trans contents of a broad range of oils were determined using the American Oil Chemists' Society single-bounce horizontal attenuated total reflectance (SB-HATR) mid-infrared spectroscopic procedure, these trans reference data were used in the development of the generalized FT-NIR calibration. Additional refined and product-specific calibrations were also developed, and all the calibrations were assessed for their predictive capabilities using two sets of validation samples, one comprising a broad range of oil types and the other restricted to oils with specific characteristics. The FT-NIR trans predictions obtained using the generalized calibration were in good agreement with the SB-HATR results; the values were accurate and reproducible to within +/-1.1 and +/-0.5% trans, respectively, compared to a reproducibility of +/-0.40% trans obtained for the SB-HATR method. The accuracy of the predictions obtained from the generalized FT-NIR calibration for particular oil types was not significantly improved by supplementing the base training set with samples of these specific types. Calibrating only these oil types did, however, produce a substantial improvement in predictive accuracy, approaching that of the SB-HATR method. These product specific calibrations produced serious predictive errors when nonrepresentative samples were analyzed. The incorporation of a supplementary discriminate analysis routine was found to be a powerful safeguard in flagging nonrepresentative samples as outliers and could also be used to select the calibration most appropriate for the characteristics of the sample being analyzed. Overall, it was concluded that FT-NIR spectroscopy provides a viable alternative to the SB-HATR/mid-Fourier transform infrared method for trans determination, making use of more industrially robust instrumentation and equipped with a simpler sample handling system.