You can compare manufacturing batch sizes in Google Sheets by building a scenario calculator that accepts your setup cost, unit processing cost, waste rate, storage cost, and demand, then computes total cost and cost per unit for each batch size you enter. This lets you see at a glance which lot size delivers the lowest cost under your current assumptions, without needing dedicated manufacturing software. The walkthrough below shows you exactly how to set up the spreadsheet, enter the formulas, and publish the result as a web calculator anyone on your team can use.
Enter setup, processing, waste, and storage inputs for two batch sizes • Formulas calculate total cost and cost per unit for each scenario • Compare results side by side to find the lower-cost lot size • Publish as a web calculator so production staff can run their own what-if tests • This is scenario comparison, not full production scheduling optimisation
Compare Manufacturing Batch Sizes in Google Sheets

Photo by Kelsey Todd on Unsplash

What this guide covers and what it does not

This guide teaches you to build a batch size comparison calculator: a tool that evaluates two candidate lot sizes against a shared set of cost and demand assumptions, then returns total cost and cost per unit for each. You can extend it to three or more scenarios by repeating the same pattern.

This guide does not cover economic order quantity (EOQ) optimisation, material requirements planning (MRP), capacity scheduling, or multi-level bill-of-materials costing. Those are specialised topics requiring data beyond what a simple scenario model holds. If you need a starting point for understanding EOQ theory, the Wikipedia article on Economic Order Quantity gives a sound conceptual overview.

All cost figures in the worked example are illustrative. Verify every assumption — labour rates, waste percentages, storage charges — against your own operations before using results to make purchasing or scheduling decisions.

Key terms explained

  • Batch size (lot size): The number of units produced in a single production run before the line is reset or retooled.
  • Setup cost: The fixed cost incurred each time a production run begins, covering line changeover, tooling, and inspection, regardless of how many units are made.
  • Unit processing cost: The variable cost to manufacture one unit, including direct materials and direct labour.
  • Waste rate: The proportion of units produced that fail quality checks and cannot be sold, expressed as a decimal. For example, 0.05 means 5% waste.
  • Storage cost per unit per period: The cost of holding one finished unit in inventory for one period (week or month), covering warehouse space, insurance, and capital tied up in stock.
  • Demand per period: The number of saleable units your customers require in one period; used to estimate how many periods a batch will cover and therefore how long units sit in storage.
  • Total batch cost: Setup cost plus the cost of processing all units (including those that will be wasted) plus the storage cost for the saleable units over the coverage period.
  • Cost per saleable unit: Total batch cost divided by the number of units that pass quality checks and can actually be sold.
  • Scenario comparison: Running the same cost model with two different input values — here, two different batch sizes — to identify which produces a better outcome under your stated assumptions.
  • Coverage periods: How many demand periods a batch will last, calculated as saleable units divided by demand per period.

Prerequisites

  • A Google account with access to Google Sheets.
  • The GSheetPress GS2Web add-on installed in your Google account. Install it from the Google Workspace Marketplace, then open a spreadsheet and go to Extensions → GS2Web SaaS to confirm it appears in the menu.
  • A GSheetPress account whose login email matches the Google account you use for Sheets. The Calculator feature requires a plan that includes Calculator entitlement — check your plan on the GSheetPress pricing page.
  • A dedicated sample workbook. Create a new, blank Google Sheets file called something like Batch Size Comparison — Sample. Do not use a file containing real production data or sensitive costs, because a later step requires sharing it with broad link access.

How the cost model works

The calculator uses seven inputs: setup cost, unit processing cost, waste rate, storage cost per unit per period, demand per period, Batch Size A, and Batch Size B. From those it derives, for each batch size:

  1. Units produced: This equals the batch size itself — you produce exactly the lot size you plan.
  2. Wasted units: Batch size multiplied by the waste rate.
  3. Saleable units: Batch size multiplied by (1 minus the waste rate).
  4. Processing cost: Batch size multiplied by unit processing cost. You pay to process every unit including those that will be scrapped.
  5. Coverage periods: Saleable units divided by demand per period — how many periods the batch lasts before stock runs out.
  6. Storage cost: Saleable units multiplied by storage cost per unit per period multiplied by (coverage periods divided by 2). The division by 2 is an average-inventory approximation: assuming stock depletes evenly from a full batch down to zero, the average quantity held is half the batch.
  7. Total batch cost: Setup cost plus processing cost plus storage cost.
  8. Cost per saleable unit: Total batch cost divided by saleable units.

