NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...6 min read

Show HN: I Derived a Pancake

Share
NOW LET US Article – Show HN: I Derived a Pancake

A systematic investigation of how acid-base neutralization, CO2 kinetics, and the Maillard reaction can be optimized to create the perfect pancake, complete with a stoichiometric calculator.

The absurdly optimized pancake

A systematic investigation of acid-base neutralization, CO2 production kinetics, gluten inhibition, and the Maillard reaction as applied to a 125-gram flour batter, with an interactive stoichiometric calculator that adapts to whatever is in your refrigerator

I have been making pancakes for twenty-five years. It was the first food I ever learned to cook, starting with Dorie Greenspan’s recipe from Pancakes: From Morning to Midnight. I made her recipe dutifully for close to twenty years until someone mentioned Kenji López-Alt’s buttermilk pancakes, and I switched to making those dutifully instead.

But I started to wonder whether I had actually found the optimal pancake, or just the most recently recommended one. And every time I made Kenji’s recipe I was annoyed at two things: having to run out for buttermilk (or do mental stoichiometry to substitute yogurt while in a pre-caffeinated state), and the use of imprecise cup measurements rather than weights. I was also curious about competing recipes that used sour cream, Greek yogurt, cottage cheese. Each one claimed to be the best. None of them showed their work.

So I did what any reasonable person would do. I derived the pancake from first principles.

Every recipe in every cookbook is a frozen snapshot of one point in this parameter space. This calculator lets you explore the space freely. Change what you have, change what you want, and the stoichiometry adapts.

1. What Actually Matters

A pancake has four axes of quality, and most recipes optimize for at most one of them while neglecting the other three. In order of what you will actually notice while eating:

Interior texture. The inside should be light and custardy, not dense and bready. This is controlled by leavening (both chemical and mechanical), protein structure, and hydration ratio. A pancake that requires chewing has failed at its only job.

Tang. A flat-flavored pancake is a vehicle for maple syrup. A good pancake has its own acid brightness from residual lactic and citric acid that was intentionally left un-neutralized. This is a stoichiometric decision: how much of your available acid to consume with baking soda (producing CO2) versus how much to leave behind (producing flavor).

Rise and structure. The pancake should be tall without being cakey. This comes from three independent CO2 sources (baking powder, baking soda reacting with acid, and steam from high-moisture ingredients) plus one mechanical source (whipped egg whites). The four sources operate on different timescales, which is why they all contribute independently.

Exterior crisp. A thin Maillard-browned shell that provides textural contrast. Requires surface temperature above 140°C, reducing sugars, amino acids, and a micro-frying zone where clarified butter creates rapid surface dehydration. The crisp here is built from that Maillard crust and the lacy ghee-fried edges, not from cornstarch: amylose gives a brittle, glassy shell, but past a small fraction it reads as an artificial fried-coating crunch rather than a pancake crust, so the calculator leaves it out (with a note for anyone who wants to experiment).

3. Background

The oldest continuously prepared food

Pancakes are, in all probability, the oldest cooked food that modern humans would still recognize. Analysis of starch grains on 30,000-year-old grinding tools from sites in Italy (Bilancino II), Russia (Kostenki 16), and the Czech Republic (Pavlov VI) revealed flour made from cattails and ferns, likely mixed with water and cooked on hot stones (Revedin et al., 2010). This is not a pancake in the modern sense, but it is a batter cooked on a flat hot surface, which is the definition of one.

Otzi the Iceman (c. 3300 BCE) carried einkorn wheat with charcoal particles consistent with flatcake cooking (Maixner et al., 2018). By the 5th century BCE, the Greeks were making teganites (from teganon, “frying pan”): wheat flour, olive oil, honey, and curdled milk, served for breakfast (Athenaeus, c. 200 CE; Albala, 2008). The Roman Ova Sfongia Ex Lacte (“egg sponge with milk”) from Apicius calls for eggs, milk, and oil beaten into a batter, fried, and served with honey and pepper (Apicius, 4th century CE).

The word “pancake” first appears in Middle English in the 15th century (Austin, 1888). It became associated with Shrove Tuesday because households needed to exhaust their eggs, milk, butter, and fats before the forty-day Lenten fast. Pancakes efficiently combined all these perishable ingredients into a single preparation. The Olney Pancake Race in Buckinghamshire has been run since 1445, making it possibly the oldest continuously held sporting event motivated entirely by breakfast (Albala, 2008).

The leavening revolution

For most of human history, all pancakes were thin. A batter of flour, eggs, and liquid, cooked on a hot surface, produces a crepe. The thick fluffy pancake is a 19th-century invention made possible by chemical leavening.

