A coffee roasting apparatus (100) is disclosed comprising a compartment (110) for holding coffee beans (10) a roasting element (140) for roasting the coffee beans in said compartment and a controller (130) for controlling the roasting element, wherein the controller is adapted to control the roasting element as a function of the concentration of volatile organic compounds residing in the compartment. A coffee brewing apparatus including such a coffee roasting apparatus and a coffee roasting method are also disclosed.