These formulas are intentionally transparent. If your operation uses a different storage model — for example, a fixed warehouse fee per period rather than a per-unit rate — adjust the storage cost formula to match your situation.

Build the batch size comparison calculator

Step 1 — Create a new calculator in GS2Web

  1. Open your dedicated sample workbook in Google Sheets.
  2. Go to Extensions → GS2Web SaaS → Calculator → New Calculator.
  3. When prompted for a name, enter: Batch Size Comparison.
  4. When asked for the number of inputs, enter 7. This is the count of data input rows only — it does not include the Calculate button.
  5. When asked whether to include graphs, choose No.
  6. Click Create (or the equivalent confirmation button shown by the add-on). The add-on inserts a new sheet tab with pre-generated column headers across A1 to H1.

Row 1 now contains these generated headers: Labels, Input Type, Required, Data, Default, ToolTips, Inputs, Rules. Do not edit row 1. Some older template versions spell the sixth header as ToopTips — use whichever spelling your generated sheet shows.

With seven inputs, the layout is fixed as follows:

RowPurpose
2–8Seven input rows (one per input)
9Calculate button (generated automatically — do not edit)
10Merged Result Fields separator (generated automatically)
11Result column headings (you fill these in)
12 onwardsIndividual result rows (you fill these in)

Step 2 — Understand columns E and G before you start

Column E (Default) stores the value pre-filled in the web form when a visitor first opens your calculator. Column G (Inputs) stores the value actually submitted by a visitor when they click Calculate. All result formulas must reference column G, not column E, because G holds the live calculation value.

To test your formulas inside the spreadsheet before publishing, copy cells E2:E8, then click G2, and use Paste special → Values only to paste the defaults into G2:G8. This gives your formulas real numbers to work with. G is overwritten every time a visitor submits the web form, so never store result formulas in column G.

Step 3 — Configure the seven input rows

For each row below, click each cell stated, type or select the value shown, and move on. Leave any cell marked "Leave blank" completely empty.


Row 2 — Setup cost

  • A2 — Label: Setup Cost ($)
  • B2 — Input Type: Number
  • C2 — Required: Tick the Required checkbox
  • D2 — Data: Leave blank
  • E2 — Default: 500
  • F2 — ToolTips: Fixed cost per production run, e.g. changeover and tooling
  • H2 — Rules: Leave blank

Row 3 — Unit processing cost

  • A3 — Label: Unit Processing Cost ($)
  • B3 — Input Type: Number
  • C3 — Required: Tick the Required checkbox
  • D3 — Data: Leave blank
  • E3 — Default: 12
  • F3 — ToolTips: Variable cost to produce one unit including materials and labour
  • H3 — Rules: Leave blank

Row 4 — Waste rate

  • A4 — Label: Waste Rate (decimal, e.g. 0.05 for 5%)
  • B4 — Input Type: Number
  • C4 — Required: Tick the Required checkbox
  • D4 — Data: Leave blank
  • E4 — Default: 0.05
  • F4 — ToolTips: Enter as a decimal: 0.05 means 5% of units produced are scrapped
  • H4 — Rules: Leave blank

Row 5 — Storage cost per unit per period

  • A5 — Label: Storage Cost per Unit per Period ($)
  • B5 — Input Type: Number
  • C5 — Required: Tick the Required checkbox
  • D5 — Data: Leave blank
  • E5 — Default: 0.80
  • F5 — ToolTips: Cost to store one saleable unit for one period (week or month)
  • H5 — Rules: Leave blank

