What Is Sum in Math? Guide with Examples & Calculator
Learn what sum means in math and how to calculate it. Use our free online sum calculator for quick, accurate results.
Paste a column of numbers or a list of labelled amounts and see the cumulative sum after every row, with a chart, a starting balance and a table you can copy back into Excel.
Paste a column of numbers, or one labelled amount per line, and get the cumulative sum after every row.
A line with words keeps them as its label and uses the number at the end (or start) of the line as the amount. Columns pasted from Excel or Google Sheets work too: the last number in each row is the amount and the other cells become the label. Currency symbols are ignored and (45.00) means −45.00. Press Ctrl+Enter to calculate.
Tip: commas separate values, so 1,000 on a line of plain numbers counts as two numbers (1 and 000). If your list uses commas for thousands, tick the box below.
Everything is calculated in this browser. Your numbers are not uploaded.
A running total, also called a cumulative sum, is the total so far at each point in a list. Instead of one sum at the end, you get a new total after every row: the first value, then the first two added together, then the first three, and so on. The last running total is always the same as the ordinary sum of the list.
For the daily sales 10, 15, 20 and 12, the running totals are 10, 25, 45 and 57. The list of totals is as long as the list of values, which is why a running total sits in a column next to the data it adds up. Bank statements, checkbooks, sales logs, savings trackers and step counters all use one.
Each running total is the previous running total plus the current value. Writing the values as a₁, a₂, …, aₙ and the running totals as S₁, S₂, …, Sₙ:
S₀ = starting balance (0 if there is none)
Sₖ = Sₖ₋₁ + aₖ
Unrolling the formula gives Sₖ = S₀ + a₁ + a₂ + … + aₖ, so each running total is also the starting balance plus the sum of the first k values. In mathematics these are the partial sums of a sequence; the guide to partial sums covers them for series given by a formula. The calculator applies the formula row by row and shows the first steps, so you can check the working.
A running balance is a running total that starts from an opening amount. Take an account that starts at 500 and has these entries; this is the list the Load example button fills in.
| # | Entry | Amount | Running balance |
|---|---|---|---|
| Starting balance | 500.00 | ||
| 1 | Paycheck | 2,400.00 | 2,900.00 |
| 2 | Rent | −1,200.00 | 1,700.00 |
| 3 | Groceries | −185.40 | 1,514.60 |
| 4 | Phone bill | −45.00 | 1,469.60 |
| 5 | Freelance job | 650.00 | 2,119.60 |
| 6 | Car insurance | −132.75 | 1,986.85 |
| 7 | Groceries | −96.20 | 1,890.65 |
To check the result, add all seven amounts: they total 1,390.65, and 500 + 1,390.65 = 1,890.65, the same as the last running balance. The calculator does this check for you and also points out the highest running total (2,900 after the paycheck) and the lowest (1,469.60 after the phone bill), which tells you how close an account came to running low.
The cumulative percent is each running total as a share of the grand total. For monthly sales of 120, 95, 140 and 110, the running totals are 120, 215, 355 and 465, and the cumulative percents are 25.81%, 46.24%, 76.34% and 100%. Halfway through the year you can see how much of the year's total is already in, and sorted from largest to smallest, the same column is the basis of a Pareto chart. Tick Show the cumulative percent to add the column. It is only shown when every amount is zero or positive, because a share of the total has no clear meaning once some rows subtract.
The other optional column, the running average, divides each running total (without the starting balance) by the number of rows so far. For the sales example it is 120, 107.5, about 118.33 and 116.25. The average calculator gives the mean, median and mode of the whole list if you only need the final figure.
With the amounts in B2:B9, there are three common ways:
=SUM($B$2:B2) and fill it down. The first reference is locked with $ signs, so the range grows by one row each time: C3 becomes =SUM($B$2:B3).=B2, in C3 enter =C2+B3, and fill C3 down. This is the Sₖ = Sₖ₋₁ + aₖ formula. For a starting balance, put it in C1 and use =C1+B2 in C2 instead.=SCAN(0, B2:B9, LAMBDA(total, x, total + x)) spills every running total at once. Replace the 0 with a starting balance if you have one.If you do not want to build the formula, copy the column from the spreadsheet, paste it into the calculator above, then press Copy column and paste the running totals back into the next column. They come out one per line in the same order, so they line up with your rows. For other spreadsheet totals, the guide on how to calculate sums in Excel covers SUM, AutoSum and SUMIF.
Use the sum calculator when you only need the final total of a list, with its count and average. Use a running total when the order matters and you want to see the total build up: balances over time, progress toward a goal, or the row where a budget went over a limit. Use the sum of series calculator when the values follow a rule, such as an arithmetic or geometric series, and you want the sum of the first n terms from a formula rather than from a pasted list.
Put one entry per line, or separate plain numbers with commas, spaces or semicolons. A line that contains words keeps them as its label and uses the number at the end of the line as the amount, so Rent -1200 and Jan 5: 450 both work; if the end of the line is not a number, the number at the start is used, as in 120 groceries. Rows pasted from Excel or Google Sheets keep their cells: the last number in each row is the amount and the other cells, such as a date and a description, become the label. A first line with no numbers, such as Date, Amount, is treated as a header and skipped.
Currency symbols ($, €, £, ¥, ₹) are ignored, a value in brackets such as (45.00) is read as −45.00, and numbers with thousands separators such as 1,234.56 are read correctly on labelled lines and pasted spreadsheet rows. On lines of plain numbers, commas separate values unless you tick the thousands option. Totals are added in exact decimal, so 0.1 + 0.2 gives 0.3 and money amounts never pick up rounding noise. The table shows the first 2,000 rows; Copy column, Copy table and the CSV download include every row.
The calculation runs in your browser and your list is not uploaded. The last list and starting balance you calculate are kept in this browser, so they are still there when you come back; press Clear to remove them.
Yes. Running total, cumulative sum, cumulative total and running sum all mean the total so far after each value in a list. In mathematics the same numbers are called the partial sums of a sequence.
Yes. A negative amount, such as a payment or a refund, lowers the running total, so a balance can fall below zero. The calculator shows negative amounts and negative totals in red and reports the lowest running total and the row where it happened.
Type it in the Starting balance box. The first running total is then the starting balance plus the first amount, and the last one is your ending balance. Leave the box empty to start from 0.
Press Copy column to copy the running totals one per line, click the first cell next to your data and paste. Copy table copies the whole table with tabs between columns, which pastes into separate cells, and CSV downloads the same table as a file.
Not in one pass. The calculator keeps one running total for the whole list in the order you paste it. For a separate total per category, paste each category's rows on their own, or in a spreadsheet use =SUMIF($A$2:A2, A2, $B$2:B2) filled down.
It changes every running total except the last one. The final total is the same in any order, but the totals along the way, the highest and the lowest depend on the order, so paste the rows in date or entry order.
Go from a running total to a single sum, a matching set of amounts, an average or a series sum.
Find which of up to 20 amounts add up to a target. Each line is used once, with exact decimal matching.
Use CalculatorCalculate the mean (average) of multiple numbers with detailed steps.
Use CalculatorCount how many numbers are in a list, with positive, negative, even, odd, and duplicate breakdowns.
Use CalculatorCalculate arithmetic, geometric, harmonic and custom mathematical series.
Use CalculatorFind Σx² and the sum of squared deviations Σ(x − x̄)² of a list, with the mean and working.
Use CalculatorKeeps the words on each line as labels and starts from any opening balance, so a bank or budget list reads like a ledger.
Copy column gives one running total per line in your original order, ready to paste next to your data.
Adds money amounts in exact decimal, so 0.1 + 0.2 is 0.3 and no total carries rounding noise.