A coffee roasting apparatus (100) is disclosed that comprises a compartment (110) for holding coffee beans (10); a roasting element (140) for directing a heated air flow through said compartment; a particulate matter sensor (120) for detecting a peak amount of particulate matter in said air flow; and a controller (130) arranged to control said roasting element. The controller is adapted to select a defined control time for said roasting element as a function of an amount of time lapsed from the start of the roasting process until the detection of said peak amount; and apply the defined control time to said roasting element after first cracking of the coffee beans to complete the roasting of the coffee beans in order to obtain a consistent roasting result. A coffee brewing apparatus including such a coffee roasting apparatus and a method of controlling such a coffee roasting apparatus are also disclosed.