Row 6 — Demand per period

  • A6 — Label: Demand per Period (units)
  • B6 — Input Type: Number
  • C6 — Required: Tick the Required checkbox
  • D6 — Data: Leave blank
  • E6 — Default: 200
  • F6 — ToolTips: How many saleable units customers need each period
  • H6 — Rules: Leave blank

Row 7 — Batch size A

  • A7 — Label: Batch Size A (units)
  • B7 — Input Type: Number
  • C7 — Required: Tick the Required checkbox
  • D7 — Data: Leave blank
  • E7 — Default: 300
  • F7 — ToolTips: First lot size to evaluate
  • H7 — Rules: Leave blank

Row 8 — Batch size B

  • A8 — Label: Batch Size B (units)
  • B8 — Input Type: Number
  • C8 — Required: Tick the Required checkbox
  • D8 — Data: Leave blank
  • E8 — Default: 600
  • F8 — ToolTips: Second lot size to evaluate
  • H8 — Rules: Leave blank

Step 4 — Verify the generated button row

Row 9 is generated by the add-on. Confirm it contains the following and do not edit it:

  • B9: Button
  • D9: main
  • E9: Reset

The label in A9 and the value in E9 are generated by the add-on. The word Reset in E9 is the button's reset label, not an input default — do not confuse it with the numeric defaults you entered in E2:E8.

Step 5 — Add result column headings in row 11

  1. Click cell A11 and type: Metric
  2. Click cell B11 and type: Batch A
  3. Click cell C11 and type: Batch B
  4. Leave D11 and beyond blank.

Step 6 — Add result labels in column A (rows 12 to 19)

Click each cell and type the label shown:

CellLabel to type
A12Batch Size (units)
A13Wasted Units
A14Saleable Units
A15Processing Cost ($)
A16Coverage Periods
A17Storage Cost ($)
A18Total Batch Cost ($)
A19Cost per Saleable Unit ($)

Step 7 — Enter formulas for Batch A in column B (rows 12 to 19)

For each formula: click the cell, type the formula exactly as shown (including the leading =), and press Enter. All inputs come from column G (G2 through G8), which holds the values submitted from the web form. Remember to paste E2:E8 as values into G2:G8 before testing so the formulas have numbers to calculate with.

B12 — Batch Size A (units)

=G7

B13 — Wasted Units A

=G7*G4

B14 — Saleable Units A

=G7*(1-G4)

B15 — Processing Cost A ($)

=G7*G3

B16 — Coverage Periods A
This formula guards against division by zero when demand is entered as zero.

=IF(G6=0,"Check demand input",G7*(1-G4)/G6)

B17 — Storage Cost A ($)
This formula also guards against zero demand. The (B16/2) term is the average-inventory approximation described in the cost model section.

=IF(G6=0,"Check demand input",G7*(1-G4)*G5*(B16/2))

B18 — Total Batch Cost A ($)

=IF(ISNUMBER(B16),G2+B15+B17,"Check inputs")

B19 — Cost per Saleable Unit A ($)
This formula guards against zero saleable units, which would occur if the waste rate is entered as 1 (100%).

=IF(G7*(1-G4)=0,"No saleable units",IF(ISNUMBER(B18),B18/(G7*(1-G4)),"Check inputs"))

Step 8 — Enter formulas for Batch B in column C (rows 12 to 19)

Batch B uses G8 for the batch size instead of G7. All other shared inputs (G2 through G6) remain the same. Enter each formula in column C exactly as shown:

C12 — Batch Size B (units)

=G8

C13 — Wasted Units B

=G8*G4

C14 — Saleable Units B

=G8*(1-G4)

C15 — Processing Cost B ($)

=G8*G3

C16 — Coverage Periods B

=IF(G6=0,"Check demand input",G8*(1-G4)/G6)

C17 — Storage Cost B ($)

=IF(G6=0,"Check demand input",G8*(1-G4)*G5*(C16/2))

C18 — Total Batch Cost B ($)

=IF(ISNUMBER(C16),G2+C15+C17,"Check inputs")

