Keg Line Length & Carbonation Calculator | Draft Balancer

Balance keg carbonation, CO₂ regulator pressure and beer line length using flow-dependent friction. Includes altitude, warming, foam-risk profiles, bottle priming sugar and ABV.

#ABV #carbonation #CO2 #Darcy–Weisbach #keg #priming sugar

Caution

Priming sugar added before fermentation has finished, or bottles not rated for the pressure, can make bottles burst. Prime only at a stable final gravity and use bottles rated for the carbonation.

Use this keg line length calculator to choose a CO₂ regulator setting and size a beer line for a desired pour rate. It is for homebrewers, draught technicians, engineering students and anyone troubleshooting a kegerator. It also includes a priming sugar calculator for bottles and an ABV estimate from original and final gravity.

Start with the beer temperature and target carbonation. CO₂ volumes mean litres of gas, measured at 0 °C and one atmosphere, per litre of beer. Enter the site altitude so the tool can convert the required absolute pressure into the local regulator gauge reading. The carbonation chart shows how the required pressure rises as beer warms. The default example uses 38 °F beer and 2.5 volumes.

Next enter the tube’s actual inside diameter, the desired flow and the faucet height above the beer surface. Positive height means uphill. The calculated line length balances friction, elevation, fittings and the velocity of the exiting beer. A longer, narrower line generally slows a pour. A fixed psi-per-foot rating can be misleading because friction depends on flow, bore, viscosity and roughness. The flow sweep makes that dependence visible. Start with a little extra tubing and trim after measuring the real pour.

The pressure plot compares the liquid pressure during pouring, the pressure with the faucet closed and the CO₂ equilibrium threshold at the assumed local temperature. Where liquid pressure falls below the threshold, CO₂ can leave solution. That is a thermodynamic risk marker: it cannot predict the exact location of visible foam. Cold, clean tubing can carry supersaturated beer for a short time without obvious bubbles. Warming, rough surfaces and restrictions encourage breakout. The profile stops just before the faucet, where the final pressure drop occurs.

To check an existing regulator reading, select the measured-setting option. The tool shows the carbonation that setting would eventually produce; results outside 1.2–4 volumes carry an explicit unvalidated-extrapolation warning. Do not permanently raise pure CO₂ pressure just to overcome poor cooling or force a preferred flow rate.

Keg applicability warnings withhold only affected keg results. Bottle priming and ABV remain available when keg line sizing is infeasible.

For bottle priming, enter the actual packaged volume and the warmest temperature after fermentation. Select the exact sugar form; corn sugar sold as dextrose monohydrate differs from anhydrous glucose. Use measured residual CO₂ for pressure-fermented or already carbonated beer. Weigh and mix the sugar evenly, and bottle only fully fermented beer in suitable pressure-rated bottles.

The model covers one uniform beer tube with pure CO₂. It excludes gas blends, pumps, branched systems, nucleation kinetics, bottle headspace and detailed faucet geometry. Viscosity and fitting coefficients are estimates unless measured. ABV is a hydrometer approximation before priming. Installation and pressure-system modifications belong to a qualified person.

How it is calculated

Carbonation and regulator. Henry’s law relates dissolved CO₂ to its absolute partial pressure. For ordinary beer we implement the empirical pressure–temperature–carbonation fit published by Bill Pierce in Brew Your Own, rather than substitute pure-water solubility data. With temperature TT in °F and carbonation CC in volumes, its sea-level gauge pressure in psi is

ps=−16.6999−0.0101059T+0.00116512T2+(4.24267+0.173354T)C−0.0684226C2.p_s=-16.6999-0.0101059T+0.00116512T^2+(4.24267+0.173354T)C-0.0684226C^2.

The local setting is pg=ps+p0−patmp_g=p_s+p_0-p_{atm} after consistent pressure conversion. The same fit is inverted for the eventual carbonation at a measured setting. An inverse result outside 1.2–4 volumes is flagged as unvalidated extrapolation. Standard-atmosphere pressure follows hydrostatic equilibrium and an ideal gas with a linear temperature lapse.

Line sizing. Conservation of mechanical energy between the beer surface and the free outlet gives

pg=ρgh+(1+Kentry+Kfaucet+fDL/D)ρv2/2.p_g=\rho g h+\left(1+K_{entry}+K_{faucet}+f_D L/D\right)\rho v^2/2.

Here v=4Q/(πD2)v=4Q/(\pi D^2) and Re=ρvD/μRe=\rho vD/\mu. Churchill’s all-regime correlation supplies the Darcy friction factor. The term 1 is the outlet velocity head, not an extra empirical faucet loss. Upstream fitting loss is lumped at the inlet; faucet and shank loss occurs at the far end. This extends Soltys’s published Bernoulli–Darcy model to include specified fitting losses.

