lukebatchelor / beer-calories-app

Home Page:http://beer.lbat.ch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beer-calories-app

Small webapp to estimate the calories in a beer given either it's ABV or it's Specific Gravity

Try it at http://beer.lbat.ch/

Calculations

Simple estimate from ABV

Beer calories = ABV% x factor 2.5 x ounces of beer

where

1 fl oz = 29.5735ml

From Specific Gravity

We calculate the amount of calories from alcohol and also from carbohydrates

TotalCalories = CaloriesFromAlcohol + CaloriesFromCarbs

where

CaloriesFromAcolhol = 1881.22 * Final_Gravity * (Original_Gravity – Final_Gravity)/(1.775 – Original_Gravity)

and

CaloriesFromCarbs = 3550 * Final_Gravity * ((0.1808 * Original_Gravity) + (0.8192 * Final_Gravity) – 1.0004)

Estimating ABV from Specific Gravity

We can also estimate the abv given the specific gravity's.

The "basic" formula is

ABV = (Original_Gravity - Final_Gravity) * 131.25

The more accurate formula (especially for higher ABV beers) is

ABV = (76.08 * (Original_Gravity-Final_Gravity) / (1.775-Original_Gravity)) * (Final_Gravity / 0.794)

Credits

Formulas compiled from:

About

http://beer.lbat.ch/


Languages

Language:JavaScript 88.0%Language:Vue 7.8%Language:CSS 2.2%Language:TypeScript 1.3%Language:HTML 0.7%