Cooking, Baking & Brewing Coffee, Chocolate & Frozen Desserts Mass brew ratio: beverage out over dry dose in

Espresso Brew Ratio Calculator

Espresso is dialled in by mass, not volume: you weigh the dry dose going into the basket and the beverage coming out of the spouts, and the ratio between them is the recipe. This calculator works in both directions — give it a dose and a target ratio to get the yield to stop at, or a dose and a measured yield to read the ratio you actually pulled. It also returns flow rate in grams per second, how hard you are loading the basket, and, if you own a refractometer, the extraction yield.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Dry dose in the basketWeigh the ground coffee in the portafilter, tared against the empty portafilter.18 g
What do you want to solve for?Pick the direction: plan a shot from a ratio, or read the ratio back from a shot you pulled.Beverage yield from a target ratio
Target brew ratio (beverage per gram of dose)1 is a ristretto, 2 is a normale, 3 and above is a lungo. Enter only the beverage side.2 : 1
Beverage yield you measuredMass of liquid espresso in the cup, weighed on a scale under the spouts.36 g
Shot timeFrom the moment you start the pump to the moment you stop it, including pre-infusion.28 s
Basket rated capacityThe dose the basket is stamped or sold for, e.g. 18 g for a standard double.18 g
Measured beverage TDSTotal dissolved solids from a coffee refractometer. Set 0 if you have not measured it.9.5 %

It returns

  • Beverage yield — Stop the shot when the cup reaches this mass.
  • Brew ratio (beverage : dose)
  • Average flow rate
  • Extraction yield — Needs a refractometer reading. The common reference band is 18–22%.
  • Basket load

The formula

r=yd
EY=yTDSd

In plain text: r = y / d; y = d · r; flow = y / t

  • rBrew ratio, written 1 : r (ratio)
  • yBeverage yield — liquid espresso weighed in the cup (g)
  • dDry dose of ground coffee in the basket (g)
  • tShot time from pump start to pump stop (s)

Everything is measured by mass. Volume readings on a shot glass include crema, whose volume changes with roast age and is not a reliable measure.

Updated Category Coffee, Chocolate & Frozen Desserts Verified against published test cases Reading time 11 min

What an espresso brew ratio means

An espresso brew ratio is the mass of liquid in the cup divided by the mass of dry coffee in the basket. A barista who says "18 in, 36 out" is describing a 1:2 ratio: 18 g of ground coffee produced 36 g of beverage. It is written the same way a filter ratio is, but the second number means something completely different — for filter coffee it is the water you pour, for espresso it is the drink you get.

Ratio is one leg of a three-part recipe. The other two are time, which you measure from pump start to pump stop, and grind, which is the control you actually turn. Fix the dose and the ratio, and grind becomes the variable that sets the time. That is the whole loop of dialling in: pull a shot at your target ratio, note the time, grind finer if it ran short and coarser if it ran long, and repeat until the time lands where you want it and the taste follows.

Espresso is measured by mass rather than volume for a specific reason: crema. A shot pulled from fresh coffee can carry a centimetre of foam that is mostly carbon dioxide, and the same shot from three-week-old beans carries almost none. The liquid underneath is identical, but the volume marks on a shot glass differ by a third. A scale under the cup ignores the foam and reads the coffee.

The arithmetic, and why flow rate is worth watching

The ratio itself is one division: r = y ÷ d. Rearranged, the yield you should stop at is y = d · r. An 18 g dose at 1:2 stops at 36 g; the same dose at 1:1.5 stops at 27 g; at 1:3 it runs to 54 g.

Flow rate is the yield divided by the shot time, in grams per second, and it is the most diagnostic number on this page. Two shots can both be 36 g in 28 seconds and behave completely differently under the basket, but a shot whose average flow suddenly jumps from 1.3 to 2.0 g/s at the same grind setting is telling you the puck has channelled or the basket is under-dosed. Most well-behaved double shots average between 1.0 and 1.5 g/s.

Extraction yield answers the question a ratio cannot: what fraction of the dry coffee actually dissolved. Multiply the beverage mass by its total dissolved solids percentage to get the mass of dissolved coffee, then divide by the dry dose. A 36 g shot reading 9.5% TDS contains 3.42 g of dissolved solids, which against an 18 g dose is 19.0% extraction. The Specialty Coffee Association's reference band for brewed coffee is 18–22%, and most espresso practice borrows it. Note the built-in tension: raising the ratio raises the extraction but lowers the TDS, so a lungo is usually more extracted and thinner than a ristretto from the same basket.

Basket load is the last check. Dividing your dose by the basket's rated capacity tells you whether the puck has room. Baskets are designed around a dose range, and pushing an 18 g basket to 21 g leaves so little headroom that the wet puck presses into the shower screen; running it at 14 g leaves a shallow bed that water can cut straight through.

Worked example: dialling an 18 g basket to 1:2

