@beerwright/core
    Preparing search index...

    Function sugarToGravity

    • Honey, sucrose or dextrose to bring a liquid up to a gravity.

      kg = (target_points − current_points) × volume_L / yield_points·L/kg
      

      This calls sugarToTargetGravity in corrections.ts, which conserves extract (the same rule as "my pre-boil is low, how much DME?"), with the yield table above as the divisor.

      Building a honey must from water, chaptalising a thin juice, and backsweetening a stabilised drink are the same calculation. The function doesn't need to know which one it's doing: currentSg says whether the brewer is starting from water or from something that already has sugar.

      The answer is the mass that reaches the target in the volume given, but dissolving it increases the volume by about 0.7 L per kilogram of honey. Including that would mean solving for a volume that depends on the answer. A mead maker filling a carboy wants to know how much honey to add and then leave room for it. The explanation has a note about this.

      spirits.ts's proofAndSweeten does count the sugar's volume, because an amaro maker fixes the strength and the sweetness and solves for the volume, so the sugar's volume is part of the unknown. The two functions answer different questions with the same chemistry.

      A target at or below the current gravity returns zero, because adding sugar can't lower a gravity. For diluting, use dilutionToTargetGravity in corrections.ts.

      Parameters

      Returns SugarToGravityResult