Home › Home & Construction › Espresso Calculator

Espresso Calculator

Great espresso is a ratio, not a guess: grams of dry coffee in, grams of liquid espresso out. This free espresso calculator solves the triangle for you — enter any two of dose, yield and ratio and it works out the third — with the classic presets for ristretto, normale and lungo, and a note on how strong the shot will be.

Ratio presets

36 g out
18 g in × 1:2 ratio = 36 g out · A classic normale — balanced strength, the standard starting recipe · Aim for a 25–30 second extraction

How it works

Espresso recipes are written as a brew ratio — the weight of the drink divided by the weight of the dry coffee:

Yield (g) = Dose (g) × Ratio  |  Dose (g) = Yield ÷ Ratio  |  Ratio = Yield ÷ Dose

The dose is the dry ground coffee in the portafilter, typically 18–20 g for a standard double basket (7–9 g for a single). The yield is the liquid in the cup, weighed — not measured by volume, because crema makes volume readings unreliable. The ratio is written 1:2, meaning two grams out for every gram in; the number you enter here is the second figure. Pick what you want to solve for in the top selector: the calculator locks nothing away, it simply computes the missing leg of the triangle from the other two, and the presets set the ratio to the classic styles — 1:1 ristretto, 1:2 normale, 1:3 lungo — or type any value between them.

The strength note under the result translates the ratio into expectations. Shorter ratios extract less of the coffee, so the shot is denser and sweeter but can tip into sour if it runs fast. Longer ratios extract more, trading body for clarity and risking bitterness. None of that changes the other dial: whatever ratio you choose, the shot should still land in roughly a 25–30 second window from pump-on. If your yield arrives in 15 seconds the grind is too coarse no matter what the calculator says; past 40 seconds, too fine. Ratio sets the recipe, grind sets the clock.

Worked example

The standard café recipe: dose 18 g, ratio 1:2. Yield = 18 × 2 = 36 g of espresso — exactly what this calculator shows for the default settings. Now say you pulled a shot with that same 18 g dose but the cup weighs 45 g: switch to Ratio mode and it reports 45 ÷ 18 = 1:2.5, a longer, lighter shot than intended — next time, stop the pump at 36 g. Going the other way, to fill a bigger cup at 1:2 with a 54 g target yield, Dose mode gives 54 ÷ 2 = 27 g — which also warns you that you need a bigger basket, because 27 g will not fit a standard double.

Dialing in without wasting coffee

Change one variable at a time, and keep the dose fixed while you learn: dose changes alter how the puck resists water, which tangles the very timing you are trying to read. Most home baristas lock an 18 g dose, aim for 1:2 in 25–30 seconds, and adjust only the grind until the clock behaves — then, and only then, taste and move the ratio. Two more habits separate consistent shots from lucky ones: distribute and tamp the same way every time, since an uneven puck channels and no ratio fixes that; and write the recipe down. Dose, yield, time and a one-line taste note on your phone turns a week of shots into data instead of déjà vu.

FAQ

What is a good espresso ratio?

1:2 is the standard starting point — 18 g of coffee in, 36 g of espresso out — and it suits most medium roasts. Go shorter, toward 1:1 to 1:1.5 (ristretto), for a thicker, sweeter, more intense shot, or longer, toward 1:2.5 to 1:3 (lungo), for a lighter, more dilute cup. Change the ratio before you change anything else; it is the strongest lever on flavor.

How long should an espresso shot take?

Most shots taste best somewhere in a 25–30 second window, counted from the moment the pump starts, though good shots exist a few seconds either side. If a 1:2 shot races through in 18 seconds it will usually taste sour and thin — grind finer. If it chokes past 40 seconds it tends toward bitter and dry — grind coarser. Time is a symptom of grind size, not a target on its own.

Should I weigh the dose and the yield?

Yes — a small 0.1 g scale is the single biggest upgrade for consistent espresso. Volume is misleading: 36 g of espresso can look like 45 ml or 60 ml depending on how much crema sits on top, so judging by ounces or the lines on a shot glass builds in error. Weigh the dry dose in the portafilter, then weigh the cup as the shot pulls.

What is the difference between ristretto, normale and lungo?

All three are the same dose pulled to different yields. A ristretto stops early (about 1:1 to 1:1.5), keeping the sweetest, most concentrated part of the extraction. A normale is the standard 1:2. A lungo lets more water through (about 1:2.5 to 1:3), extracting more of the bitter compounds for a longer, thinner drink. The names describe the ratio, not different beans or machines.

My shot tastes sour. What should I change?

Sour usually means under-extracted. First check the shot was not simply fast — if it ran under about 25 seconds, grind finer so the same ratio takes longer. If the time was fine, pull a slightly longer ratio (from 1:2 toward 1:2.5) to extract more. Bitter and dry is the opposite problem: grind a touch coarser or stop the shot earlier. Change one variable at a time and taste again.

Disclaimer: Ratios and times are widely used starting points, not rules — beans, roast level, water and equipment all shift what tastes best. Trust the calculator for the arithmetic and your palate for the verdict.