Sum of Squares Calculator
Sum the squares up to n².
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The sum of the first n perfect squares, 1² + 2² + 3² + … + n², has a closed-form shortcut known since antiquity: n(n+1)(2n+1) ÷ 6, which gives the exact total without adding every term one by one. It is one of the classic results proved by mathematical induction in introductory algebra and number theory courses, alongside the simpler sum-of-first-n-integers formula.
Beyond being a standard proof exercise, this closed form appears in statistics as part of deriving variance and sum-of-squared-deviations formulas, in physics when summing discrete quantized energy levels, and in computer science as a textbook example for analyzing algorithm time complexity, since a nested loop that runs n² operations per outer iteration accumulates a total step count following exactly this formula.
Enter a value for n and this calculator returns the sum of squares from 1² through n².
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)