Coffee, Tea, Roasting & Dry Goods Processing calculator

Margin Calculator

Check a wholesale price against today's green coffee cost. You need the price per roasted pound, the green cost, roast yield, other cost per roasted pound and your target margin.

What this calculator does

  • Margin a wholesale coffee price earns at today's green cost and roast yield, and how high green can go before missing your target.

Formula used

  • Cost per roasted pound = green coffee cost ÷ (roast yield ÷ 100) + roasting, packing and overhead
  • Margin at this price = (price per roasted pound − cost per roasted pound) ÷ price × 100
  • Highest green price for the target = (price × (1 − target margin ÷ 100) − roasting, packing and overhead) × roast yield ÷ 100
  • Price for the target margin = cost per roasted pound ÷ (1 − target margin ÷ 100)

Inputs explained

  • Price per Roasted Pound: Wholesale price per pound on the quote or price list.
  • Green Coffee Cost: Landed green cost per pound from the invoice.
  • Roast Yield: Roasted weight as a share of green, from the roast log.
  • Roasting, Packing and Overhead: Cost per roasted pound beyond green coffee, from the cost sheet.
  • Target Margin: Margin your pricing policy requires.

How to use the result

  • Best suited to quoting a wholesale account, checking prices after a green market move, setting a wholesale price list.
  • Freight, discounts and payment terms are outside it; take them off the price first.

Common questions

  • What is the difference between margin and markup? Margin divides profit by revenue; markup divides it by cost. Wikipedia gives markup as margin ÷ (1 − margin), so a 30% margin is about a 42.9% markup.
  • How is the highest green price worked out? From Wikipedia's price for a required margin, cost ÷ (1 − margin), turned around: the cost this price allows, less the other cost, times roast yield.
  • Why does roast yield matter for margin? You sell roasted pounds but buy green. Royal Coffee shows roasting loses weight, so each roasted pound carries more than a pound of green coffee's cost.
  • What do the defaults show? At these defaults, $4.20 green at an 84% yield plus $2.10 of other cost is $7.10 a roasted pound. At $10.50 that is a 32.38% margin, and green can rise to $4.41.

Last reviewed 2026-11-12.