Pressure and warming. At fractional position s=x/Ls=x/L, use z=shz=sh and T=Tbeer+sΔTT=T_{beer}+s\Delta T. Flowing static liquid pressure is pg−(1+Kentry)ρv2/2−s(Δpfriction+ρgh)p_g-(1+K_{entry})\rho v^2/2-s(\Delta p_{friction}+\rho gh). With the faucet closed it is pg−sρghp_g-s\rho gh. Compare both with the local equilibrium pressure for the selected CO₂ content. The first crossing is interpolated across 101 samples; −1 internally means no crossing.

Bottles and ABV. The Brewer’s Friend residual estimate is Cr=3.0378−0.050062TF+0.00026555TF2C_r=3.0378-0.050062T_F+0.00026555T_F^2, multiplied by patm/p0p_{atm}/p_0 using Henry’s law for an airlock with a CO₂-rich headspace. A measured value overrides it. Required gas mass is max⁡(C−Cr,0)ρCO2Vb\max(C-C_r,0)\rho_{CO₂}V_b. Stoichiometry gives four CO₂ molecules per sucrose molecule, or two per glucose molecule; divide gas mass by the corresponding mass yield. Hydrated glucose includes its bound water. The manual reports CO₂ density 1.9768 g/L at STP (s6, PDF p. 69). ABV before priming is 131.25(OG−FG)131.25(OG-FG) percent.

Assumptions

One circular tube of uniform bore; pure CO₂; a fully open faucet; steady, incompressible single-phase liquid flow; constant density and viscosity; straight-line elevation and temperature profiles. Keg liquid-surface velocity is negligible. Density is final specific gravity times 1000 kg/m³. The default 1.57 mPa·s viscosity and 4.8768 µm vinyl roughness follow Soltys’s assumptions, not a universal beer or hose specification. Entrance coefficient 0.5 and faucet/shank coefficient 2 are editable engineering estimates, referenced to tube velocity. Coils, fittings, deposits and actual faucet geometry may need measured coefficients.

The carbonation correlation approximates typical beer; alcohol and extract effects are not separately corrected. The calculated ABV does not alter this fit. Beer is assumed initially at the target carbonation when pressure profiles are evaluated, including when a different measured pressure is selected.

Bottle sugar is pure and completely fermented; all newly produced CO₂ is assigned to the liquid. Headspace gas, yeast growth and sugar moisture are neglected. The temperature-based residual estimate assumes unpressurized fermentation under a CO₂-rich airlock. The pressure-profile and sugar stoichiometry equations are derived here from energy and mass balances; they are not copied line-length or dosing tables.

Where it applies

Use for preliminary sizing and troubleshooting of conventional short, single-tube beer systems: keg temperature 0–12 °C, target carbonation 1.2–4 volumes, tube bore 2–12.7 mm and altitude −400 to 4000 m. The local temperature must remain at or below 26.7 °C (80 °F). Residual-carbonation estimation is restricted to 0–30 °C. These are the tool’s operating limits, not a guarantee of uniform correlation accuracy. Published pressure checks cover 33–42 °F and 2.1–2.9 volumes; expect practical equilibrium uncertainty of a few tenths of a psi or more for unusual beer.

The tube length must be positive and long enough to span the height. Friction in the 2300–4000 Reynolds transition range is uncertain despite a smooth correlation. Very long, coiled or complex systems require a detailed design.

A negative CO₂ equilibrium margin identifies supersaturation, not the onset or amount of visible foam. Pure-CO₂ equilibrium beer commonly becomes supersaturated immediately during flow because static pressure falls; metastability and the short residence time can still permit a satisfactory pour. Downstream values are a single-phase extrapolation once bubbles form. The plot stops before the faucet’s final pressure drop; use cooling and measured pour behaviour to refine the design. The closed-faucet curve assumes the same entered temperature profile; actual idle warming can be larger.

No gas blends, nitrogenated beer, pumps, two-phase pressure losses, nucleation kinetics or bottle-pressure rating checks. Use measured residual CO₂ after spunding or previous carbonation. The bottle estimate neglects headspace and is a practical mass-balance approximation. Bottle only fully fermented beer, weigh and distribute sugar evenly, and respect container and fitting pressure ratings. ABV is a temperature-corrected hydrometer estimate before priming, not a legal alcohol determination. Installation and pressure-system modifications belong to a qualified person.

Measured-pressure mode can still size a feasible line when the target equilibrium gauge pressure is zero or negative. The recommended positive regulator setting is then shown as a dash; a positive pure-CO₂ regulator cannot maintain that target. Eventual carbonation outside 1.2–4 volumes is explicitly marked by a warning as an unvalidated extrapolation, and eventual carbonation above 3 volumes triggers the container-rating warning as well as a high target. Keg applicability failures show warnings and withhold only the affected line or pressure-profile results, with a dash or an unavailable message. Independently valid bottle-priming and ABV results remain available.

