Mathematical Formulations
Dry mass
All downstream stoichiometry runs on dry-basis mass:
mdry [kg] = mas-received × (1 − M)
where M is moisture mass fraction. In multi-grain blend mode the dry-basis composition and test weight are the blend-share-weighted averages of the selected grains’ library values.
Hydrolysis: starch → glucose
Polymeric starch (anhydroglucose, MW 162.14) is enzymatically converted to free glucose (MW 180.16). Each cleavage adds one water molecule, so glucose mass exceeds starch mass:
hydrolysis factor = 180.16 / 162.14 ≈ 1.11
Fermentation: glucose → ethanol
The Gay-Lussac stoichiometry C6H12O6 → 2 C2H5OH + 2 CO2 sets the upper bound:
ethanol yield factor = (2 × 46.07) / 180.16 ≈ 0.511 CO2 fraction = 1 − 0.511 = 0.489
Process efficiency factors
Real industrial plants run below the maximum. The model uses two independent efficiency stages plus two co-product factors:
etasacch — saccharification efficiency (starch→glucose), set by Bio-Process Technology: Theoretical 100%, Dry Grind 95%, Wet Grind 98% etaferm — fermentation efficiency (glucose→ethanol), set by Yeast Strain: Theoretical Gay-Lussac 100%, real strains 88-93% eta_starch_rec — wet-grind starch recovery to the fermentation stream (default 95%; unrecovered starch to CGF) fdi — disaccharide share of free sugars, set per feedstock eta_oil_DG — back-end oil extraction, dry-grind only (default 50%)
Process-aware mass balance
mglucose = mdry × (Xstarch × etasacch × etastarch_rec × 1.11 + Xsugars × (1 + fdi × 0.0527)) methanol = mglucose × etaferm × 0.511 mCO2 = mglucose × etaferm × 0.489
Free sugars. Xsugars needs no enzymatic hydrolysis, so it enters the glucose pool without etasacch; it still passes through etaferm. Monosaccharides (glucose, fructose) count mass-for-mass. Disaccharides (sucrose, maltose; MW 342.30) take up one water on hydrolysis to two hexoses (2 × 180.16), a mass gain of 2 × 180.16 / 342.30 = 1.0527. fdi is the Disaccharide Share of the free sugars in Conversion Constants; it is set per feedstock (cane molasses 68%, beet molasses 96%, barley malt 80%, grains and cassava 50–70%, pure glucose 0% — set 100% for pure sucrose) and can be overridden with measured sugar profiles. For grains the free sugars are 1–3% of dry mass and the correction is small; for molasses it adds up to ~5% to the sugar-derived glucose.
Wet-grind starch recovery. In wet milling, etastarch_rec is the fraction of starch recovered to the fermentation stream. Only recovered starch is saccharified and fermented; the unrecovered fraction Xstarch × (1 − etastarch_rec) reports to corn gluten feed (below), so each gram of starch is counted once. Outside wet-grind etastarch_rec = 1.
Dry-Grind co-products
m_cornoil_DG = mdry × Xoil × eta_oil_DG mDDGS = mdry × (1 − (Xstarch × etasacch + Xsugars) × etaferm) − m_cornoil_DG
Wet-Grind co-products
m_cornoil_WG = mdry × Xoil × 0.85 mCGM = mdry × Xprotein × 0.50 mCGF = mdry × ( Xfiber + Xash + Xother + Xstarch × (1 − etastarch) + Xoil × (1 − 0.85) + Xprotein × (1 − 0.50) )
Feedstock structure
The feedstock figures report how the material divides into its anatomical or chemical fractions. They explain where the composition-table components come from; they are not inputs to the calculation.
- Corn (whole kernel, whole-grain meal) — pericarp ~5%, endosperm ~82%, germ ~12%, tip cap ~1% of kernel weight. Corn meal is the whole kernel milled, so it keeps the same fractions; degermed corn flour is essentially the endosperm alone.
- Wheat (whole-grain meal) — bran ~14.5%, endosperm ~83%, germ ~2.5% of kernel dry matter. Whole-grain meal retains all three; white flour is the endosperm fraction, which is why the calculator’s wheat composition (starch 65%, other carbohydrates ~15%) reflects the whole grain rather than flour.
- Barley — hull ~12%, bran ~8%, endosperm ~77%, germ ~3% of kernel weight for hulled grain. Hulless barley loses the hull at threshing, so it carries more starch and less fiber (calculator defaults: starch 64% vs 58%, fiber 2.0% vs 5.5%) and a higher test weight. Barley β-glucans raise mash viscosity; plants processing barley typically add β-glucanase, and β-glucosidase can convert the released oligomers to additional fermentable glucose.
- Cassava (dried chips) — peel ~15% and starch-rich parenchyma ~85% of root weight; the peel is removed before drying.
- Cane and beet molasses — shown on a dry-solids basis consistent with the calculator defaults. Cane molasses splits its ~50% sugars roughly 2 : 1 between sucrose and invert sugars (glucose + fructose); beet molasses is almost entirely sucrose (~46 of ~48%). Beet crude protein (~11%) includes betaine, which yeast does not use as a nitrogen source. Ash (10–11%, mainly K salts) adds osmotic stress in fermentation and reports to the vinasse.
Economic analysis
Revenue, cost of goods sold (COGS) and margin are computed per batch from the current run. Prices may be entered in USD or EUR and in US or metric units; each price is converted to a canonical USD-per-US-unit basis before the math, then results are displayed in the selected currency.
revenueethanol = Vethanol[gal] × priceethanol revenuecoprod = Σ (massi × pricei) revenuetotal = revenueethanol + revenuecoprod costfeed = grain[bu-equiv] × pricefeedstock costconv = Vethanol[gal] × priceconversion COGS = costfeed + costconv margin = revenuetotal − COGS costbasis = (COGS − revenuecoprod) / Vethanol
Currency conversion uses an editable FX rate r (euros per dollar): price€ = price$ × r, and outputs convert back by the same factor. Unit conversions to the canonical basis use 1 gal = 3.78541 L, 1 short ton = 2000 lb, 1 tonne = 2204.62 lb, 1 kg = 2.20462 lb, and grain bushel weights of 56 (corn), 56 (sorghum), 60 (wheat) and 48 (barley) lb/bu.
Sustainability & lifecycle
Carbon, water and energy totals scale with ethanol energy output. Ethanol lower-heating-value energy is taken as 80 MJ/gal:
Eethanol[MJ] = Vethanol[gal] × 80 CO2e[kg] = CI[gCO2e/MJ] × Eethanol / 1000 reduction_vs_gasoline = (1 − CI / 94) × 100% water = waterintensity × Vethanol energy = energyintensity × Vethanol electricity = elecintensity × Vethanol
The 94 gCO₂e/MJ gasoline baseline follows CARB/GREET convention. Carbon intensity is already metric (gCO₂e/MJ); the US/Metric toggle converts the volume-based intensities using 1 gal = 3.78541 L, 1 BTU = 0.00105506 MJ, so BTU/gal → MJ/L and kWh/gal → kWh/L, while the water ratio (gal/gal = L/L) is unit-invariant.