You have an 18 g VST-style double basket, a bag of medium roast, and a target of a normale shot at 1:2 in about 28 seconds.

  1. Set the dose. 18.0 g, weighed in the portafilter. Basket load = 18 ÷ 18 = 100%.
  2. Compute the yield. y = 18 × 2 = 36.0 g in the cup.
  3. Pull and time it. The shot reaches 36 g at 28 seconds.
  4. Flow rate. 36 ÷ 28 = 1.29 g/s, comfortably inside the normal band.
  5. Refractometer. The cooled, stirred sample reads 9.5% TDS.
  6. Dissolved solids. 36 × 0.095 = 3.42 g of coffee actually in the liquid.
  7. Extraction yield. 3.42 ÷ 18 = 0.190 = 19.0%, inside the 18–22% band.

Now suppose you want a ristretto from the same basket. At 1:1.5 the yield becomes 18 × 1.5 = 27 g. If you keep the grind unchanged, that 27 g arrives in about 21 seconds, so the flow rate barely moves — the shot is simply cut short. The dissolved solids will be lower in absolute terms and the TDS higher, because you have taken the earliest, most concentrated part of the extraction and stopped. That is what makes a ristretto taste dense and sweet, and also what makes it easy to under-extract: at 27 g and, say, 11.5% TDS, extraction is 27 × 0.115 ÷ 18 = 17.3%, below the band.

How to read the numbers and what to change

Start with taste, then use the numbers to explain it. Sour, thin and fast means under-extraction: grind finer, which slows the flow and raises the yield of dissolved solids at the same beverage mass. Harsh, drying and slow means over-extraction: grind coarser. Only when the shot is balanced should you move the ratio, and then you are chasing texture rather than fixing a fault.

The three ranges are conventions rather than rules. A ristretto is anything below about 1:1.5 — short, dense, and typically the choice when a coffee is bright enough to need reining in. A normale at 1:1.5 to 1:2.5 is where most modern espresso lives, and 1:2 is the default a café will run if nobody says otherwise. A lungo above 1:2.5 pushes more water through the same puck, raising extraction and diluting the cup; light roasts, which are physically harder to extract, often taste best there.

Watch the time as a dependent variable, not a target. If your recipe is 18 g to 36 g and the shot takes 22 seconds, do not shorten the yield to hit 28 seconds — grind finer and let the same 36 g take longer. The mistake of chasing time by moving the yield produces shots that hit the stopwatch and taste wrong.

Milk drinks shift the calculus. A shot that reads slightly under-extracted and quite concentrated will often cut through 200 g of milk better than a textbook 19% shot, which is why many bars run a shorter ratio on their milk recipe than on their espresso recipe. There is no arithmetic that decides this for you; taste in the drink you actually sell.

Yield and style for common doses and ratios

Beverage yield in grams, computed as dose × ratio. Stop the shot when the scale under the cup reaches this figure.
Dose1:1 (ristretto)1:1.51:2 (normale)1:2.51:3 (lungo)
14 g14 g21 g28 g35 g42 g
16 g16 g24 g32 g40 g48 g
18 g18 g27 g36 g45 g54 g
20 g20 g30 g40 g50 g60 g
22 g22 g33 g44 g55 g66 g

Doses above about 20 g need a basket rated for them. Check the basket load figure before assuming a bigger dose fits.

Weigh the beverage, not the puck

Two weighing errors account for most confused dial-in sessions. First, weigh the dose in the portafilter with the portafilter tared, not by scooping from the grinder — retained grounds in the chute mean the grinder's output and the basket's contents differ. Second, weigh the beverage in the cup on a scale, and tare the cup before the shot. A shot glass marked in millilitres reads crema as coffee, and crema volume varies with the roast date more than with anything you control.

Pitfalls when dialling in by ratio

  • Changing two variables at once. Move the grind or the ratio, never both, or you cannot attribute the change in taste.
  • Using volume for the yield. Crema inflates volume by up to a third on fresh coffee and almost none on stale coffee. Mass is the only stable measure.
  • Treating shot time as the target. Time is what the grind produces at a fixed dose and ratio. Set the ratio, then grind to the time.
  • Ignoring the basket's rated dose. Overfilled and underfilled baskets both channel, and a channelled shot ruins every number on this page.
  • Reading a hot refractometer sample. Espresso samples must be cooled and stirred before measurement, or the TDS reads high and the extraction figure with it.
  • Assuming a lungo is just a weaker normale. A lungo is more extracted and less concentrated at the same time, which is a different flavour axis entirely.
  • Applying the filter ratio convention to espresso. A 1:16 filter ratio counts poured water; a 1:2 espresso ratio counts beverage in the cup. They are not comparable numbers.

Where the ratio sits among the other espresso variables