References

  • Brewers Association, Draught Beer Quality Manual, 4th ed. (2019), pp. 89–94: carbonation table, absolute pressure, gas solubility and CO₂ density. https://cdn.brewersassociation.org/wp-content/uploads/2019/03/13094643/Draught-Beer-Quality-Manual-2019.pdf
  • Brewers Association, Draught Beer Quality Manual, 2nd ed. (2011), attached source s6: PDF pp. 68–71 (printed pp. 67–70). University-hosted open copy: https://bpb-us-w2.wpmucdn.com/u.osu.edu/dist/c/23272/files/2015/09/Draught_Quality_Manual-24vty9k.pdf
  • Bill Pierce, Balancing your Draft System, Brew Your Own: beer equilibrium pressure polynomial. Only its equilibrium correlation is used; fixed line resistance ratings are not used. https://byo.com/articles/balancing-your-draft-system-advanced-brewing/
  • Mike Soltys (2012, updated 2014), Determining Proper Hose Length for Your Kegerator: Bernoulli–Darcy approach, vinyl roughness and viscosity assumptions. https://www.mikesoltys.com/2012/09/17/determining-proper-hose-length-for-your-kegerator/
  • Stuart W. Churchill (1977), Friction-factor equation spans all fluid-flow regimes, Chemical Engineering 84(24), 91–92; Darcy factor is eight times the article’s wall-shear factor. https://files.engineering.com/files/85c0f3a6-a102-4a22-9d35-f15858c0dd2b/CEM_-_Friction-factor_equation_%281977%29.pdf
  • NASA Glenn, Earth Atmosphere Model: hydrostatic ideal-gas atmosphere with a tropospheric temperature lapse. This tool uses standard values 101325 Pa, 288.15 K, 0.0065 K/m and 287.05287 J/(kg·K). https://www.grc.nasa.gov/www/k-12/airplane/atmosmet.html
  • Brewer’s Friend, Beer Priming Sugar Calculator: residual CO₂ polynomial and use of warmest post-fermentation temperature. https://www.brewersfriend.com/beer-priming-calculator/
  • Brewer’s Friend, ABV Calculator: standard hydrometer formula. https://www.brewersfriend.com/abv-calculator/
  • The Purple Foot, Hydrometer Instructions, p. 1: published ABV examples 1.050 → 1.010 = 5.25%, and 1.060 → 1.010 = 6.56%. https://www.purplefootusa.com/Content/files/HydrometerInstructions.pdf
  • NIST Chemistry WebBook: sucrose and glucose molar masses. https://webbook.nist.gov/cgi/cbook.cgi?ID=C57501&Mask=262D ; https://webbook.nist.gov/cgi/cbook.cgi?ID=C50997&Mask=FFFFFF&Units=SI . PubChem, glucose monohydrate (198.17 g/mol): https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=66370

Inputs

InputSymbolUnitDefault
Target carbonation (CO₂ volumes)
Litres of CO₂ at 0 °C and 1 atm per litre of beer; most ales and lagers are around 2.2–2.7.
C_target2.5
Beer temperature in keg
Measure the beer, not the refrigerator air.
T_beer°C3.3333333333333335
Site altitude
Standard-atmosphere correction; local weather pressure is not included.
altitudem0
Regulator pressure
Pure beverage-grade CO₂ only. A higher setting changes the eventual keg carbonation.
pressure_modeUse carbonation equilibrium setting
Measured regulator gauge pressure
Local gauge reading, not absolute pressure.
p_measuredpsi12
Desired pour flow
2.4 L/min pours a US pint in about 12 seconds. Flow changes the friction per metre.
Q_targetL/min2.4
Tube inside diameter
Measure the bore. 3/16 in = 4.7625 mm; 1/4 in = 6.35 mm.
D_innermm4.7625
Faucet height above beer surface
Positive uphill; negative downhill. Use the actual beer surface, approximately keg centre when half full.
heightm0.6
Temperature rise to faucet
Measured or assumed total rise during a pour; modelled linearly along the tube. This is a temperature difference.
warmingK1
Dynamic viscosity
Soltys assumes about 1.57 mPa·s. Use a measured value for thick or unusual beers; held constant along the line.
mu_beermPa*s1.57
Tube absolute roughness
Soltys vinyl assumption: 0.000016 ft = 4.8768 µm. Actual tubing and deposits can differ.
roughnessum4.8768
Coupler and entrance loss coefficient
Adjustable estimate, referenced to tube velocity. Includes upstream fittings only.
K_entry0.5
Faucet and shank loss coefficient
Adjustable estimate, referenced to tube velocity; not a universal faucet rating. Excludes the outlet velocity head.
K_faucet2
Beer volume to bottle
Actual packaged beer volume. Bottle calculation is independent of keg line sizing.
batchL19
Warmest post-fermentation temperature
For beer fermented under an airlock, use the warmest temperature reached after fermentation. Not simply a cold-crash temperature.
T_warm°C20
Residual carbonation
Use a measured value for spunded, pressure-fermented or previously carbonated beer.
residual_modeEstimate from temperature and altitude
Measured residual CO₂ volumes
Litres of CO₂ at STP per litre of beer.
C_known0.86
Priming sugar
Pure, fully fermentable sugar by weight. Hydrated and anhydrous dextrose need different masses.
sugarTable sugar — sucrose
Original gravity
Temperature-corrected hydrometer specific gravity before fermentation.
OG1.05
Final gravity
Temperature-corrected hydrometer reading before priming; used for beer density.
FG1.01

