In this work, a novel method for direct determination of total iron in viscous samples (edible oils and biodiesel) is presented. Considering sensitivity and selectivity, the proposed method used in-line singlephase extraction and CdTe quantum dots (QDs). The method was automated employing a flow-batch system. The in-line single-phase extraction of iron consisted of the addition of a mixture of ethanol/ chloroform (75 : 25, v/v) to dissolve the oil samples, followed by addition of an acid solution, HNO 3 /HCl (3 : 1, v/v) to make the iron available. The analytical method was based on iron capacity to establish surface interactions with CdTe QDs that result in quenching of their fluorescence intensity proportional to the iron concentration. Various factors that may influence the fluorescence quenching of iron, such as pH, sample volume, amount of the organic mixture, and acid solution concentration, were studied.The maximum reproducibility of this fluorescence quenching occurred at pH 7.5. Phosphate buffered saline (PBS) 1.0 mol L À1 was added before the reaction. Method validation and application to real samples showed that the analytical features of the developed method were quite satisfactory in terms of linearity (r 2 ¼ 0.997), limit of detection (0.1 mg g À1 ), precision (RSD < 1.6%), and accuracy (recovery ¼ 95.5-104.3% range), when compared to other studies in the literature. The proposed automatic method presented suitable robustness, a high sampling rate (79 h À1 ), and lower waste generation per determination (0.900 mL), contributing to the basic principles of green chemistry.