Calculate the Sum of Squares
Enter the starting value \(A\) and ending value \(B\). The calculator adds \(A^2+(A+1)^2+\cdots+B^2\).
What Is the Sum of Squares?
The sum of squares is the result of adding the squares of consecutive integers. For the first \(n\) positive integers, the expression is:
There is a closed-form formula that calculates the result without having to square and add every individual number:
This formula is one of the standard finite-sum identities used in algebra, number theory, calculus, and discrete mathematics.
Sum of Squares Formula
In sigma notation, the sum of the first \(n\) squares is:
The formula can also be written as:
The three factors in the numerator are \(n\), \(n+1\), and \(2n+1\), followed by division by \(6\).
Sum of Squares From A to B
When the range does not begin at \(1\), use two cumulative sums. First calculate the sum through \(B\), then subtract the sum through \(A-1\).
Substituting the square-sum formula gives:
This allows a complete range to be calculated without manually generating every square.
Examples of Sum of Squares
Example 1: First Five Squares
The first five positive squares are:
Using the formula:
Example 2: Squares From 3 to 6
Example 3: Sum of the First 10 Squares
How to Calculate a Sum of Squares
Suppose you want to calculate:
Calculate the cumulative sum through \(7\):
Then calculate the cumulative sum through \(3\):
Subtract the two:
Therefore:
Sum of Squares and Sigma Notation
Sigma notation provides a compact way to represent the sum of squares:
For a range beginning at \(A\) and ending at \(B\):
The corresponding closed form is:
Important Properties of Square Sums
How to Use the Sum of Squares Calculator
- Enter the starting integer \(A\).
- Enter the ending integer \(B\).
- Make sure that \(A\leq B\).
- Click Calculate Sum.
- Review the total, individual squares, and formula verification.
For example, entering \(A=1\) and \(B=5\) calculates:
Sum of Squares vs. Sum of Cubes
Both are examples of power sums. The main difference is the exponent.
\[ \text{Sum of cubes: } \sum_{k=1}^{n}k^3 = \left(\frac{n(n+1)}{2}\right)^2 \]
For higher powers, the corresponding formulas become progressively more complex. Summe also provides a general Sum of Powers Calculator for power sums.
Related Summe Calculators
Explore more summation, sequence, and mathematical tools on Summe.org.
Frequently Asked Questions
What is the formula for the sum of squares?
The sum of the first \(n\) positive squares is:
What is the sum of squares from A to B?
For non-negative integers \(A\) and \(B\), where \(A\leq B\):
What is the sum of the first 10 squares?
The sum is:
What is the sum of squares from 1 to 100?
Using the formula:
Can I calculate squares in a range?
Yes. Enter the starting and ending integers into the calculator. It calculates every square in the range and gives the total.
What is \(0^2\)?
Zero squared is zero:
Therefore, including zero at the beginning of a square-sum range does not change the total.