Brew ratio is the easiest variable to control and the least powerful. Grind size dominates extraction; water temperature moves it by roughly a percentage point over the useful 90–96 °C range; pressure and pre-infusion change how evenly the puck saturates. The ratio decides how much of the extraction ends up in the cup and at what concentration, which is a texture decision as much as a flavour one.

Water chemistry sits underneath all of it. Espresso machines are boilers, and both extraction quality and scale formation depend on alkalinity and hardness. If your shots taste flat despite good numbers, the water is the usual culprit.

For brewing methods where the ratio counts water rather than beverage, use the coffee to water ratio calculator, which also handles the water the grounds retain. For cold extraction, where the concentrate ratio and the service dilution are two separate numbers, use the cold brew coffee ratio calculator. If you are costing shots for a menu rather than dialling them, the recipe cost per serving calculator turns a dose in grams and a price per kilo into a cost per drink, and the food cost percentage calculator checks it against your target.

Key terms

Dose
The mass of dry ground coffee in the basket, weighed in the portafilter.
Yield
The mass of liquid espresso in the cup. Always weighed, never read from volume markings.
Ristretto / normale / lungo
Conventional names for ratios below about 1:1.5, between 1:1.5 and 1:2.5, and above 1:2.5 respectively.
TDS
Total dissolved solids — the percentage of the beverage's mass that is dissolved coffee, read with a refractometer.
Extraction yield
The percentage of the dry dose that dissolved into the beverage: yield × TDS ÷ dose. Reference band 18–22%.
Channelling
Water finding a low-resistance path through the puck instead of saturating it evenly. Produces fast, sour, inconsistent shots.

Frequently asked questions

What does 18 g in, 36 g out mean?

It means you put 18 g of ground coffee in the basket and stopped the shot when the cup held 36 g of liquid espresso — a 1:2 brew ratio. Both numbers are masses read from a scale, not volumes. It is the default modern espresso recipe, and it is where you should start with an unfamiliar coffee before deciding whether it wants a shorter or longer ratio.

Should I change the ratio or the grind when a shot tastes bad?

Grind first, almost always. Sour and thin means the shot is under-extracted, and grinding finer fixes it; harsh and drying means over-extracted, and grinding coarser fixes it. The ratio changes how concentrated the drink is, not how completely the coffee dissolved. Once the shot tastes clean at your target ratio, then move the ratio if you want a denser or a longer drink.

What is a normal flow rate for espresso?

Most well-behaved double shots average between 1.0 and 1.5 g/s over the whole shot — a 36 g yield in 28 seconds is 1.29 g/s. The absolute number matters less than its stability: if the same recipe and grind setting suddenly flows much faster, the puck has channelled or the dose has drifted. Watch the average across shots rather than chasing a specific figure.

Do I need a refractometer to use this calculator?

No. Dose, ratio, yield, flow rate and basket load all work without one. The extraction yield output is the only figure that needs a TDS reading; set the TDS field to 0 and the calculator simply leaves that figure blank. A refractometer is useful for auditing a recipe you have already tuned by taste, and much less useful as the thing you tune by.

Why is my espresso ratio different from my filter ratio?

Because the two conventions count different things. A filter ratio of 1:16 counts the water you pour over the bed; an espresso ratio of 1:2 counts the beverage that lands in the cup. Espresso also runs vastly more concentrated: a 1:2 shot is roughly 8–12% dissolved solids, against 1.15–1.35% for a Golden Cup filter brew. The numbers are not on the same scale and should not be compared directly.

How much does crema affect the measurement?

By volume, a great deal; by mass, almost nothing. Crema is a foam of carbon dioxide released from fresh coffee, so its volume falls steadily as beans age while the liquid underneath stays the same. That is why a shot glass that reads "a double" from a week-old bag reads short from a month-old one. A scale under the cup is immune to it.

What ratio should I use for milk drinks?

Many bars run a shorter ratio for milk than for straight espresso — commonly 1:1.5 against 1:2 — because a more concentrated shot keeps its identity through 150–200 g of steamed milk. There is no formula that settles it: pull the shot at both ratios, build the drink you actually sell, and taste them side by side. Then write the winning recipe down as a dose, a yield and a time.

Can I dose more coffee into the same basket to get a stronger shot?

Only within the basket's range. Baskets are designed for a dose window, and the basket load output flags when you leave it. Overdosing squeezes the wet puck against the shower screen and often causes channelling, which makes the shot worse rather than stronger. If you want more coffee in the cup, use a larger basket rated for the dose, or shorten the ratio and accept a smaller, denser drink.

References

  • SCA Coffee Standards (brewing ratio, strength and extraction targets)Specialty Coffee Association
  • Espresso Coffee: The Science of Quality, 2nd ed. — Elsevier Academic Press (Illy & Viani)
  • The Craft and Science of Coffee — Academic Press / Elsevier (ed. Britta Folmer)
  • Water for Coffee: Science Story Manual — Royal Society of Chemistry (Hendon & Colonna-Dashwood)