Skip to content
CalculatorAtlas

Sum of Series Calculator

Tested

Sum of the first n integers, squares and cubes.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

For the first n integers, Σk = n(n + 1) ÷ 2, Σk² = n(n + 1)(2n + 1) ÷ 6 and Σk³ = (n(n + 1) ÷ 2)². For n = 10 the sums are 55, 385 and 3,025.

Enter n. The calculator returns the sum of the integers, their squares and their cubes up to n. Use this sum of series calculator to check your own figures.

Related tools: Slope Calculator: Slope, angle, distance and line equation through two points. LCM Calculator: Least common multiple of two or more numbers. Factor Calculator: List every factor of a positive whole number.

How to use the Sum of Series Calculator

  1. Enter n (a whole number, between 1 and 1000000).
  2. Press Calculate to see the result, and use Reset to start again.
Inputs of the Sum of Series Calculator
InputWhat to enterAllowed values
nA whole number≥ 1, ≤ 1000000

Formula and method

Formula

Σk = n(n+1)/2; Σk² = n(n+1)(2n+1)/6; Σk³ = (n(n+1)/2)²

IEEE-754 double precision; shown to at most 6 decimal places.

Faulhaber closed forms evaluated exactly with BigInt.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: n = 10.

Results of example 1
ResultValue
Sum of integers 1…n55
Sum of squares385
Sum of cubes3,025

Example 2

Inputs: n = 100.

Results of example 2
ResultValue
Sum of integers 1…n5,050
Sum of squares338,350
Sum of cubes25,502,500

The first line is the headline result (sum of integers 1…n). Below it the sum of Series Calculator lists sum of squares and sum of cubes, which describe the same case from other angles. IEEE-754 double precision; shown to at most 6 decimal places.

Gauss's trick

Pair 1 with 10, 2 with 9, and so on: five pairs of 11 give 55. Notice also that the sum of cubes, 3,025, equals the square of the sum, 55².

Range

n can run from 1 to 1,000,000. Sums of squares appear in variance formulas and pyramids of stacked spheres. For n = 100 the sum of integers is 5,050.

How the result changes with n

Holding every other input at the first worked example, this table changes only n. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.

How the result changes with n
nSum of integers 1…nSum of squaresSum of cubes
51555225
10553853,025
202102,87044,100
4082022,140672,400

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • n: entering "0" shows "n must be at least 1." beside that field and no result.

Choosing between the Sum of Series Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Sum of Series Calculator and similar calculators
CalculatorYou enterIt returns
[Slope Calculator](/math/slope-calculator/)x₁, y₁ and x₂Slope
[LCM Calculator](/math/lcm-calculator/)numbersLeast common multiple
[Factor Calculator](/math/factor-calculator/)numberFactors
[Quadratic Formula Calculator](/math/quadratic-formula-calculator/)a, b and cRoots
[Log Calculator](/math/log-calculator/)number x and base blog base 2 of 8

Background: algebra

Many algebra calculators rest on the same ideas: write the problem in a standard form, identify the coefficients, apply the formula and check the answer by substituting it back. For a quadratic ax² + bx + c = 0 the roots are (−b ± √(b² − 4ac)) ÷ 2a, and the discriminant b² − 4ac decides the kind of roots: positive gives two real roots, zero gives one repeated root and negative gives two complex conjugate roots.

If a = 0 the equation is linear, not quadratic. A sign slip on the −b term shifts both roots by the same amount, so substitute your roots back to check.

Assumptions and limitations

  • n from 1 to 1,000,000

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for n to confirm this.

Frequently asked questions

What is the sum of 1 to 100?

The sum 1 + … + 100 is 100 × 101 ÷ 2 = 5,050.

What is the sum of squares to 5?

1 + 4 + 9 + 16 + 25 = 55, which matches 5 × 6 × 11 ÷ 6.

Who found the formula?

Gauss is credited with the trick as a child.

What does the Sum of Series Calculator calculate?

Sum of the first n integers, squares and cubes. It returns Sum of integers 1…n, Sum of squares and Sum of cubes.

What formula does the Sum of Series Calculator use?

Σk = n(n+1)/2; Σk² = n(n+1)(2n+1)/6; Σk³ = (n(n+1)/2)². Faulhaber closed forms evaluated exactly with BigInt.

What do I need to enter in the sum of Series Calculator?

You enter n.

How is the result rounded or limited?

IEEE-754 double precision; shown to at most 6 decimal places. n from 1 to 1,000,000.

What is an example of a sum of Series result?

With n 10, the sum of integers 1…n is 55.

Sources

  • OpenStax, Algebra and Trigonometry 2e (Rice University): exponents, radicals, logarithms and inverse trigonometric functions

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.