Cafe: Espresso Shots per Bag

Excel Formulas › Coffee Shop & Cafe

All versions

Your cost per shot starts with yield: how many shots one bag of beans pours. Divide the bag's grams by your dose per shot and round down to whole shots.


Quick formula: Bag grams divided by grams per shot, rounded down:
=ROUNDDOWN(B2/C2,0)

A 1,000 g bag at an 18 g dose yields 55 full shots (the leftover 10 g cannot make a 56th).

Functions used (tap for the full reference guide):

The example

Three bags and dial-in doses with the whole shots each yields.

ABCD
1BeanBag (g)Dose (g)Shots
2House blend1,0001855
3Single origin3402017
4Decaf1,0001662

The formula

Round down so you never count a partial shot:

=ROUNDDOWN(B2/C2,0) // grams in bag / grams per shot

How it works

Yield is just a division you floor:

  1. B2 is the bag weight in grams.
  2. C2 is your dose per shot — the grams of ground coffee in the portafilter.
  3. Dividing gives raw shots; ROUNDDOWN drops the fraction because leftover grams cannot pull a full shot.

Cost per shot is the next step: divide the bag price by this shot count.

Try it: interactive demo

Interactive

Enter the bag weight and your dose per shot.

Variations

Cost per shot

Divide the bag price by the shots to cost each pull.

=BagPrice/ROUNDDOWN(B2/C2,0)

Double shots

For double-dose drinks, divide by the doubled dose.

=ROUNDDOWN(B2/(C2*2),0)

Pitfalls & errors

Account for grinder retention and purge — real yield is usually a shot or two below the math.

Keep grams with grams. Mixing ounces and grams throws the count off completely.

Practice workbook

📊
Download the free Cafe: Espresso Shots per Bag practice workbook
Edit the yellow Bag and Dose cells; the Shots column floors the result.

Frequently asked questions

Why round down?
A partial dose cannot pour a full shot, so the leftover grams do not count. ROUNDDOWN gives the honest whole-shot yield.
How do I get cost per shot?
Divide the bag price by this shot count: a $14 bag yielding 55 shots is about $0.25 per shot in coffee cost.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Cafe: Pour Cost Percent · Cafe: Milk Cost per Latte · Bakery: Baker's Percentage Flour

Function references: ROUNDDOWN