C19 — Cost per Saleable Unit B ($)

=IF(G8*(1-G4)=0,"No saleable units",IF(ISNUMBER(C18),C18/(G8*(1-G4)),"Check inputs"))

Worked example with the default inputs

Using the default values from column E (pasted into G2:G8 for testing):

InputCellValue
Setup Cost ($)G2500
Unit Processing Cost ($)G312
Waste RateG40.05
Storage Cost per Unit per Period ($)G50.80
Demand per Period (units)G6200
Batch Size A (units)G7300
Batch Size B (units)G8600

The expected results are:

MetricBatch A (300 units)Batch B (600 units)
Batch Size (units)300600
Wasted Units1530
Saleable Units285570
Processing Cost ($)3,600.007,200.00
Coverage Periods1.4252.85
Storage Cost ($)162.45649.80
Total Batch Cost ($)4,262.457,849.80
Cost per Saleable Unit ($)14.9613.77

How to read this: Batch A costs less in total ($4,262 vs $7,850) because it involves less processing, but Batch B has a lower cost per saleable unit ($13.77 vs $14.96) because the fixed setup cost is spread across twice as many units. Whether the lower per-unit cost justifies higher total outlay and longer storage time depends on your cash flow, storage capacity, and demand certainty.

Alternative scenario — higher waste rate

Change G4 to 0.15 (15% waste) and keep all other inputs the same. Expected changes: saleable units for Batch A fall to 255, coverage periods drop to 1.275, and cost per saleable unit for Batch A rises above $17. This demonstrates how sensitive per-unit cost is to waste rate — a reason to verify your scrap data before comparing batch sizes.

Checking your results

Before publishing, run through these checks:

  1. Confirm that B12 and C12 equal G7 and G8 respectively. If they show zeros or errors, the defaults were not pasted into G correctly.
  2. Confirm that B14 equals B12 minus B13 (saleable = batch minus waste). With the defaults, B14 should equal 285.
  3. Confirm that B16 multiplied by G6 equals B14 (coverage periods times demand equals saleable units). With defaults: 1.425 times 200 equals 285. Rounding may cause a tiny floating-point difference — this is normal.
  4. Confirm that B18 equals G2 plus B15 plus B17. With defaults: 500 plus 3600 plus 162.45 equals 4262.45.
  5. Confirm that B19 equals B18 divided by B14. With defaults: 4262.45 divided by 285 equals approximately 14.956, which rounds to 14.96.
  6. Enter 0 in G6 (demand per period). Cells B16, C16, B17, C17, B18, C18, B19, and C19 should display the text message rather than a division error.
  7. Enter 1 in G4 (100% waste rate). Cells B19 and C19 should display "No saleable units".

Frequently asked questions

Can I compare more than two batch sizes?

Yes. Add a third input row for Batch Size C in the calculator setup (which means you need 8 inputs total when you create the calculator, not 7). Then add a column D in your results section and replicate the column B formulas substituting G9 (the G cell for the third batch size input) wherever G7 appears. The result headings, separator, and button rows shift down automatically when you specify a higher input count at creation time — you cannot add inputs to an existing calculator structure after it has been generated.

Why does cost per saleable unit fall as batch size increases?

Because setup cost is fixed per run. When you spread a $500 setup cost over 300 units the per-unit setup contribution is $1.67; spread over 600 units it falls to $0.83. This effect is called setup cost amortisation. However, larger batches also increase storage cost because stock sits longer, so there is a point at which further increases in batch size raise total and per-unit cost again. This calculator helps you find which side of that trade-off each of your candidate batch sizes sits on.

What if my storage cost is a flat fee per period rather than a per-unit rate?

Replace the storage cost formula with one that uses your flat fee. For example, if you pay a fixed $400 per period for the warehouse regardless of how many units are stored, your storage cost formula for Batch A becomes =G5*B16 where G5 now holds your flat fee per period (400) and B16 is coverage periods. Update the tooltip text in F5 to reflect the new meaning so web users enter the right type of number. Always retest with known values after changing any formula.

