How to Calculate Totals and Scores from Google Forms Responses
Quick answer: Google Forms calculates only one thing on its own: the total score of a quiz, from the points you set on each question. Every other total (an order, a price, a weighted survey score) is calculated in the linked Google Sheet, after the response is submitted. Put the formulas on a second tab, not in the Form Responses tab, and use one ARRAYFORMULA per column so new responses are calculated automatically. Respondents can't see a calculated total before they submit.
People want totals out of a form for three different reasons. A teacher wants each student's quiz score. A small business wants each order's price. A researcher or HR team wants each respondent's score on a questionnaire, where "Strongly agree" counts as 5. Google Forms handles the first one natively and none of the others, so most of the work happens in Google Sheets.
This guide covers all three: what the quiz score gives you and where it stops, the spreadsheet setup that keeps formulas working as responses arrive, order totals with a price list, converting text answers into numbers, and what you can and can't show the respondent. Every formula is shown against a small worked example, so you can check your sheet against ours.
One shortcut worth knowing: you can create a Google Form from a prompt and then apply the settings in this guide to the draft.
What Google Forms can and can't calculate
| You want | In Google Forms itself? | Where to do it |
|---|---|---|
| Total points on a quiz | Yes, automatically in quiz mode | Forms (Responses tab), plus a Score column in the linked Sheet |
| Order total (quantity times price) | No | Linked Sheet, second tab |
| Survey or questionnaire score from labeled answers | No (quiz points can't give different options different values) | Linked Sheet, with a lookup table |
| A total the respondent sees before submitting | No | Not possible in Google Forms; show unit prices instead |
| A total the respondent receives after submitting | Quiz score only | Quiz grade release, or an email sent by a script or automation |
The reason for the last two rows: none of the question types on Google's help page is a calculation or formula field, and scripts can't step in either. Apps Script's open trigger runs only when an editor opens the form; Google's trigger documentation says it "does not run when responding to a form" (Apps Script simple triggers). Nothing runs while someone is filling it in, so there is no way to compute a number and show it on the page before Submit. Form builders with built-in calculation fields can do that; we compare one in Google Forms vs Cognito Forms.
Quiz points: the one total Forms calculates for you
If the "score" you need is right or wrong answers, let Forms do it. Open the form, click Settings, turn on Make this a quiz, then open each question's Answer key, mark the correct answer and set its points. Google lists short answer, multiple choice, checkboxes, dropdown, multiple choice grid and checkbox grid as question types that take an answer key (Google Forms help: make a quiz). Forms then adds up the points for every response and shows the average, median and range on the Responses tab. Our self-grading quiz guide covers answer keys, feedback and releasing grades step by step.
Respondents see their total only after submitting, and only if Release grades is set to Immediately after each submission. With Later, after manual review, they see it when you release it.
Where quiz scoring stops
- An answer earns the question's points or nothing. You can't say "option A is worth 3, option B is worth 1." That rules out personality quizzes, risk assessments and Likert questionnaires, where every option carries a different value. Score those in Sheets (see below).
- No weighting by section. If section 2 should count double, set double points on its questions, or compute the weighted total in Sheets.
- Checkboxes are all or nothing. The points are earned only when the selection exactly matches the answer key.
- Open answers are scored by hand. Paragraph answers need points entered manually in the Responses tab before the total is final. Our grading rubric guide helps keep those consistent.
Using the Score column in Sheets
When a quiz is linked to a spreadsheet, the response tab gets a Score column. It holds the points earned and the points possible separated by a slash, so it reads as text rather than a number, and AVERAGE or a percentage format won't work on it directly. On a second tab, extract the numbers. If Score is in column B of the response tab:
=ARRAYFORMULA(IF('Form Responses 1'!B2:B="", , VALUE(REGEXEXTRACT(TO_TEXT('Form Responses 1'!B2:B), "^\s*([0-9.]+)"))))
That returns the points earned (7 from a score of 7 out of 10). For the points possible, change the pattern to "/\s*([0-9.]+)". Divide one by the other and format the column as Percent to get each student's percentage. The pattern allows spaces around the slash either way, so it works whichever way your sheet displays the score. Check the letter of the Score column in your own sheet; it depends on what else the form collects.
The setup rule: calculate on a second tab
Before any formula, decide where it goes. Google Forms owns the Form Responses 1 tab, and putting your own formulas there is the most common reason totals break. Three things happen in that tab that you don't control:
- Each response arrives as a new row. Forms adds a row for every submission, so formulas you copied down in advance get pushed down instead of covering the new response, which arrives with no total. Ben Collins describes this in his guide to array formulas with Google Forms data.
- New questions add columns. When you add a question to the form, its column appears after the existing question columns, which is exactly where a hand-made "Total" column usually sits.
- Sorting and editing move the data under Forms. Sorting, deleting or inserting rows in the response tab rearranges the rows Forms writes into. Our guide to linking Google Forms to Google Sheets lists the safe and unsafe edits.
So keep the response tab as the untouched raw record. Add a tab (the plus button at the bottom left of Sheets) called Totals, and put one formula at the top of each calculated column. The pattern for every column in this guide is:
=ARRAYFORMULA(IF('Form Responses 1'!A2:A="", , your calculation using open-ended ranges like 'Form Responses 1'!C2:C))
ARRAYFORMULA repeats the calculation for every row of the range. The open-ended range (C2:C, with no end row) grows as responses arrive. The IF(...A2:A="", , ...) wrapper uses the Timestamp column, which every response has, to leave empty rows blank instead of filled with zeros. Leave the cells below the formula empty: an array formula can't write over cells that already contain something and shows a #REF! error instead.
Order totals: a worked example
Here is an illustrative bake-sale order form with a quantity question per item. The items, prices and orders are made up. For the full order form (questions, pickup slots, payment options), see our Google Forms order form guide; this section is about the math.
Make the quantity questions Dropdowns with the options 0 to 10, or Short answers with response validation set to a number, so nobody types "a couple." Leave them optional, since most people won't order every item. That means blanks, and the formulas below treat a blank as zero.
Prices tab (A: Item, B: Price), with the items in the same order as their quantity columns:
| A: Item | B: Price | |
|---|---|---|
| 2 | Chocolate chip cookies (dozen) | 6 |
| 3 | Banana bread | 8 |
| 4 | Cinnamon rolls (4-pack) | 10 |
Form Responses 1 (four orders; empty cells are skipped questions):
| A: Timestamp | B: Name | C: Cookies qty | D: Banana bread qty | E: Cinnamon rolls qty |
|---|---|---|---|---|
| 11/24/2026 8:10 | Ana | 2 | 1 | |
| 11/24/2026 9:45 | Ben | 3 | 2 | |
| 11/24/2026 12:30 | Cara | 3 | ||
| 11/24/2026 17:05 | Dev | 4 | 2 |
Method 1: prices written into the formula
For a short menu that rarely changes, put the prices straight into the formula. In B2 of the Totals tab (with =ARRAYFORMULA('Form Responses 1'!B2:B) in A2 to copy the names across):
=ARRAYFORMULA(IF('Form Responses 1'!A2:A="", , IFERROR('Form Responses 1'!C2:C*1, 0)*6 + IFERROR('Form Responses 1'!D2:D*1, 0)*8 + IFERROR('Form Responses 1'!E2:E*1, 0)*10))
The *1 turns a number stored as text into a real number, a blank into 0, and anything unreadable into an error that IFERROR replaces with 0. It's the column version of the N() trick in our order form guide, which works on one cell at a time.
Method 2: a price list with SUMPRODUCT
When prices change, or the menu is long, keep them on the Prices tab and let the formula read them. For each order, the total is the sum of quantity times price across the items, which is exactly what SUMPRODUCT calculates. BYROW runs it once per response row:
=BYROW('Form Responses 1'!C2:E, LAMBDA(qty, IF(COUNTA(qty)=0, , SUMPRODUCT(IFERROR(qty*1, 0), TRANSPOSE(Prices!B2:B4)))))
Each qty is one response's three quantities as a row; TRANSPOSE turns the price column into a matching row so SUMPRODUCT can pair them up. Rows with no quantities stay blank. When you add an item, add its quantity column to the range (C2:F) and its price to the list (B2:B5), in the same order. Change a price on the Prices tab and every total updates, including past orders, so freeze old totals (copy, then Paste special, Values only) before changing prices mid-sale.
The result, checked by hand
| Name | Calculation | Order total |
|---|---|---|
| Ana | 2 × 6 + 0 × 8 + 1 × 10 | 22 |
| Ben | 3 × 6 + 2 × 8 + 0 × 10 | 34 |
| Cara | 0 × 6 + 3 × 8 + 0 × 10 | 24 |
| Dev | 4 × 6 + 0 × 8 + 2 × 10 | 44 |
Both methods return the same four totals. If yours don't match on a test response, the usual culprits are a quantity column in a different order than the price list, or a price list range that's one row short.
Production totals and revenue
On a Summary tab, list the items in A2:A4 and total each quantity column in B (B2 shown; use D and E for the next two items):
=SUM(ARRAYFORMULA(IFERROR('Form Responses 1'!C2:C*1, 0)))
Look up each item's price in C2 with =XLOOKUP(A2, Prices!A2:A4, Prices!B2:B4) and fill it down to C4 (this tab doesn't receive responses, so filling down is fine here). Total revenue is then one SUMPRODUCT:
=SUMPRODUCT(B2:B4, C2:C4)
In the example: 9 dozen cookies, 5 banana breads and 3 packs of rolls, so 9 × 6 + 5 × 8 + 3 × 10 = 124, which matches the sum of the four order totals (22 + 34 + 24 + 44). Running that cross-check once is a quick way to catch a misaligned column.
When the item is chosen in a dropdown: VLOOKUP the price
Some forms ask "Which shirt?" in one dropdown and "How many?" in another. Then the price depends on the text of the answer. With the shirt in column C, the quantity in D, and a price list of the exact option texts in Prices!A2:B4 (for example Youth 12, Adult 15, Adult 2XL 18):
=ARRAYFORMULA(IF('Form Responses 1'!A2:A="", , IFERROR(VLOOKUP('Form Responses 1'!C2:C, Prices!A2:B4, 2, FALSE), 0) * IFERROR('Form Responses 1'!D2:D*1, 0)))
Two Youth shirts come to 24; one Adult 2XL to 18. The FALSE asks for an exact match, so the price list must spell each option exactly as the form does. XLOOKUP is the newer lookup and works well in single cells, as on the Summary tab; for a whole column of responses, VLOOKUP inside ARRAYFORMULA is the dependable choice. Our t-shirt order form guide covers sizes and colors as separate questions.
When items are checkboxes without quantities
If customers tick items in one Checkboxes question ("Chocolate chip cookies, $6/dozen" and so on), all their picks land in one cell, separated by commas. The total is the sum of the prices of every item named in that cell:
=MAP('Form Responses 1'!C2:C, LAMBDA(picks, IF(picks="", , SUMPRODUCT(ISNUMBER(SEARCH(Prices!A2:A4, picks)) * Prices!B2:B4))))
For each response, SEARCH checks whether each item name on the Prices tab appears in the cell, and SUMPRODUCT adds up the prices of the ones that do. A response with cookies and rolls comes to 6 + 10 = 16; all three items come to 24. The Prices tab names only need to be contained in the option text, so "Chocolate chip cookies" matches the option "Chocolate chip cookies, $6/dozen". Avoid item names that are part of another name ("Bread" and "Banana bread"), or one tick counts twice.
When the price is only in the option text
If every option already ends with its price ("Large pizza, $14"), you can skip the price list and pull the number out of the answer itself:
=ARRAYFORMULA(IF('Form Responses 1'!C2:C="", , IFERROR(VALUE(REGEXEXTRACT('Form Responses 1'!C2:C, "\$([0-9]+(?:\.[0-9]{2})?)")), 0)))
That returns 14 for "Large pizza, $14" and 9.5 for "Salad, $9.50". It suits single-choice questions; for checkboxes with several prices in one cell, use the MAP version above.
Tax, shipping and minimums
Add them to the order total's column on the Totals tab. With order totals in B, tax in C as =ARRAYFORMULA(IF(B2:B="", , ROUND(B2:B*0.07, 2))) uses an example rate of 7%, and a flat delivery fee for delivery orders is one more IF on the delivery question. Tax rules depend on your state and what you sell; this is general information, not tax advice.
Survey and questionnaire scores: turning text answers into numbers
A wellbeing check, a readiness assessment or a customer effort score usually adds up answers like "Strongly agree." Quiz mode can't do it, because every option needs its own value. The Sheet can. For rank-order questions, which need average rank or a Borda count rather than a sum, see how to make a ranking question in Google Forms.
If you control the form, the easiest fix is to ask with a linear scale, which stores plain numbers. When the answers are labels, map them with a lookup table. Add a tab called Scale:
| A: Answer | B: Points | |
|---|---|---|
| 2 | Strongly disagree | 1 |
| 3 | Disagree | 2 |
| 4 | Neutral | 3 |
| 5 | Agree | 4 |
| 6 | Strongly agree | 5 |
Take an illustrative three-statement questionnaire in columns B, C and D of the response tab: "I have the tools I need," "I know what is expected of me," and "I often feel overloaded." The third is negatively worded, so agreeing with it should lower the score; that's a reverse-scored item. On a Scores tab, convert each column with its own formula, B2 for the first statement:
=ARRAYFORMULA(IF('Form Responses 1'!B2:B="", , VLOOKUP('Form Responses 1'!B2:B, Scale!$A$2:$B$6, 2, FALSE)))
C2 is the same with C2:C. For the reverse-scored statement in D2, subtract from 6 (the top of the scale plus one), so 5 becomes 1 and 1 becomes 5:
=ARRAYFORMULA(IF('Form Responses 1'!D2:D="", , 6 - VLOOKUP('Form Responses 1'!D2:D, Scale!$A$2:$B$6, 2, FALSE)))
The total score per respondent goes in E2:
=ARRAYFORMULA(IF('Form Responses 1'!A2:A="", , B2:B + C2:C + D2:D))
| Respondent | Tools | Expectations | Overloaded (reversed) | Score (out of 15) |
|---|---|---|---|---|
| 1 | Agree = 4 | Strongly agree = 5 | Disagree = 2, so 6 − 2 = 4 | 13 |
| 2 | Neutral = 3 | Agree = 4 | Agree = 4, so 6 − 4 = 2 | 9 |
| 3 | Strongly agree = 5 | Strongly agree = 5 | Strongly disagree = 1, so 6 − 1 = 5 | 15 |
Make every scored question required, or a skipped answer silently counts as 0 and lowers the total. If you rename an option in the form partway through, older rows keep the old wording, and VLOOKUP returns #N/A for them; add the old wording to the Scale tab as a second row with the same points. For a handful of labels, SWITCH does the same job without a lookup tab, but the table is easier to check and to reuse across questions. For averages, counts and pivot tables built on top of these scores, see our guide to analyzing Google Forms data in Sheets.
Getting the total back to the respondent
Since the form can't display a computed number before Submit, plan what people see instead:
- Before submitting: put unit prices in the question or option text and the rules in the form description ("Total is due at pickup; we'll text you the amount"). People can add up three prices themselves, and nobody is surprised later.
- Quiz score: set Release grades to Immediately after each submission so respondents can see their score as soon as they submit.
- Order total or survey score: send it after submission. An Apps Script with an installable form-submit trigger can read the new row and email the total; our Apps Script guide for Google Forms shows the trigger setup, and the Zapier integration can do the same without code. A response receipt from Forms (see sending respondents a copy of their response) contains their answers, not your calculated total.
If people must see and approve a price before they commit, and they pay online, Google Forms isn't the right tool for the checkout step; our guide to payments and donations with Google Forms covers the workarounds.
Troubleshooting totals
- The formula shows
#REF!with "Array result was not expanded." Something is typed in a cell below or beside the array formula. Clear it; the formula needs the whole column. - Totals are 0 or too low. The quantities are probably text: check with
=ISNUMBER()on one cell. The*1conversion in the formulas above fixes it. For a survey score, look for a skipped question. #N/Afrom VLOOKUP. The answer text doesn't exactly match a row of the lookup table: an edited option, a trailing space, a curly apostrophe. Copy the text straight from a response cell into the lookup table.- A new question broke the totals. Formulas that use column letters keep pointing at the same columns, and new questions go after the existing ones, so totals usually survive. If you deleted and re-added a quantity question, its data now sits in a new column: update the range.
- Totals show up on empty rows as 0. The
IF('Form Responses 1'!A2:A="", , ...)wrapper is missing. - Old totals changed. You edited a price on the Prices tab; every past order recalculates. Freeze finished orders as values first.
FormMaker creates the form side of this in your own Google account, from templates such as the order form and the assessment template, on every plan; paid plans add an AI quiz maker that drafts questions with answer keys and points. The totals still live in your linked Sheet, exactly as described above.
Frequently asked questions
Can Google Forms calculate a total?
Only one kind: in quiz mode, Forms adds up the points for each response automatically. Anything else, such as an order total or a weighted survey score, is calculated in the linked Google Sheet after the response is submitted.
Can respondents see a calculated total before they submit?
No. Google Forms has no calculation question type, and Apps Script can't change the form while someone is filling it in: Google's documentation says the open trigger doesn't run when responding to a form. Show unit prices in the question text, and send the total afterward if people need it.
Why do my formulas disappear or stop at the last row in the Form Responses sheet?
Forms adds each new response as a new row in that tab, so formulas you copied down in advance don't carry into the new rows, and a new question can add a column where your formula column was. Put calculations on a second tab and use one ARRAYFORMULA in row 2 with open-ended ranges like C2:C.
How do I make a formula apply to every new Google Forms response automatically?
Put one ARRAYFORMULA in row 2 of a separate tab, point it at open-ended ranges such as 'Form Responses 1'!C2:C, and wrap it in IF('Form Responses 1'!A2:A="", , ...) so empty rows stay blank. Each new response is calculated as soon as it arrives, with nothing to drag down.
How do I turn answers like "Agree" into numbers in Google Sheets?
Make a small lookup table that maps each answer label to a number, then convert the response column with VLOOKUP inside ARRAYFORMULA on a separate tab. Reverse-scored questions use 6 minus the looked-up value on a 1-to-5 scale.
How do I get the number out of the Score column of a Google Forms quiz?
The Score column shows the points earned and the points possible separated by a slash, so extract the first number with REGEXEXTRACT and VALUE, for example =ARRAYFORMULA(IF(B2:B="", , VALUE(REGEXEXTRACT(TO_TEXT(B2:B), "^\s*([0-9.]+)")))) if the scores are in column B.
Can Google Forms add sales tax or shipping to an order?
Not in the form. Add tax or shipping in the Sheet formula that calculates the order total, and tell customers in the form description how the final amount is worked out. Tax rules depend on your state and what you sell; this is general information, not tax advice.