Cody

Problem 1146. Calculate Alcohol By Volume with Original and Final Gravity

Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possible to get the general ABV (will be a %).

Note: Any wort that gets denser through fermentation will appear to have a negative ABV; in those cases the ABV should be marked as 0. Most brews do not have a lot of room on the label so round to the 2nd decimal place. Assume a constant of 131 is involved (this is why it is only a general ABV).

Example:

x = [OG FG] = [1.085 1.009]

ABV = (OG-FG)*131 = 9.96%

Solution Stats

38.78% Correct | 61.22% Incorrect
Last solution submitted on Nov 28, 2016
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more