This research examines the concentration of 10 trace elements including arsenic (As), lead (Pb), chromium (Cr), zinc (Zn), iron (Fe), cobalt (Co), cadmium (Cd), nickel (Ni), manganese (Mn), and aluminum (Al) from among 36 different samples of coffee (3 brands and 2 types of simple and instant) and mixed coffee (3 brands and 4 types of simple, creamy, chocolate and sugar free) collected from market of Iran's and analyzed by using ICP-OES (inductively coupled plasma-optical emission spectrometry). The recovery, limit of quantification (LOQ), and limit of detection (LOD) ranged from 93.4 to 103.1%, 0.06 to 7.22, and 0.018 to 2.166 µg/kg, respectively. The findings showed that the highest and lowest average concentrations were 498.72 ± 23.07 μg/kg (Fe) and 3.01 ± 1.30 μg/kg (As) in coffee and mixed coffee samples. Also, in all samples, the maximum concentration of trace elements was related to Fe (1353.61 µg/kg) and the minimum concentration was related to Al, As, Co, Cr, Ni, Pb, and Zn that were not detected (ND). The samples of mixed coffee had highest levels of trace elements compared to coffee samples. In coffee samples, type of instant coffee had highest levels of trace elements compared to simple coffee and mixed coffee samples. The type of creamy mixed coffee had highest levels of trace elements (except Ni and Cr) compared to other type of mixed coffee samples. Finally, trace elements were less than the standard levels of Iran and other countries (in all samples); therefore, it does not threaten Iranian consumers.