The timeline: pearlash (potassium carbonate, refined from wood ash) appeared in American kitchens in the 1780s and was the first chemical leavener (Simmons, 1796). Saleratus (sodium bicarbonate) replaced it in the 1840s. In 1843, English chemist Alfred Bird created the first baking powder by combining bicarbonate of soda with tartaric acid and starch, motivated by his wife’s allergy to both eggs and yeast (Bird, 1843). In 1856, Harvard professor Eben Norton Horsford (a student of Justus von Liebig) patented monocalcium phosphate as a baking powder acid, eliminating expensive imported cream of tartar and founding the Rumford Chemical Works (Horsford, 1856; ACS). Double-acting baking powders (which release CO2 in two stages: once when wet, again when heated) appeared around 1890.

The consequence was the thick American pancake. Before chemical leavening, pancakes were structurally limited to the thin batter that eggs and yeast could support. Baking powder gave batters an internal gas source that did not depend on yeast fermentation or whipped eggs, enabling the heavy, high-hydration batters that produce a tall, fluffy disc. The first commercial pancake mix (1889, Pearl Milling Company, St. Joseph, Missouri) combined wheat flour, corn flour, lime phosphate, and salt into what is widely considered the first ready-mix food product in commercial history (Pearl Milling Company, 1889).

What baking soda actually does

Baking soda has a reputation as a pure leavener, and recipe comment threads regularly argue over whether it is there for rise, for browning, or for cutting acidity. The honest answer is all three at once, because they are the same reaction seen from three angles. Sodium bicarbonate reacts with the batter’s acid to release CO2 (the rise); that same reaction consumes acid and raises the batter’s pH (less tang); and the higher pH then accelerates browning. The three effects are not separable knobs. You cannot dial in one without moving the other two.

The browning claim is the contested one, so it is worth pinning down. The Maillard reaction is not merely “catalyzed in both acidic and basic conditions” at some flat rate; its rate climbs steeply with pH. The first and rate-determining step is a nucleophilic attack by an amino group on the carbonyl of a reducing sugar, and an amino group is nucleophilic only when it is deprotonated. In an acidic batter most amino groups sit as unreactive protonated ammonium ions, so browning is slow; raising the pH frees them, and the rate rises smoothly from pH 6 to 8 and sharply from 8 to 10, with very little browning below pH 6 (Martins & van Boekel, 2005). J. Kenji López-Alt showed the same thing photographically, stepping up the soda in otherwise identical batters and getting visibly darker pancakes each time, until the excess soda turned soapy (López-Alt, 2015). So soda does brown, the commenter who said it was “for loft, not browning” had the wrong half, and the one who invoked an alk

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – How's Linear so fast? A technical breakdown

dev-tools

How's Linear so fast? A technical breakdown

A technical breakdown of how Linear achieves near-instantaneous performance by treating the browser as a database and optimizing its build pipeline.

NOW LET US Related – Anthropic, please ship an official Claude Desktop for Linux

dev-tools

Anthropic, please ship an official Claude Desktop for Linux

Developers are urging Anthropic to release an official Claude Desktop client for Linux, highlighting security risks from unofficial third-party builds and the irony that Claude's advanced features already run on Linux internally.

NOW LET US Related – LLMs are eroding my software engineering career and I don't know what to do

dev-tools

LLMs are eroding my software engineering career and I don't know what to do

A veteran software engineer shares a candid reflection on how rapid advancements in Large Language Models (LLMs) are systematically eroding domain expertise, debugging skills, and the value of clean code architecture.

NOW LET US Related – The 29th International Obfuscated C Code Contest (IOCCC) 2025 Winners

dev-tools

The 29th International Obfuscated C Code Contest (IOCCC) 2025 Winners

The 29th International Obfuscated C Code Contest (IOCCC) has announced its 2025 winners, showcasing historic levels of submission volume and quality alongside mind-bending C programming creations.

NOW LET US Related – I design with Claude more than Figma now

dev-tools

I design with Claude more than Figma now

A designer shares how integrating Claude into their workflow completely transformed their process, shifting from static Figma mockups to building fully functional prototypes directly in the codebase.

NOW LET US Related – Valve P2P networking broken for more than 2 months

dev-tools

Valve P2P networking broken for more than 2 months

A major systemic issue with Valve's Steam Networking protocol has been severely impacting P2P gaming in the Middle East for over two months. Despite players contacting ISPs and Steam Support, this routing issue remains unresolved.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.