The first beer I ever poured from my own kegerator was almost entirely foam. I had done everything the way the forums told me (five feet of 3/16-inch line, twelve pounds of pressure, beer chilled down to serving temperature) and I still stood there watching a tall glass fill with a head that would not quit, the actual beer arriving as an afterthought somewhere down at the bottom. I poured it out, waited, poured again. Same thing. It took me longer than I would like to admit to understand that the problem was not my technique. The problem was that my line was not balanced, and that almost everything I had read about how to balance it was working from a number that is not really a fixed number at all.
A balanced draft system is a simple idea carried out with a little care. The pressure on the keg has to do two jobs at once, and they pull against each other. It has to hold the right amount of carbonation in the beer, and it has to push that beer up the line and out the faucet. If the line gives the beer an easy ride, the beer arrives moving too fast, the dissolved CO₂ comes crashing out of solution at the faucet, and you get foam. If the line fights too hard, you get a sad trickle and a sore wrist. Balancing the line means choosing tubing (the bore and the length) that eats up exactly the right amount of that pushing pressure so the beer arrives at the faucet calm, at a pace you actually want to drink at. Get it right and the pour is effortless, day after day. Get it wrong and you will be chasing foam forever.
Start with the carbonation, because it sets the pressure
Here is the part people skip. You do not get to pick your serving pressure freely. The pressure that holds your carbonation steady at your serving temperature is your serving pressure, and it is the pressure that has to push the beer. For an ordinary American ale at 2.5 volumes of CO₂ at 38°F (3°C), that works out to about 11 psi (0.76 bar). A livelier Belgian or a wheat beer wants more carbonation and therefore more pressure; an English bitter served cool wants less.
You will read advice to carbonate at a high pressure and then drop the regulator down low to pour. Do not do this. The moment you serve below the carbonation pressure, the beer in the line begins giving up its CO₂, and you are right back to foam, now with the added insult of slowly going flat. Set the pressure for the carbonation you want, let the keg sit at that pressure until it equilibrates, and balance the line around that one pressure. The job of the line is to absorb the push, not to let you cheat the pressure.
The flow rate is the knob nobody tells you about
This is the thing that took me years to really feel in my bones, and it is the single biggest reason balancing advice goes wrong. The resistance of a beer line is not a fixed property of the tubing. It rises with how fast the beer is moving through it. Push beer faster and the line fights back harder, not in proportion, but faster than in proportion, because the flow inside the line is turbulent and turbulent friction climbs steeply with speed.
What that means in practice is that the length of line you need depends enormously on how fast a pour you are aiming for. In 3/16-inch (4.8 mm) line at that same 11 psi, a brisk pour of 2 ounces a second (a pint in about eight seconds) wants right around 5 feet (1.5 m) of line. But if you want a calmer, gentler pour of 1 ounce a second, you do not need a little more line. You need more than 20 feet (6 m) of it. Same tubing, same pressure, same beer. Four times the length, entirely because you asked for a calmer pour.
The old rule of thumb (divide your spare pressure by a fixed “resistance” of so many pounds per foot) bakes in a single pour speed without ever telling you what it is. That is why following it to the letter so often hands you five feet of line and a glass of foam: it has quietly balanced your system for a faster pour than you meant to use. When you decide how to balance your line, decide your pour rate first, on purpose. I like to target somewhere around 1.5 to 2 ounces a second for a home tap (a pint in eight to ten seconds), lively but controllable. Pick yours, then size the line to it.
Choosing the bore
The inside diameter of the line is the other half of the equation, and it matters far more than the length does, because resistance scales sharply with bore. A small change in diameter is a large change in how hard the line works.
For a home kegerator, 3/16-inch (4.8 mm) vinyl is the workhorse for a reason: it has enough resistance to balance a normal pour in a manageable few feet. If you like the modern push-fit barrier tubing, EVABarrier in the 4 mm inside-diameter size is wonderful for tight builds, so restrictive that it balances in a foot or two; the 5 mm sits close to 3/16-inch vinyl. Quarter-inch (6.35 mm) line is a different animal: its resistance is low, so it needs long runs to balance, which is exactly why it shows up on longer commercial pulls rather than in a kegerator. And 5/16-inch (7.9 mm) and bigger are really transfer tubing; they will not balance a faucet in any length you would want to coil into a fridge. Pick the bore that gives you a workable length for your pour, and let the calculator show you the trade: it is a quick way to see why the workhorses are the workhorses.
Keep it cold, all the way
Temperature does two things, and both push you toward keeping the whole run cold. Cold beer is more viscous: it pours a touch slower and the line resists a little more at 38°F (3°C) than it would at 50°F (10°C). That part is minor. The part that is not minor is what happens to warm beer in a line. CO₂ holds in solution far less willingly as the beer warms, so any stretch of line that sits outside the cold (a tower that is not actively chilled, a run that ducks out of the fridge and back in) becomes a place where gas breaks out and your beautifully balanced system foams anyway. In a home kegerator or a keezer, keep the line in the cold space and chill the tower if you have one. In a commercial setup, the version of this tool I would trust is the one where the lines stay inside the walk-in at serving temperature the whole way. The moment the beer is warm at the keg and chilled along a long run (a glycol python), you are in a different problem with its own thermodynamics, and that is a calculation for another day.
The shape of the run is as important as its length
Here is the piece of advice I wish someone had given me at the start, because no length calculation can see it. A beer line should rise in one continuous, gentle climb from the keg to the faucet. No humps, no sags.
Think about what happens at a high point in the line. The static pressure there is lower than down at the keg. Gravity sees to that, about 0.43 psi for every foot (0.1 bar per meter) of rise. And a keg is pressurized only just enough to hold its carbonation, which means there is almost no headroom before the pressure at a peak drops below what keeps the CO₂ in solution. So at that hump, between pours, gas quietly comes out of solution and collects. The next time you pull the faucet, you drive that slug of accumulated gas out ahead of the beer, and it arrives as a burst of foam, a foamy start to a pour that then settles down, which is the tell-tale signature of a line that loops up and over something on its way to the tap. A sag does the opposite mischief: it cradles a little pool of beer that sits there, warms, and goes flat, so the first ounce of every pour is dull.
You can balance the length perfectly and still pour badly if the tube humps over the back of the fridge or dips behind a shelf. When you route the line, route it so it only ever goes up, steadily, to the faucet. If you have to gain height, gain it gradually along the whole run rather than in one loop. This single habit fixes more “I balanced it and it still foams” problems than any amount of recalculating.
Faucet, fittings, and the last few inches
The faucet and shank add a bit of restriction of their own: the old lore of “a faucet is worth about a pound of pressure” is roughly right at a normal pour, though like everything else here it depends on flow. A forward-sealing faucet, a picnic tap, a couple of disconnects: each adds a little. It is worth accounting for, and the calculator lets you, but do not agonize over it. The line length is the big lever; the fittings are a small correction.
And when you do cut your line, cut it a little long. It is far easier to trim an inch or two off at the faucet end until the pour is exactly how you like it than it is to splice length back on. Pour a few pints, watch the head, and snip to taste. The math gets you to the right neighborhood. Your own palate finds the front door.
Putting it together
So the whole job, in order: set your pressure for the carbonation you actually want and let it equilibrate; decide on the pour rate you enjoy; choose a bore that gives you a workable length for that pour; cut the line a little long; route it in one steady, continuous rise with no humps or sags; keep the entire run cold to the faucet; and trim at the tap to dial it in. Do those things and a balanced system will pour you a clean pint, the same way, every single time.
I built the Keg Line Balancing Calculator to do this the honest way: as real flow through a real pipe, not a fixed resistance pulled from a table. Tell it the pour you want and it gives you the length to cut; tell it the line you already have and it tells you what that line is actually doing and what to change. It shows you the old static-table answer right alongside the real one, too, so you can watch the two part company and see for yourself exactly where the foam was hiding all along.