During fermentation, the yeast Saccharomyces cerevisiae produces a broad range of aroma-active substances, which are vital for the complex flavour of beer. In order to obtain insight into the influence of high-gravity brewing and fermentation temperature on flavour formation, we analysed flavour production and the expression level of ten genes (ADH1, BAP2, BAT1, BAT2, ILV5, ATF1, ATF2, IAH1, EHT1 and EEB1) during fermentation of a lager and an ale yeast. Higher initial wort gravity increased acetate ester production, while the influence of higher fermentation temperature on aroma compound production was rather limited. In addition, there is a good correlation between flavour production and the expression level of specific genes involved in the biosynthesis of aroma compounds. We conclude that yeasts with desired amounts of esters and higher alcohols, in accordance with specific consumer preferences, may be identified based on the expression level of flavour biosynthesis genes. Moreover, these results demonstrate that the initial wort density can determine the final concentration of important volatile aroma compounds, thereby allowing beneficial adaptation of the flavour of beer.