In order to provide a coffee machine comprising a housing that contains the components of the machine, in particular a bean container, a grinder, at least one pump, a water container, a brewing assembly, at least one heater, power electronics with mains connection, control electronics with control modules, switches, signal lamps, display, level indicator, a beverage dispenser, a cup tray, or further components, for which design variants can be obtained at as low cost as possible, it is proposed that at the housing, there is detachably attached a head section covering an upper opening of the housing or one or two side parts that cover lateral openings of the housing or a front section forming the front of the housing, or a rear section forming the rear of the housing, or a beverage dispenser or a tray.