Photo by Homa Appliances on Unsplash
What this guide builds
This guide shows you how to construct a make-or-buy decision calculator in Google Sheets and publish it as a web form using the GSheetPress GS2Web add-on. The finished calculator accepts seven runtime inputs—annual demand, make-side cost components, and supplier price—and returns a per-unit comparison, a total annual comparison, and a recommendation flag. You enter numbers once on the web form; the spreadsheet does the analysis.
The model is intentionally focused. It does not handle multi-product capacity constraints, net present value of capital investment, or currency conversion. Those extensions require verified local data and are outside this tutorial's scope. Every cost rate you enter should be validated against your own management accounts before using results for real decisions.
Key terms explained
- Relevant cost: A cost that changes as a direct result of a decision. If you stop making a product and start buying it, only the costs that disappear (or appear) are relevant to the choice.
- Avoidable cost: A cost that the business would no longer incur if it chose the alternative option—for example, the direct labour and materials saved by outsourcing.
- Retained overhead (sunk or fixed overhead): Factory rent, depreciation, and allocated management costs that the business pays regardless of whether it makes or buys. These are not relevant to the make-or-buy decision.
- Variable overhead: Overhead that scales with production volume—power, cutting tools, packaging materials, inspection consumables.
- Tooling cost: One-off or periodic expenditure on moulds, jigs, and fixtures needed to manufacture the product internally. Usually annualised over expected tool life.
- Landed cost (supplier): The all-in cost of buying from a supplier once freight, import duties, insurance, and payment terms cost are added to the quoted unit price.
- Quality cost: Inspection, rework, warranty, and scrap costs associated with either the make or buy route. Supplier quality risk is often expressed as a percentage uplift on the quoted price.
- Capacity opportunity cost: If making the product internally consumes factory capacity that could earn contribution from another product, the forgone contribution is a relevant cost of making.
- Break-even volume: The annual demand level at which total make cost equals total buy cost. Below this volume, buying is cheaper; above it, making may be cheaper if fixed tooling is spread over more units.
- GS2Web add-on: The GSheetPress browser add-on (also called GS2Web SaaS) that reads a specially structured Google Sheet and publishes it as a hosted web calculator, table, or form.
Prerequisites
- A Google account with access to Google Sheets.
- The GSheetPress GS2Web add-on installed from the Google Workspace Marketplace. Open any spreadsheet, choose Extensions → Add-ons → Get add-ons, and search for GS2Web. Install it and grant the requested permissions.
- A GSheetPress account that is logged in with the same Google account you use in Sheets. Account matching is required; the add-on checks your Google identity against your GSheetPress subscription. Visit gsheetpress.com/admin/signup.html to create or verify your account.
- A Calculator entitlement on your GSheetPress plan. The Calculator publish feature is a paid capability. Check your entitlements at gsheetpress.com/pricing.html before you start.
- A dedicated sample workbook. Create a new Google Sheet named something like Make or Buy Calculator – Sample. Do not build this model in a file that contains real financial data; the sharing step later makes the spreadsheet editable by anyone with the link.
Understand the cost model before you build
The decision rule is straightforward: if the total relevant cost of making is lower than the total relevant cost of buying, make it; otherwise, buy it. The challenge is identifying which costs belong in each bucket.
Make-side relevant costs (per unit)
Add together only the costs that disappear if you stop making:
- Direct materials cost per unit
- Direct labour cost per unit
- Variable overhead per unit
- Annualised tooling cost ÷ annual demand (this becomes the per-unit tooling charge)
- Internal freight and handling per unit
- Internal quality inspection cost per unit
- Capacity opportunity cost per unit (if applicable; enter zero if spare capacity exists)
Do not include allocated factory rent, depreciation on shared equipment, or head-office overhead. If you are unsure whether a cost is avoidable, ask: would this line item appear on the management accounts at a lower value if we outsourced this product? If the answer is no, exclude it.
Buy-side relevant costs (per unit)
- Supplier quoted price per unit
- Inbound freight and import duties per unit
- Supplier quality risk uplift (enter as a decimal, e.g. 0.02 for 2 %)
- Incremental procurement and administration cost per unit
Lead-time and inventory carrying cost can be significant but require a separate working-capital model. Note that assumption in your workbook.
The comparison formula
Total annual make cost = (direct materials + direct labour + variable overhead + tooling per unit + internal freight + quality inspection + opportunity cost) × annual demand
Total annual buy cost = (supplier price + inbound freight + quality risk uplift × supplier price + admin cost) × annual demand
Net annual saving from buying = total make cost − total buy cost (positive = buying saves money)
Build the calculator in Google Sheets
The GS2Web Calculator template uses a fixed column structure in row 1. When you create a new calculator through the add-on, those headers are generated for you automatically. Do not type or delete them. The columns are:
- A — Labels
- B — Input Type
- C — Required
- D — Data
- E — Default
- F — ToolTips (some template versions spell this ToopTips; use whichever your generated sheet shows)
- G — Inputs (overwritten by web submissions at runtime)
- H — Rules
Column E holds the default values displayed on the web form. Column G holds the value currently used in calculations—when someone submits the form, their entries land in G. To test formulas before publishing, copy E defaults into G using Paste special → Values only. Never store result formulas in column G.
Step 1 — Create the calculator tab
- Open your dedicated sample workbook.
- Click Extensions → GS2Web SaaS (or the installed add-on name) in the menu bar.
- Choose Calculator → New Calculator.
- When prompted, enter a name such as Make or Buy Analysis.
- When asked for the number of inputs, enter 7. Do not count the Calculate button.
- When asked whether to include graphs, choose No for this model (the comparison is numerical).
- Click Create (or the equivalent confirmation button). The add-on inserts a new sheet tab with the generated headers in row 1 and placeholder rows 2 through 12.
With seven inputs the layout is: input rows 2–8, button row 9, merged separator row 10, result headings row 11, results starting from row 12.
Step 2 — Configure each input row
Work through rows 2 to 8 one at a time. For each row the instructions list exact cell values; cells not mentioned should be left blank.
Row 2 — Annual demand (units)
- A2 — Label: Annual Demand (units)
- B2 — Input Type: Number
- C2 — Required: Check the checkbox (tick it)
- D2 — Data: leave blank
- E2 — Default: 10000
- F2 — ToolTips: Enter the expected number of units per year
- H2 — Rules: leave blank
Row 3 — Make cost: direct materials per unit
- A3 — Label: Direct Materials per Unit ($)
- B3 — Input Type: Number
- C3 — Required: Check the checkbox
- D3 — Data: leave blank
- E3 — Default: 4.50
- F3 — ToolTips: Raw material and components cost per finished unit
- H3 — Rules: leave blank
Row 4 — Make cost: direct labour per unit
- A4 — Label: Direct Labour per Unit ($)
- B4 — Input Type: Number
- C4 — Required: Check the checkbox
- D4 — Data: leave blank
- E4 — Default: 2.00
- F4 — ToolTips: Avoidable labour cost per unit including employer taxes
- H4 — Rules: leave blank
Row 5 — Make cost: variable overhead + tooling + internal freight + quality (combined per unit)
To keep the web form to a manageable number of fields, this row collects all remaining make-side per-unit costs in a single field. Instruct users to calculate this subtotal offline using the breakdown shown later in this guide.
- A5 — Label: Other Make Costs per Unit ($)
- B5 — Input Type: Number
- C5 — Required: Check the checkbox
- D5 — Data: leave blank
- E5 — Default: 1.20
- F5 — ToolTips: Variable overhead + annualised tooling/demand + internal freight + quality inspection per unit
- H5 — Rules: leave blank
Row 6 — Supplier quoted price per unit
- A6 — Label: Supplier Price per Unit ($)
- B6 — Input Type: Number
- C6 — Required: Check the checkbox
- D6 — Data: leave blank
- E6 — Default: 8.50
- F6 — ToolTips: Quoted unit price from your preferred supplier before freight
- H6 — Rules: leave blank
Row 7 — Supplier inbound freight and duties per unit
- A7 — Label: Inbound Freight & Duties per Unit ($)
- B7 — Input Type: Number
- C7 — Required: Check the checkbox
- D7 — Data: leave blank
- E7 — Default: 0.60
- F7 — ToolTips: All landed costs added to the supplier price per unit
- H7 — Rules: leave blank
Row 8 — Supplier quality risk rate
- A8 — Label: Supplier Quality Risk Rate (%)
- B8 — Input Type: Number
- C8 — Required: Check the checkbox
- D8 — Data: leave blank
- E8 — Default: 2
- F8 — ToolTips: Enter a whole number, e.g. 2 means 2%. Applied as a percentage of supplier price to cover rework and scrap risk
- H8 — Rules: leave blank
Step 3 — Verify the button row
Row 9 is the generated Calculate button. Check that:
- A9 contains the label for the button, typically Calculate (the add-on sets this; do not change it).
- B9 reads Button.
- D9 reads main.
- E9 reads Reset (this is the reset button label, not the calculate label).
Do not edit row 9.
Step 4 — Enter result labels (column A, rows 11 onward)
Row 10 is the merged separator. Row 11 is the result headings row generated by the template. Starting from row 12, type the following labels in column A:
- Select cell A12 and type: Make Cost per Unit ($)
- Select cell A13 and type: Buy Cost per Unit ($)
- Select cell A14 and type: Cost Difference per Unit ($)
- Select cell A15 and type: Total Annual Make Cost ($)
- Select cell A16 and type: Total Annual Buy Cost ($)
- Select cell A17 and type: Net Annual Saving from Buying ($)
- Select cell A18 and type: Recommendation
Step 5 — Enter result formulas (column B, rows 12 onward)
All formulas reference column G (runtime inputs) for the seven inputs in rows 2–8. Select each cell, type the formula starting with =, and press Enter.
B12 — Make cost per unit
=G3+G4+G5This sums direct materials (G3), direct labour (G4), and other make costs (G5).
B13 — Buy cost per unit
=G6+G7+(G8/100)*G6This adds supplier price (G6), inbound freight (G7), and the quality risk amount (G8 divided by 100 to convert the percentage, multiplied by G6).
B14 — Cost difference per unit
=B12-B13Positive value means making is more expensive per unit; negative means making is cheaper.
B15 — Total annual make cost
=B12*G2Make cost per unit multiplied by annual demand (G2).
B16 — Total annual buy cost
=B13*G2Buy cost per unit multiplied by annual demand.
B17 — Net annual saving from buying
=B15-B16Positive value means buying saves money annually versus making.
B18 — Recommendation
=IF(B17>0,"Buy from supplier",IF(B17<0,"Make in-house","Costs are equal"))This IF statement returns a plain-language recommendation. It does not account for strategic factors such as intellectual property risk or supplier reliability; treat it as a cost-only signal.
Step 6 — Add helper context in column C (optional but useful)
You can add brief context labels in column C alongside results to help readers understand units. For example:
- C12: per unit
- C13: per unit
- C14: positive = make more expensive
- C17: positive = buying saves money
These are plain text, not formulas.
Step 7 — Copy defaults to G for testing
- Select cells E2:E8.
- Press Ctrl+C (or Cmd+C on Mac) to copy.
- Click cell G2.
- Right-click and choose Paste special → Values only.
- Press Enter to confirm.
Column G now holds the default values. Check that B12 through B18 show numbers and a recommendation. If any cell shows an error, re-read the formula in that row against the instructions above.
Worked example
Using the default values in the model:
| Input | Default value |
|---|---|
| Annual Demand | 10,000 units |
| Direct Materials per Unit | $4.50 |
| Direct Labour per Unit | $2.00 |
| Other Make Costs per Unit | $1.20 |
| Supplier Price per Unit | $8.50 |
| Inbound Freight & Duties per Unit | $0.60 |
| Supplier Quality Risk Rate | 2% |
Expected results:
| Result cell | Label | Expected value |
|---|---|---|
| B12 | Make Cost per Unit | $7.70 |
| B13 | Buy Cost per Unit | $9.27 |
| B14 | Cost Difference per Unit | $-1.57 (making cheaper) |
| B15 | Total Annual Make Cost | $77,000 |
| B16 | Total Annual Buy Cost | $92,700 |
| B17 | Net Annual Saving from Buying | $-15,700 (buying costs more) |
| B18 | Recommendation | Make in-house |
Calculation check for B13: $8.50 + $0.60 + (2 ÷ 100) × $8.50 = $8.50 + $0.60 + $0.17 = $9.27. Confirmed.
Alternative scenario — higher supplier price risk
Change Supplier Quality Risk Rate to 5 % and Inbound Freight to $1.20. Expected B13 becomes $8.50 + $1.20 + $0.425 = $10.125. The recommendation remains Make in-house, and the annual saving from making grows to approximately $24,250. This illustrates how landed cost sensitivity matters: even a modest freight or quality assumption change can shift the financial case significantly.
Low-demand scenario
Change Annual Demand to 1,000 units and Other Make Costs per Unit to $3.50 (reflecting higher per-unit tooling at low volume). Make cost per unit becomes $4.50 + $2.00 + $3.50 = $10.00; buy cost stays at $9.27. B14 is positive ($0.73), B17 is positive ($730), and the recommendation switches to Buy from supplier. This demonstrates break-even volume sensitivity: tooling amortisation makes in-house production uneconomical at low volumes.
What the model excludes — assumptions to verify locally
- Capital investment: If making requires new machinery, the net present value of that investment is not in this model.
- Working capital and lead time: Longer supplier lead times require more safety stock, raising inventory carrying cost. Add this to your buy-side other costs if it is material.
- Capacity opportunity cost: If your factory floor space or labour hours are constrained, the contribution forgone by using capacity to make this product is a real relevant cost. Enter it in Other Make Costs per Unit.
- Multi-currency: If the supplier invoices in a foreign currency, include an exchange rate buffer in your freight and duties per unit figure.
- Retained overhead: This model assumes you have correctly excluded non-avoidable fixed overhead from Other Make Costs per Unit. Verify this with your management accountant.
- Tax and transfer pricing: Cross-border outsourcing may trigger transfer pricing rules. This model does not address tax.
For further reading on relevant cost principles, the CGMA relevant cost guidance provides a thorough framework used by management accountants globally.
Frequently asked questions
Why should I exclude fixed overhead from the make-side cost?
Fixed overhead—factory rent, depreciation on shared equipment, allocated head-office costs—does not change whether you make or buy this specific product. Including it in your make-side figure would make making appear more expensive than it really is. The only costs that belong in a make-or-buy comparison are those that actually change as a result of the decision. If you stopped making this product tomorrow and the rent bill stayed the same, rent is irrelevant to this choice.
Can I use this calculator for multiple products at once?
Not in its current single-product form. To compare multiple products, you would either run the calculator separately for each product or extend the spreadsheet with additional rows using the same formula pattern, entering each product's data in separate columns. The GSheetPress Calculator format is designed for one decision at a time; for multi-row data comparisons, a GSheetPress table may be a more appropriate output format.
How do I handle a one-off tooling cost that spans several years?
Annualise it. Divide the total tooling investment by the number of years you expect to use the tool, then divide that annual figure by your expected annual demand to get a per-unit charge. For example, a $30,000 mould expected to last three years at 10,000 units per year gives $30,000 ÷ 3 ÷ 10,000 = $1.00 per unit. Enter that $1.00 in Other Make Costs per Unit alongside your other variable overhead. If the mould wears out sooner than expected, re-run the calculator with the revised annual charge.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| B13 or B12 shows #VALUE! | A G cell contains text instead of a number | Select G2:G8, check each cell is a plain number. Re-paste E defaults using Values only. |
| B18 always shows "Costs are equal" | B17 formula references wrong cells | Click B17 and verify it reads =B15-B16, not =B12-B13 or similar. |
| Recommendation does not update after changing G values | Spreadsheet set to manual calculation | Go to File → Settings → Calculation and set to On change. |
| Quality risk amount seems too large | Entered quality risk as a decimal (e.g. 0.02) instead of a whole percent (2) | The formula divides by 100 internally. Enter 2, not 0.02. |
| Add-on menu not visible | Add-on not installed or not authorised | Go to Extensions → Add-ons → Manage add-ons and confirm GS2Web is listed and enabled. |
| Calculator publish option greyed out | Plan does not include Calculator entitlement | Check your plan at gsheetpress.com/pricing.html or contact GSheetPress support. |
| Results on the web form differ from spreadsheet | G column still has test values; web form submission overwrites G | This is expected behaviour. Submit fresh values on the web form and re-check. |
If you need deeper guidance on calculator configuration, the GSheetPress Calculator documentation covers additional input types and display options.
Publish and test your web calculator
Before publishing, confirm you are working in your dedicated sample workbook, not a file containing real financial data. The next step makes the spreadsheet editable by anyone who holds its link.
Step 1 — Share the spreadsheet
- Click the Share button at the top-right of the Google Sheets window.
- Under General access, open the dropdown and select Anyone with the link.
- Set the role to Editor.
- Click Done.
Important: Setting access to Editor means any person who obtains the spreadsheet URL can modify the sheet directly. Use only the dedicated sample workbook for this reason. Never apply this setting to a file with sensitive business data.
Step 2 — Publish the calculator
- Make sure the calculator tab is the active (selected) tab in your workbook.
- Click Extensions → GS2Web SaaS → Calculator → Publish Calculator.
- Wait for the confirmation message indicating the calculator has been published successfully.
- In the add-on panel, click Calculator Link (or open the links sheet the add-on creates).
- Find the row that matches your calculator's Sheet Name (Make or Buy Analysis).
- Open the URL in column C (the public Link). Do not use column B (the Edit Link).
- If the row is not visible or the link appears outdated, click Get Links to refresh the list.
Step 3 — Test the published calculator
- Open the public link in a new browser tab.
- Enter the default values from the worked example: Demand 10,000; Materials $4.50; Labour $2.00; Other Make Costs $1.20; Supplier Price $8.50; Freight $0.60; Quality Risk 2.
- Click the Calculate button on the web form.
- Verify the results match the expected values: Make per unit $7.70, Buy per unit $9.27, Recommendation: Make in-house.
- Try the low-demand scenario (demand 1,000, Other Make Costs $3.50) and confirm the recommendation switches to Buy from supplier.
If you need to update the calculator after making changes to the spreadsheet, return to Extensions → GS2Web SaaS → Calculator → Publish Calculator and publish again. Republishing the same calculator retains its existing public link; you do not need to update any links you have already shared.
To embed the calculator on a website, copy the iframe code from column D of the links sheet and paste it into an HTML block on your page. For further configuration options, visit the GSheetPress Calculator details page.