Photo by Team Nocoloco on Unsplash
What this guide covers and what it does not
This guide shows you how to build a monthly retainer pricing model in Google Sheets and publish it as a live web calculator using the GSheetPress GS2Web add-on. The model covers labour, software, account management, and an overhead allocation. It does not handle one-off project fees, VAT or sales-tax calculations, payroll-tax grossing-up, or multi-currency conversion. All cost figures in the worked example are illustrative; replace them with your own verified numbers before quoting a client.
Key terms explained
- Retainer: A fixed monthly fee a client pays an agency in exchange for an agreed scope of work or a block of hours each month.
- Delivery hours: The actual billable hours your team spends doing client work—writing, designing, running campaigns, and so on.
- Staff cost rate: The fully loaded cost per hour of a staff member, covering salary, employer taxes, and benefits, expressed as a currency amount per hour.
- Overhead allocation: A share of indirect business costs—rent, utilities, finance, HR—spread across client engagements, usually as a percentage of direct costs.
- Gross margin: The percentage of the retainer price that remains after subtracting all direct costs. A 30% gross margin means 30 cents of every fee dollar covers profit and indirect costs.
- Markup: A percentage added on top of cost to reach a price. A 43% markup on a £700 cost gives a £1,001 price; a 30% gross margin on that £1,001 price gives the same £700 cost. Margin and markup are not interchangeable.
- Scope creep: Unplanned extra work that expands beyond the agreed retainer without a corresponding fee increase, eroding profitability.
- Capacity check: A test that confirms your team has enough hours in the month to deliver the retainer without overloading staff.
- GS2Web Calculator: A GSheetPress feature that turns a specially structured Google Sheet tab into a public-facing web form with calculated results.
- Runtime input (G column): The value a user submits through the web form; it overwrites what was in column G at the moment of submission.
- Default value (E column): The pre-filled value shown to the user before they change anything; it also acts as your test value before publishing.
Prerequisites
- A Google account with Google Sheets access.
- The GSheetPress GS2Web add-on installed and a Calculator entitlement active on that account. Open Extensions → GS2Web SaaS → My Account to confirm your plan includes the Calculator feature. If you are unsure, check the GSheetPress pricing page or sign up for the appropriate tier.
- A dedicated sample workbook—not a file containing real client data or private cost information. Create a fresh Google Sheet now and name it Agency Retainer Calculator – Sample.
- Basic comfort with clicking cells and typing values in Google Sheets. No prior formula knowledge is assumed; every formula is given in full.
Plan your inputs and outputs
Before opening the add-on, decide what a user must enter and what the calculator will show back. The model uses seven inputs:
- Monthly delivery hours
- Staff cost rate (£ per hour)
- Monthly software licences (£)
- Account management hours per month
- Account management rate (£ per hour)
- Overhead percentage (% of direct costs)
- Target gross margin (%)
The outputs will be: delivery labour cost, account management cost, software cost, overhead allocation, total direct cost, retainer price, gross profit, gross margin achieved, two scope-growth stress tests, and a capacity flag. Because you have 7 inputs, the add-on places them in rows 2 through 8, the button in row 9, the Results separator in row 10, the result headings row in row 11, and result values from row 12 onward.
Build the calculator tab
Step 1 — Create a new Calculator
- Open your sample workbook.
- Click Extensions → GS2Web SaaS → Calculator → New Calculator.
- In the dialog, type a name such as
Agency Retainer Pricer. - Set the number of inputs to 7. Do not count the button; it is generated automatically.
- When asked whether to include graphs, choose No for this model.
- Click Create. GS2Web inserts a new sheet tab and populates row 1 with these eight headers across columns A to H: Labels, Input Type, Required, Data, Default, ToolTips, Inputs, Rules.
Step 2 — Understand the generated layout
Because you chose 7 inputs, the tab is structured as follows:
| Row | Purpose |
|---|---|
| 1 | Auto-generated column headers (do not edit) |
| 2–8 | Your seven input rows |
| 9 | Generated Calculate / Reset button |
| 10 | Merged Results separator (do not edit) |
| 11 | Result headings row (do not edit) |
| 12 onward | Your result labels (column A) and formulas (column B) |
Step 3 — Fill in each input row
Column G (Inputs) is managed by the web form at runtime; leave it blank during setup. Column H (Rules) accepts optional validation expressions; it is blank for all rows in this model. Work through each row below.
Row 2 — Monthly delivery hours
- A2 — Label: Monthly Delivery Hours
- B2 — Input Type: Number
- C2 — Required: Tick the checkbox (mark as required)
- D2 — Data: Leave blank
- E2 — Default: 60
- F2 — ToolTips: Total billable hours your team will deliver each month under this retainer
- H2 — Rules: Leave blank
Row 3 — Staff cost rate
- A3 — Label: Staff Cost Rate (£/hr)
- B3 — Input Type: Number
- C3 — Required: Tick the checkbox
- D3 — Data: Leave blank
- E3 — Default: 35
- F3 — ToolTips: Fully loaded cost per hour per staff member (annual salary plus employer costs divided by annual billable hours)
- H3 — Rules: Leave blank
Row 4 — Monthly software licences
- A4 — Label: Monthly Software Licences (£)
- B4 — Input Type: Number
- C4 — Required: Tick the checkbox
- D4 — Data: Leave blank
- E4 — Default: 120
- F4 — ToolTips: Total monthly cost of tools, platforms, and licences used exclusively or partly for this client
- H4 — Rules: Leave blank
Row 5 — Account management hours
- A5 — Label: Account Management Hours/Month
- B5 — Input Type: Number
- C5 — Required: Tick the checkbox
- D5 — Data: Leave blank
- E5 — Default: 8
- F5 — ToolTips: Hours spent on calls, reporting, and client communication that are not billable delivery
- H5 — Rules: Leave blank
Row 6 — Account management rate
- A6 — Label: Account Management Rate (£/hr)
- B6 — Input Type: Number
- C6 — Required: Tick the checkbox
- D6 — Data: Leave blank
- E6 — Default: 40
- F6 — ToolTips: Fully loaded hourly cost of the account manager handling this client
- H6 — Rules: Leave blank
Row 7 — Overhead percentage
- A7 — Label: Overhead % of Direct Costs
- B7 — Input Type: Number
- C7 — Required: Tick the checkbox
- D7 — Data: Leave blank
- E7 — Default: 15
- F7 — ToolTips: Enter a whole number, e.g. 15 for 15%. Spreads indirect costs across the engagement.
- H7 — Rules: Leave blank
Row 8 — Target gross margin
- A8 — Label: Target Gross Margin %
- B8 — Input Type: Number
- C8 — Required: Tick the checkbox
- D8 — Data: Leave blank
- E8 — Default: 30
- F8 — ToolTips: Enter a whole number, e.g. 30 for 30%. The retainer price will be set so this share remains as gross profit.
- H8 — Rules: Leave blank
Row 9 — The generated button (do not alter)
GS2Web places the Calculate button automatically in row 9. Confirm the generated values match what is shown here and do not overwrite them:
- A9 — Label: Calculate (generated; do not change)
- B9 — Input Type: Button
- D9 — Data: main
- E9: Reset (this is the reset-button label, not a user input default)
Rows 10 and 11 are the generated Results separator and headings. Do not edit them.
Step 4 — Copy defaults to the Inputs column for testing
Column E holds the defaults displayed on the web form. Column G holds live submission values at runtime and is overwritten by GS2Web each time a visitor submits the form. To test your formulas before publishing:
- Select cells E2:E8.
- Press Ctrl+C (Cmd+C on Mac) to copy.
- Click cell G2.
- Open Edit → Paste special → Values only and confirm.
Cells G2 through G8 now contain the same numbers as E2:E8. All result formulas reference G2:G8. When a visitor submits the web form, GS2Web overwrites G2:G8 with their entries, triggering a fresh calculation. Never store result formulas in column G.
Add result labels and formulas
All formulas live in the result area starting at row 12. Enter each formula by clicking the target cell, typing the equals sign, pasting the rest of the formula, and pressing Enter. The percentage inputs (overhead and margin) are stored as whole numbers such as 15 or 30, so every formula divides them by 100 internally. For further reference on building calculated outputs, see the GSheetPress Calculator documentation.
Result labels — column A
Type each label as plain text. No formula is needed in column A.
| Cell | Label to type |
|---|---|
| A12 | Delivery Labour Cost (£) |
| A13 | Account Management Cost (£) |
| A14 | Software Cost (£) |
| A15 | Overhead Allocation (£) |
| A16 | Total Direct Cost (£) |
| A17 | Retainer Price (£) |
| A18 | Gross Profit (£) |
| A19 | Gross Margin Achieved (%) |
| A20 | Scope +20% — New Direct Cost (£) |
| A21 | Scope +20% — Margin at Original Price (%) |
| A22 | +2 Revision Hours — Extra Cost (£) |
| A23 | +2 Revision Hours — Margin at Original Price (%) |
| A24 | Capacity Flag |
Result formulas — column B
B12 — Delivery labour cost
Multiply monthly delivery hours (G2) by the staff cost rate (G3).
=G2*G3
B13 — Account management cost
Multiply account management hours (G5) by the account management rate (G6).
=G5*G6
B14 — Software cost
Pass through the monthly software figure directly from G4.
=G4
B15 — Overhead allocation
Apply the overhead percentage to the sum of the three direct cost lines. G7 holds a whole number such as 15, so divide by 100.
=(B12+B13+B14)*(G7/100)
B16 — Total direct cost
Sum all four cost lines.
=B12+B13+B14+B15
B17 — Retainer price
To achieve a gross margin of M%, the price equals total direct cost divided by (1 minus M divided by 100). For example, a 30% margin means price equals cost divided by 0.70. If the margin input is 100 or above the formula would divide by zero, so an IF guard returns a warning text instead.
=IF(G8>=100,"Margin must be below 100%",B16/(1-G8/100))
B18 — Gross profit
Retainer price minus total direct cost. If B17 contains the warning text, IFERROR returns zero to avoid a cascade error.
=IFERROR(B17-B16,0)
B19 — Gross margin achieved
Divide gross profit by the retainer price and multiply by 100 to express as a percentage. IFERROR guards against a text value in B17 or a zero price.
=IFERROR((B18/B17)*100,0)
B20 — Scope +20%: new direct cost
Recalculate total direct cost as if delivery hours increase by 20%, keeping all other inputs the same. The overhead percentage still applies to the new sub-total.
=((G2*1.2)*G3+B13+B14)*(1+G7/100)
B21 — Scope +20%: margin at original price
What gross margin would the original retainer price produce if direct costs rose to B20? This tells you how much buffer you have. IFERROR guards against a text value in B17.
=IFERROR(((B17-B20)/B17)*100,0)
B22 — Two extra revision hours: additional cost
Two additional hours of delivery staff time, with overhead applied on top.
=(2*G3)*(1+G7/100)
B23 — Two extra revision hours: margin at original price
Margin if total direct cost increases by the revision cost from B22.
=IFERROR(((B17-(B16+B22))/B17)*100,0)
B24 — Capacity flag
Warn if total hours (delivery plus account management) exceed 160, a common approximation for one full-time equivalent month. Adjust the threshold to match your team's actual monthly capacity.
=IF((G2+G5)>160,"Over capacity — review hours","Within capacity")
Worked example with the default inputs
Using the default values pasted into G2:G8 (delivery hours 60, staff rate £35, software £120, AM hours 8, AM rate £40, overhead 15%, margin 30%), the calculator should produce the following results. Verify your formulas match these figures after pasting defaults into column G.
| Output | Formula cell | Expected value |
|---|---|---|
| Delivery Labour Cost | B12 | £2,100.00 |
| Account Management Cost | B13 | £320.00 |
| Software Cost | B14 | £120.00 |
| Overhead Allocation (15%) | B15 | £381.00 |
| Total Direct Cost | B16 | £2,921.00 |
| Retainer Price (30% margin) | B17 | £4,172.86 |
| Gross Profit | B18 | £1,251.86 |
| Gross Margin Achieved | B19 | 30.00% |
| Scope +20% New Direct Cost | B20 | £3,173.00 |
| Scope +20% Margin at Original Price | B21 | 23.95% |
| +2 Revision Hours Extra Cost | B22 | £80.50 |
| +2 Revision Hours Margin at Original Price | B23 | 28.07% |
| Capacity Flag | B24 | Within capacity |
To verify B15: (2100 + 320 + 120) multiplied by 0.15 equals 381. To verify B17: 2921 divided by 0.70 equals 4172.86. To verify B20: (60 multiplied by 1.2 equals 72 hours; 72 multiplied by 35 equals 2520 for labour; plus 320 AM plus 120 software equals 2960; multiplied by 1.15 equals 3404). Note: recalculate B20 manually if your overhead applies differently. The formula above applies overhead to all three components including AM and software, consistent with B16. Adjust if your agency policy applies overhead to labour only.
Alternative scenario — higher margin target
Change G8 to 40 (a 40% target margin). With the same cost base of £2,921, the retainer price becomes 2921 divided by 0.60, which equals £4,868.33. The gross profit rises to £1,947.33. The scope-creep margin at that original price would be approximately 34.84%, giving more buffer against unplanned work. This confirms why agencies with high revision rates often price at 35–40% gross margin rather than 30%.
Troubleshooting common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| B17 shows "Margin must be below 100%" | G8 is 100 or greater | Enter a whole number below 100, e.g. 30 |
| B19 or B21 shows 0 instead of a percentage | B17 contains text because G8 is invalid | Correct G8 first; B17 will recalculate to a number and B19/B21 will follow |
| B24 shows "Over capacity" unexpectedly | G2 plus G5 exceeds 160 | Reduce delivery or AM hours, or raise the threshold in B24 to match your team size |
| Formulas reference wrong rows | Input count was set differently, shifting row numbers | Recheck: for 7 inputs, G2=delivery hours, G3=staff rate, G4=software, G5=AM hours, G6=AM rate, G7=overhead, G8=margin |
| Column G is empty after publishing | Test values were not pasted; web form has not been submitted yet | Paste E2:E8 as values into G2:G8 for in-sheet testing; the web form populates G on each submission |
| Results do not update on the web calculator | Calculator was not republished after editing formulas | Go to Extensions → GS2Web SaaS → Calculator → Publish Calculator and republish |
Frequently asked questions
What gross margin should a marketing agency target on a retainer?
A commonly cited target range is 25–40% gross margin on retainer work, though the right number depends on agency size, service mix, and market positioning. A margin below 20% leaves little buffer for scope creep or staff turnover. This calculator lets you test different margin targets and see the resulting retainer price before committing to a quote. The GSheetPress support pages include guidance on structuring financial calculators for professional services.
Why do my G-column values disappear or reset when I publish the calculator?
Column G is the live input column that GS2Web overwrites each time a visitor submits the web form. If you need to restore your test values, copy E2:E8 and paste as Values only into G2:G8 again inside the spreadsheet. Never store formulas in column G, because they will be replaced at runtime by the visitor's submitted values.
Can I add more cost lines, such as subcontractor fees or media spend?
Yes, but you must do so by creating a new Calculator with a higher input count, because the add-on generates a fixed number of input rows. Plan all your cost categories before you create the Calculator tab. If you have already built the tab, the simplest approach is to repurpose an existing input row—for example, rename the software input to cover all third-party costs combined—rather than trying to insert rows manually into the generated structure. For more on structuring multi-line output tables, see the GSheetPress Table documentation.
Publish and test your web calculator
Step 1 — Share the workbook correctly
GS2Web must be able to read and write the spreadsheet to serve the public calculator. This requires sharing the workbook at Editor level with anyone who has the link.
- Click Share in the top-right corner of your sample workbook.
- Under General access, open the dropdown and select Anyone with the link.
- Change the role dropdown from Viewer to Editor.
- Click Done.
Important: Setting access to Editor means anyone who obtains the spreadsheet link can edit the file directly. Use only your dedicated sample workbook for this step—never a file that contains real client data, actual agency costs, or private information.
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.
Step 3 — Find and open the public link
- In the add-on menu, click Extensions → GS2Web SaaS → Calculator → Get Links. This refreshes the Calculator Links sheet, which lists every calculator you have published from this account.
- Open the Calculator Links tab (or the sheet named by the add-on). Locate the row where the Sheet Name column matches
Agency Retainer Pricer. - Open the URL in column C (Link)—this is the public calculator link your visitors will use. Do not use column B (Edit Link), which opens the backend configuration.
- If your calculator does not appear, click Get Links again to refresh the sheet.
Step 4 — Test with the worked example inputs
- Open the public link from column C in a new browser tab.
- Enter the default values from your worked example: Delivery Hours 60, Staff Rate 35, Software 120, AM Hours 8, AM Rate 40, Overhead 15, Target Margin 30.
- Click Calculate.
- Confirm the results match the expected values from the worked example table: Retainer Price approximately £4,172.86, Gross Margin 30%, Capacity Flag showing Within capacity.
- Test the Reset button to confirm it restores the default values.
- Try an invalid margin of 100 and confirm B17 shows the warning text rather than a number.
Step 5 — Republish after edits and embed optionally
If you change any formula or label after publishing, repeat the Publish Calculator step. Republishing the same existing calculator retains its public link—you do not receive a new URL. Once the public results match your spreadsheet results, the calculator is ready to share. Optionally, copy the iframe code from column D of the Calculator Links sheet and paste it into an HTML block on your website to embed the calculator inline. For detailed embedding guidance, see the GSheetPress Calculator documentation and the Google Sheets sharing help article for background on access levels.