Cumulative Sum Calculator

Running totals, cumulative percentages, Pareto charts and running averages of a list.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter your data

Enter your values below to get started.

Examples:
Calculation
Separate with commas, spaces or new lines. Paste a spreadsheet column.
1 label per value, separated by commas or new lines.
An opening balance added before the first value.
Reset restores the default values.

Tips for this calculator

The last cumulative sum always equals the total of the list.

Choose Pareto to sort from largest to smallest and find the categories that make up 80%.

Negative values make the running total go down, as with withdrawals.

Subtract 2 cumulative sums to get the total of any stretch: xi + … + xj = Sj − Si−1.

A cumulative sum calculator adds a list of numbers one at a time and shows the running total after each value. Paste your data to get every cumulative sum, the cumulative percentage, a Pareto (80/20) ranking, sums from the end of the list or a running average, with a table and a chart that draws the values and the running total together.

What Is a Cumulative Sum?

A cumulative sum is the running total of a sequence: each term is the sum of all values up to that point. The cumulative sums of 1, 2, 3, 4 and 5 are 1, 3, 6, 10 and 15.

Sk=x1+x2+⋯+xk=∑i=1kxiS_k = x_1 + x_2 + \cdots + x_k = \sum_{i=1}^{k} x_i

A cumulative sum is called a running total in accounting, a prefix sum in computer science and a cumulative frequency in statistics. Monthly sales of 120, 95, 140, 110, 130 and 160 have running totals of 120, 215, 355, 465, 595 and 755.

InteractiveAdd 1 month at a time to the running total

How Does the Cumulative Sum Calculator Work?

The cumulative sum calculator keeps 1 running total, adds each value to the previous total and records the result. The calculator then divides each total by the grand total for the cumulative percentage and by the count for the running average.

InteractiveEdit the values: each sum reuses the previous one
  1. Read the values

    Numbers in order, with optional labels and a starting value.

  2. Add step by step

    S1 = x1, then Sk = Sk−1 + xk: 120, 120 + 95 = 215, 215 + 140 = 355 …

  3. Convert to %

    Cumulative % = Sk ÷ total × 100. March: 355 ÷ 755 = 47.02%.

  4. Chart it

    Bars show each value; the line shows the running total climbing to 755.

Cumulative Sum Formula

The cumulative sum formula is Sk = Sk−1 + xk, with S0 = 0 (or a starting balance). 3 related formulas give the cumulative percentage, the running average and the original values back.

Recursive Formula

S0=0,Sk=Sk−1+xkS_0 = 0,\qquad S_k = S_{k-1} + x_k

Cumulative Percentage Formula

Pk=SkSn×100%P_k = \frac{S_k}{S_n} \times 100\%

Running Average Formula

xˉk=Skk\bar x_k = \frac{S_k}{k}

Recovering the Values (Differences)

xk=Sk−Sk−1x_k = S_k - S_{k-1}

Differencing undoes a cumulative sum, the discrete version of the fundamental theorem of calculus.

InteractiveCumulative sum and its inverse, the difference

Types of Cumulative Sums

There are 4 common types of cumulative sums: the running total, the cumulative percentage, the running average and the reverse cumulative sum. All 4 come from the same running total, read in a different way.

Interactive1 data set, 4 kinds of cumulative sum

Running total

Sk = x1 + … + xk. Year-to-date (YTD) sales and account balances.

Cumulative percentage

Sk ÷ total. Pareto charts and cumulative frequency (ogive) curves.

Running average

Sk ÷ k. Batting averages and moving performance during a season.

Reverse cumulative sum

xk + … + xn. Remaining work, "more than" frequencies and survival counts.

How to Calculate a Cumulative Sum by Hand

To calculate a cumulative sum by hand, write the first value, then add each new value to the total above it. Here are the cumulative sums of 2, 5, 3, 8 and 1.

  1. S1 = 2.
  2. S2 = 2 + 5 = 7.
  3. S3 = 7 + 3 = 10.
  4. S4 = 10 + 8 = 18.
  5. S5 = 18 + 1 = 19, the total of the list.