Troubleshooting

Results show zeros even after pasting defaults into G2:G8

Check that you pasted using Paste special → Values only. A regular paste copies the formula =E2 rather than the number 500, and if E2 is not a formula itself you may end up with blank or mismatched cell references. Also confirm the correct cells: G2 should contain 500, G3 should contain 12, and so on down to G8 containing 600.

Coverage periods or storage cost shows "Check demand input" unexpectedly

G6 is likely 0 or blank. Paste E6 (value 200) into G6 using Paste special → Values only and recalculate. If G6 shows a number but the message still appears, check whether your formula in B16 references G6 and not E6 or another cell.

The add-on menu does not show Calculator

Your GSheetPress plan may not include the Calculator entitlement. Log in to your GSheetPress account and check your active plan. You can review plan features on the GSheetPress pricing page. If your plan includes Calculator but the menu item is missing, try closing and reopening the spreadsheet, or reinstalling the add-on. Contact GSheetPress support if the issue persists.

Total batch cost for Batch B is lower than Batch A in total but higher per unit

That would be unusual given the fixed setup cost structure. If it occurs, check that G2 (setup cost) is shared between both scenarios in your formulas — both B18 and C18 must reference G2, not separate setup cost inputs. If you have accidentally given each scenario its own setup cost cell, the totals will not be comparable.

The public calculator does not reflect formula changes I made after publishing

You need to republish. Go to Extensions → GS2Web SaaS → Calculator → Publish Calculator again. Republishing the same existing calculator retains its original public link — the URL does not change. Test the public link after republishing to confirm updated results appear. See the GSheetPress calculator documentation for further detail on the publish workflow. You may also find it useful to review how GSheetPress tables can complement your calculator by displaying reference data such as standard batch cost benchmarks alongside the interactive tool.

Publish and test your web calculator

Step 1 — Share the workbook

The GS2Web add-on requires the spreadsheet to be accessible to the publishing service. In your dedicated sample workbook, click the Share button (top right), then under General access choose Anyone with the link and set the role to Editor, then click Done.

Important: Setting access to Editor means anyone who obtains the spreadsheet link can edit its contents directly. This is why you must use a dedicated sample workbook containing only illustrative data, never a file with real production costs or sensitive business information.

Step 2 — Publish the calculator

  1. Make sure you are on the calculator sheet tab (the tab the add-on created, not Sheet1 or any other tab).
  2. Go to Extensions → GS2Web SaaS → Calculator → Publish Calculator.
  3. Wait for the confirmation message that publishing is complete. This may take a few seconds.

Step 3 — Open the Calculator Link sheet

  1. After publishing, the add-on creates or updates a sheet tab called Calculator Link (the exact tab name is generated by the add-on).
  2. Open that tab and find the row that matches your calculator's Sheet Name (Batch Size Comparison).
  3. Column C contains the public Link. Column B contains the Edit Link — do not share the Edit Link publicly. If the row is not visible or the link appears stale, click Get Links (a button or menu item within the add-on) to refresh the sheet.

Step 4 — Test the public calculator

  1. Click the public link in column C. The calculator opens in a browser as a web form.
  2. Confirm that all seven input fields appear with the default values you entered in column E.
  3. Submit the form without changing any values and verify that the results match the worked example table above: Total Batch Cost A approximately $4,262.45 and Cost per Saleable Unit A approximately $14.96; Total Batch Cost B approximately $7,849.80 and Cost per Saleable Unit B approximately $13.77.
  4. Change Batch Size A to 150 and resubmit. Cost per Saleable Unit A should rise (the setup cost is now spread over fewer units), confirming the calculator responds correctly to input changes.
  5. Optionally, copy the Iframe code from column D of the Calculator Link sheet and paste it into an HTML block on your internal website or operations portal so production staff can access the tool without needing the spreadsheet link.

Republishing the same existing calculator at any future point retains its original public link — the URL does not change, so any bookmarks or embedded iframes continue to work. For additional guidance on managing published calculators, visit the GSheetPress calculator details page.