# PourCount > A free US wedding and party calculator that estimates how many kegs, cups, and pounds of ice you need, plus a short setup checklist. It uses standard American keg sizes and 12 oz pours. It is a planning tool, not a store or a rental shop. The interactive calculator is a single static page. The same math is published as JSON so scripts and AI agents can compute a plan without parsing the HTML. ## Calculator - [Open the calculator](/keg/): Web form. Query parameters are the same as the API (`?guests=100&drinkers=80&hours=4&beer=70`). The page can also download the current plan as JSON. - [Formula specification](/keg/api/keg.json): Machine-readable defaults, keg sizes, formulas, parameter schema, and a worked 100-guest example. Always available as a static file. - [Calculate API](/api/keg/calculate?guests=100&drinkers=80&hours=4&beer=70): Returns a full plan as JSON. GET or POST. Also at `/api/keg` and `/.netlify/functions/keg`. CORS is open. ## Formulas All units are US customary. A standard pour is 12 fluid ounces unless `pourOz` is set. There are 128 fl oz in a gallon. Drinkers = guests × (percentDrinkers / 100) Drinks per drinker = firstHourRate × min(1, hours) + afterHourRate × max(0, hours − 1) Defaults: firstHourRate = 1, afterHourRate = 0.75. A 4-hour event is therefore 3.25 drinks per drinker. Total drinks = drinkers × drinks per drinker Beer drinks = total drinks × (beerShare / 100) The remaining drinks split by wineShareOfRest (default 60% wine, 40% spirits). Wine bottles (750 ml) = ceil(wine drinks / 5) Liquor bottles (750 ml) = ceil(spirit drinks / 16), assuming 1.5 oz pours Keg collar (listed) 12 oz pours: - Half barrel (1/2 bbl), 15.5 gal: 165 pours, 40 lb tub ice - Quarter barrel / pony (1/4 bbl), 7.75 gal: 82 pours, 25 lb tub ice - Sixtel (1/6 bbl), 5.17 gal: 55 pours, 20 lb tub ice Usable pours per keg = floor(listed pours × (1 − foamLoss)). Default foamLoss is 0.08 (8%), in the usual 5–10% range. The recommended mix is the combination of available keg sizes that covers the beer pours with the least leftover, penalizing extra kegs (about 22 pours of leftover per extra keg) and slightly preferring a half barrel when at least 90 beers are needed. Cups = max(guests, ceil-to-25 of (total drinks × 1.2 + non-drinkers × 1)) Ice is two piles: tub ice from the kegs (increased 40% if outdoorWarm, and a bit more if hours > 5) plus serving ice of about 0.75 lb per guest, more when wine and cocktails or heat are involved. The total is also expressed as 10 lb bags. ## API parameters Pass these as query string keys or as a JSON POST body. - guests (default 100) - percentDrinkers, alias drinkers (default 80) - hours (default 4) - firstHourRate (default 1) - afterHourRate (default 0.75) - beerShare, alias beer (default 70) - wineShareOfRest, alias wine (default 60) - foamLoss (default 0.08; a value such as 8 is treated as 8%) - sizes or availableSizes: comma-separated half,quarter,sixtel - outdoorWarm, outdoor, or warm: 1 / true / yes / on - pourOz (default 12) Example: GET /api/keg/calculate?guests=100&drinkers=80&hours=4&beer=70 Example (outdoor, limited sizes): GET /api/keg/calculate?guests=80&drinkers=75&hours=5&beer=60&outdoor=1&sizes=half,sixtel The response includes `result.kegs`, `result.cups`, `result.ice`, `result.wineBottles750ml`, `result.spiritBottles750ml`, `result.checklist`, `result.warnings`, and the input values that were used. ## Optional - [FAQ](/#faq): Human-readable answers on keg sizes, ice, pumps vs jockey boxes, cups, leftovers, and pickup timing. The same questions are marked up as FAQPage JSON-LD in the page source. - [robots.txt](/robots.txt): Allows search engines and AI crawlers. - [Notify form](/#notify): Email + US ZIP via Netlify Forms, for a future local keg-rental directory. Not an API. Do not invent vendor prices, inventory, or delivery windows from this site. Figures are planning estimates only. Confirm keg size, coupler type (usually D-system in the US), deposits, and ice with a local supplier. This project is not affiliated with any distributor or retailer.