Results

With the default inputs above, the calc gives:

ResultValue
Recommended CO₂ regulator (gauge)11.25 psi
Beer line length3.26 m
Pour time — one US liquid pint11.8 s
Eventual CO₂ volumes at this setting2.5
First thermodynamic CO₂ riskRisk begins at the line inlet
Worst closed-faucet equilibrium margin-12.3 kPa
Priming sugar — whole batch119.7 g
Priming sugar dose6.3 g/L
Residual CO₂ volumes for bottling0.86
Estimated ABV before priming (%)5.25

Checked against sources

Each case below was calculated by this calc and agrees with the value from its source (within the tolerance where one is shown).

BA carbonation chart: 38 °F, 2.5 volumes

Source: Brewers Association manual, 2nd ed. (2011), Appendix B, printed p. 67 (PDF p. 68), 2.5-volume column. Independent ASBC chart; 0.15 psi allows published rounding and correlation differences.

Inputs: the default inputs above.

ResultSourceThis calc
Recommended regulator gauge pressure11.3 ± 0.15 psi11.246 psi

BA carbonation chart: 42 °F, 2.5 volumes

Source: Brewers Association manual, 2nd ed. (2011), Appendix B, printed p. 67 (PDF p. 68). Published table and empirical polynomial differ slightly; tolerance is 0.2 psi.

Inputs: Beer temperature in keg = 5.556 °C; the others as above.

ResultSourceThis calc
Recommended regulator gauge pressure13.3 ± 0.2 psi13.312 psi

BA carbonation chart: 42 °F, 2.9 volumes

Source: Brewers Association manual, Appendix B, printed p. 67/PDF p. 68, 42 °F row and 2.9-volume column (17.8 psig). Independent published chart.

Inputs: Beer temperature in keg = 5.556 °C; Target carbonation (CO₂ volumes) = 2.9; the others as above.

ResultSourceThis calc
Recommended regulator gauge pressure17.8 ± 0.2 psi17.774 psi

BA worked altitude example: 4000 ft

Source: Brewers Association manual, printed p. 67/PDF p. 68: 38 °F, 2.5 volumes, 4000 ft → 13.3 psig. The source uses a rounded 1 psi/2000 ft rule; this tool retains standard-atmosphere physics.

Inputs: Site altitude = 1,219 m; the others as above.

ResultSourceThis calc
Recommended regulator gauge pressure13.3 ± 0.25 psi13.25 psi

BA carbonation chart: 33 °F, 2.1 volumes

Source: Brewers Association manual, Appendix B, printed p. 67/PDF p. 68, 33 °F and 2.1 volumes → 5.0 psig. Tolerance covers chart and correlation differences.

Inputs: Beer temperature in keg = 0.5556 °C; Target carbonation (CO₂ volumes) = 2.1; the others as above.

ResultSourceThis calc
Recommended regulator gauge pressure5 ± 0.2 psi4.857 psi

Published hydrometer example: 5.25% ABV

Source: The Purple Foot, Hydrometer Instructions, p. 1, beer example 1.050 → 1.010 = 5.25% ABV. https://www.purplefootusa.com/Content/files/HydrometerInstructions.pdf

Inputs: the default inputs above.

ResultSourceThis calc
Estimated ABV before priming (%)5.255.25

Published hydrometer example: 6.56% ABV

Source: The Purple Foot, Hydrometer Instructions, p. 1, beer example 1.060 → 1.010 = 6.56% ABV (rounded). https://www.purplefootusa.com/Content/files/HydrometerInstructions.pdf

Inputs: Original gravity = 1.06; the others as above.

ResultSourceThis calc
Estimated ABV before priming (%)6.566.563

Responses

Your email address will not be published. Required fields are marked *

L ading...