International Bitterness Units (IBU) is a measure of the bitterness in homebrew. One IBU is the same as one milligram of isomerized alpha acid per liter of homebrew. Isomerized alpha acids are the main bittering acids derived from hops. Calculating IBU's can be very tricky, because of this there are many different calculations for determining IBU's. All of these calculations will produce different results. Brewgr uses the Tinseth formula for now. We are working on a new formula for calculating the IBU's in homebrew and will update as soon as we are complete.
Gravity = (Batch Size In Gallons / Boil Size In Gallons) * (Gravity - 1)
Bigness Factor = 1.65 * Math.pow(0.000125, Gravity)
Boil Time Factor = (1 - Math.pow(2.718281828459045235, (-0.04 * Boil Time))) / 4.15
Utilization = Bigness Factor * Boil Time Factor
If you are using hop pellets we then mutiply the utilization by 1.1.
IBU = (Alpha Acid * Ounces) * Utilization * 74.90 / Batch Size In Gallons