InteractiveStep through 3 cumulative sums

    Cumulative Percentage and the Pareto Chart

    A Pareto chart sorts categories from largest to smallest and draws their cumulative percentage, showing which few causes make up most of the total. The 80/20 rule is named after the Italian economist Vilfredo Pareto, and the quality engineer Joseph M. Juran applied the idea to quality problems in manufacturing.

    Defects of 42 scratches, 18 dents, 9 misalignments, 6 cracks and 5 others total 80. The cumulative percentages are 52.5%, 75%, 86.25%, 93.75% and 100%, so the top 3 of 5 types pass 80%.

    InteractiveMove the cut-off: which defects matter most?

    Range Sums from Cumulative Sums

    The sum of any stretch xi … xj equals Sj − Si−1, so 1 subtraction replaces many additions. Programmers store this array as a prefix sum to answer range queries in constant time, O(1).

    ∑k=ijxk=Sj−Si−1\sum_{k=i}^{j} x_k = S_j - S_{i-1}

    For 5, 3, 8, 6, 2, 7, 4, 9, the cumulative sums are 5, 8, 16, 22, 24, 31, 35, 44; the sum of positions 3 to 6 is 31 − 8 = 23.

    InteractivePick a range: S_j − S_(i−1)

    Common Mistakes with Cumulative Sums

    • Sorting before a running total: a running total follows the original order; sort only for a Pareto analysis.
    • Forgetting the starting balance: an account that opens at $1,000 ends at $1,000 plus the sum of transactions.
    • Off-by-one ranges: the sum of positions 3 to 6 is S6 − S2, not S6 − S3.
    • Dividing by the wrong total: cumulative percentages divide by the grand total, not by the current value.
    • Expecting a rising line with negative values: negative entries lower the running total.
    InteractiveTrue or false: cumulative sums
    1. The last cumulative sum equals the total of all values.

    2. The cumulative sums of 1, 2, 3, 4 are 1, 3, 6, 10.

    3. A cumulative sum can never decrease.

    4. The sum of x₃ to x₆ is S₆ − S₃.

    5. A Pareto chart sorts the categories from largest to smallest.

    Score: 0 / 5

    How to Use the Cumulative Sum Calculator

    Paste your values, add labels if you want them on the chart, pick a calculation and press Calculate. The result shows the final total, a table of every cumulative sum and percentage, and a chart.

    InteractiveLoad a ready-made data set

    Each button fills the calculator and runs it.

    1. Paste the values

      Commas, spaces or new lines: 120 95 140.

    2. Add labels

      Optional names such as months or categories.

    3. Choose the calculation

      Running total, Pareto, reverse or running average.

    4. Read the table and chart

      Each row lists the value, cumulative sum, cumulative % and running average.

    Real-Life Applications of Cumulative Sums

    Cumulative sums track progress toward a total over time. There are 5 common applications:

    • Finance: account balances, year-to-date (YTD) revenue and savings toward a goal.
    • Quality control: Pareto charts and the cumulative sum (CUSUM) control chart, introduced by E. S. Page in 1954.
    • Statistics: cumulative frequency tables and ogives give medians and percentiles.
    • Weather and hydrology: cumulative rainfall in millimeters (mm) or inches compared with normal.
    • Computing: prefix sums for fast range queries and image integral tables.
    InteractiveRunning balance toward a savings goal

    Cumulative Sum Examples

    7 common cumulative sum calculations.

    Cumulative Sum Examples
    ValuesTypeCumulative resultCalculator
    1, 2, 3, 4, 5Running total1, 3, 6, 10, 15
    120, 95, 140, 110, 130, 160Running total120, 215, 355, 465, 595, 755
    4, −2, 7, −5, 3Running total4, 2, 9, 4, 7
    $1,000 start: −200, 350, −125, 500Running balance800, 1,150, 1,025, 1,525
    Defects 42, 18, 9, 6, 5Pareto %52.5%, 75%, 86.25%, 93.75%, 100%
    5, 10, 15, 20Reverse50, 45, 35, 20
    10, 20, 30, 40Running average10, 15, 20, 25

    Popular Cumulative Sum Problems

    Try each one, then reveal the answer or solve it in the calculator.

    1. Find the cumulative sums of 2, 5, 3, 8 and 1.

      Show answer2,\ 7,\ 10,\ 18,\ 19
    2. Monthly rainfall is 45, 38, 52, 60, 41 and 29 mm. Find the running total after each month.

      Show answer45,\ 83,\ 135,\ 195,\ 236,\ 265\ \text{mm}
    3. Complaints: Late 120, Wrong item 45, Damaged 20, Billing 10, Other 5. How many causes reach 80% of complaints?

      Show answer2\ \text{causes},\ 82.5\%
    4. An account opens at $500 with transactions +250, −120, −80 and +300. Find each balance.

      Show answer750,\ 630,\ 550,\ 850
    5. Find the reverse cumulative sums (sum from each position to the end) of 3, 6, 9, 12.

      Show answer30,\ 27,\ 21,\ 12
    6. Scores of 80, 90, 70 and 100 arrive in order. Find the running average after each score.

      Show answer80,\ 85,\ 80,\ 85

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a cumulative sum calculator?

    A cumulative sum calculator is an online tool that returns the running total of a list of numbers, 1 value at a time. It gives the cumulative percentage, a Pareto ranking, reverse sums and running averages with a table and chart.

    How do you calculate a cumulative sum?

    Start with the first value, then add each new value to the previous total: S<sub>k</sub> = S<sub>k−1</sub> + x<sub>k</sub>. For 2, 5, 3 the cumulative sums are 2, 7 and 10.

    What is the difference between a sum and a cumulative sum?

    A sum is 1 number, the total of all values, while a cumulative sum is a list of partial totals after each value. The last cumulative sum equals the sum.

    What is a cumulative percentage?

    A cumulative percentage is a running total divided by the grand total and multiplied by 100. For 42, 18, 9, 6 and 5 (total 80), the first cumulative percentage is 52.5%.

    Can a cumulative sum decrease?

    Yes, a cumulative sum decreases whenever the next value is negative, for example a withdrawal from a bank account.

    Is a cumulative sum the same as a running total?

    Yes, a cumulative sum and a running total are the same thing. Programmers call the same list a prefix sum or scan.

    How do you calculate a cumulative sum in Excel?

    Type =SUM($B$2:B2) in the first cell next to your data and fill it down; the fixed start $B$2 makes the range grow 1 row at a time. Google Sheets uses the same formula.

    What is the 80/20 rule in a Pareto chart?

    The 80/20 rule says that about 80% of effects come from about 20% of causes. A Pareto chart sorts causes from largest to smallest and finds where the cumulative percentage crosses 80%.

    How do you get the original numbers back from cumulative sums?

    Subtract each cumulative sum from the next: x<sub>k</sub> = S<sub>k</sub> − S<sub>k−1</sub>. The cumulative sums 3, 4, 8, 9 give back 3, 1, 4, 1.

    Conclusion

    A cumulative sum turns a list into its running totals, and the cumulative sum calculator returns every total, the cumulative percentage, a Pareto ranking, reverse sums and running averages. Remember Sk = Sk−1 + xk and that any stretch of values sums to Sj − Si−1.

    Not sure which calculation to pick? Answer the questions below.

    InteractiveWhich cumulative calculation do you need?