Calculate the Milk Cost per Latte

Excel Formulas › Coffee Shop & Cafe

All versions

Milk is the biggest variable cost in most espresso drinks. Convert your per-gallon price down to the ounces in one latte and you'll know exactly what each drink's milk costs.


Quick formula: Convert gallons to ounces, then scale to one drink:
=ROUND(B3/128*B2,2)

A US gallon is 128 fluid ounces, so dividing by 128 gives the cost per ounce.

Functions used (tap for the full reference guide):

The example

Milk costs $4.50 a gallon and a 12-oz latte uses 8 oz of steamed milk.

AB
1LabelValue
2Milk price / gallon$4.50
3Ounces per latte8
4Milk cost / latte$0.28

The formula

Price per ounce times the ounces in the drink:

=ROUND(B3/128*B2,2) // 8/128 * 4.50 = 0.28

How it works

The conversion, step by step:

  1. A US gallon holds 128 fluid ounces, so B2/128 is the cost of one ounce of milk.
  2. Multiply by the ounces a latte uses (B3) to get that drink's milk cost.
  3. ROUND to two decimals gives a clean per-drink figure.
  4. Here: 4.50 ÷ 128 × 8 = $0.28 of milk per latte.

Add your shot cost and cup/lid cost to get the drink's full ingredient cost.

Try it: interactive demo

Interactive

Enter the gallon price and ounces per drink — see the milk cost.

Variations

Cost for a batch of drinks

Multiply the per-drink cost by the number of lattes sold.

=ROUND(B3/128*B2,2)*B5

Switch to per-litre pricing

If milk is priced per litre, a litre is about 33.8 fluid ounces.

=ROUND(B3/33.814*B2,2)

Pitfalls & errors

Mind your units — mixing a per-litre price with the 128-ounce divisor will overstate your cost. Use the matching divisor.

Steam wand waste and foam overpour add up; bump the ounces slightly if your baristas pour heavy.

Practice workbook

📊
Download the free Calculate the Milk Cost per Latte practice workbook
Change the yellow gallon price and ounces per drink; the milk cost recalculates.

Frequently asked questions

Why 128?
There are 128 US fluid ounces in a gallon, so dividing the gallon price by 128 gives the cost of a single ounce.
Should I include foam?
Count the milk you actually pour and steam, including a little overpour. Many cafes budget 8–10 oz for a 12-oz latte.
How do I get full drink cost?
Add espresso (beans per shot), the cup, lid, and sleeve to the milk cost for a complete per-drink number.

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 percentage · Menu price from cost

Function references: ROUNDPRODUCT