Google Sheets Math: How to Do Calculations
In this article
To do math in Google Sheets, type an equals sign (=) into a cell, then enter your calculation using numbers, cell references, and operators. For example, =2+3 returns 5, and =A1*B1 multiplies the values in cells A1 and B1. Press Enter to run the formula. That is the whole core of it; everything else is variations on that pattern.
What You'll Need
- A Google account and access to Google Sheets (sheets.google.com or the Google Sheets app on Android or iPhone).
- A spreadsheet open in edit mode. If you are viewing a shared file, you may need edit permission; otherwise you can still type formulas but cannot save them.
- Basic familiarity with a keyboard: the equals sign, plus, minus, asterisk (for multiplication), and forward slash (for division).
Menu labels and button positions can differ slightly by version, device, and region. The steps below describe the desktop browser version unless noted; the mobile app works the same way for typing formulas, but the on-screen keyboard may hide the equals sign on some layouts, so switch to the symbols keyboard if needed.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open a blank spreadsheet or an existing one. Click the cell where you want the answer to appear.
- Start with an equals sign. Type
=. This tells Sheets that what follows is a formula, not text. If you forget it, Sheets treats your entry as plain text and nothing is calculated. - Enter a simple calculation. Type numbers and operators directly, such as
=10+5or=(4+6)*2. Use parentheses to control the order of operations. Press Enter. The cell shows the result, and the formula bar at the top shows the formula. - Use cell references instead of typed numbers. Click a cell and type
=, then click another cell (for example A1), type an operator such as+, then click a second cell (for example B1). Press Enter. The result updates automatically whenever A1 or B1 changes. This is the main advantage of spreadsheets over a calculator. - Copy a formula down a column. Select the cell with the formula, then drag the small square handle in the bottom-right corner of the cell downward. Sheets adjusts relative references for each row. If you need a reference to stay fixed, use dollar signs, such as
=$B$1*A2. - Use built-in functions for ranges. Functions are named shortcuts. To add a column of numbers, type
=SUM(A1:A10). Other common ones:=AVERAGE(A1:A10),=MIN(A1:A10),=MAX(A1:A10), and=PRODUCT(A1:A3). Type=and start typing a function name to see autocomplete suggestions. - Apply the same math to a whole range at once. Google Sheets does not have a dedicated "fill math" button, but you can enter a formula in the first cell of a column and drag it down, or use
ArrayFormulafor a single formula that spills results:=ArrayFormula(A1:A10*2)doubles every value in that range. - Format the result. Select the cells, then use the toolbar buttons for currency, percent, or decimal places. Formatting changes only how the number looks, not the stored value.
- Check your work. Click a result cell and read the formula bar. Confirm the references point to the cells you intended. A wrong reference is the most common reason a formula gives an unexpected answer.
Common Mistakes
- Forgetting the equals sign. Typing
2+3without=stores the text "2+3" instead of calculating 5. - Using the wrong operator. Multiplication is
*, notxor a dot. Division is/. A comma inside some regional settings may act as a decimal separator, so check how your sheet interprets numbers. - Mixing text and numbers. If a cell contains a number stored as text (often left-aligned), math may ignore it or return an error. Convert it with
VALUE()or retype it as a number. - Broken references after copying. Dragging a formula can shift references you wanted fixed. Add
$signs before the column and row you want locked. - Circular references. A formula that refers to its own cell, directly or through a chain, causes a circular dependency error. Move the formula to a different cell.
- Assuming formatting changes the value. Showing two decimals does not round the stored number; use
ROUND()if the underlying value must be rounded.
Tips
- Press
Ctrl+`(Windows/ChromeOS) orCmd+`(Mac) to toggle showing formulas instead of results, which makes auditing a sheet much faster. - Use named ranges (Data > Named ranges) to make formulas readable, for example
=SUM(Expenses)instead of=SUM(B2:B40). - Wrap formulas in
IFERROR()to replace ugly errors with a blank or a message, such as=IFERROR(A1/B1,""). - Keep raw data on one sheet and calculations on another. It reduces accidental edits and makes formulas easier to trace.
- On mobile, tap the cell, then the formula bar or the
fxarea to type a formula; the on-screen keyboard may need a symbols page for=,*, and/.
Troubleshooting
If a formula shows an error, start with the simplest checks. Click the cell and read the formula bar for typos, missing parentheses, or a stray space. Confirm the referenced cells contain numbers, not text. If you see #DIV/0!, a divisor is zero or blank; guard it with IFERROR. If you see #REF!, a referenced cell or column was deleted. If you see #NAME?, a function name is misspelled or not recognized in your locale. If you see a circular dependency warning, find the formula that refers back to itself and move or rewrite it. If results look wrong but no error appears, check for hidden rows, filtered rows, or cells formatted as text. Reloading the page or reopening the app resolves occasional display glitches; signing out and back in helps if a shared file will not save. None of these steps delete data, but if you are about to clear a range or restore a version, note that version history (File > Version history) can recover earlier states.
Frequently Asked Questions
How do I subtract in Google Sheets?
Use the minus sign: =A1-B1 or =10-4. There is no SUBTRACT function; the operator is the standard way.
Can I do math across multiple sheets?
Yes. Reference the sheet name followed by an exclamation mark, such as =Sheet2!A1+Sheet1!B2. If the sheet name contains spaces, wrap it in single quotes: ='My Sheet'!A1.
Why does my formula show as text instead of a result?
The cell is likely formatted as plain text, or the entry is missing the leading equals sign. Select the cell, check the formula bar, and reformat the cell as Automatic or Number.
How do I calculate a percentage?
Divide one number by the total and format the result as percent, for example =A1/B1 then click the percent button. To take 20% of a value, use =A1*0.2.
Does Google Sheets work offline?
Yes, in the Chrome browser with offline mode enabled for Google Drive, and in the mobile app for files you have made available offline. Formulas calculate normally, and changes sync when you reconnect.
What is the difference between a formula and a function?
A formula is any calculation you type starting with =. A function is a built-in named operation, such as SUM or AVERAGE, that you use inside a formula.