As wort ferments and turns into beer, yeast converts fermentable sugars into alcohol. Since alcohol is less dense than sugar, the alcohol content can be calculated by comparing the density of the finished homebrew with the density of the wort before fermentation.