Navigation

HomeImage ToolsCode ToolsMath ToolsDate ToolsGeneratorsUtilities
Color ToolsText ToolsPDF Tools

Generate Sequence of Squares

Compute perfect square numbers n² for any range of integers.

What are Square Numbers?

Pick a start and end value, and you get every perfect square in between — 1, 4, 9, 16, 25, and so on up to n². Output arrives as a table, plain list, or JSON, whichever your next step wants. And everything runs in your browser. Nothing gets uploaded.

FAQ

What is the largest square that fits in 32 bits?
46340² = 2,147,395,600 (just under 2³¹).

How do I check if a number is a perfect square?
Take the integer square root and verify: floor(√n)² === n.

What patterns exist in square numbers?
Squares always end in 0, 1, 4, 5, 6, or 9. They are never 2, 3, 7, or 8 mod 10.

What is the sum of first n squares?
The formula is n(n+1)(2n+1)/6.

Related Tools