The applicability of thermogravimetry (TG) coupled to single photon ionization time-of-flight mass spectrometry (TG-SPI-TOFMS) for evolved gas analysis (EGA) of coffee is demonstrated in this study. Coffee is a chemically well-known complex food product of large scientific and commercial interest. The roasting process of single green coffee beans (Arabica, Robusta) was simulated in the TG-SPI-TOFMS device, and the chemical composition of the evolved roasting gases was monitored on-line. Additionally, roasted and ground coffee powders of different types and brands as well as instant coffee were successfully investigated. For example, the diterpenes cafestol and kahweol can be detected among many other roasting products. These compounds can be of particular interest for quality control of coffee. It is shown that kahweol can be used as a tracer compound to discriminate arabica coffee species from robusta species.