Number Theory
Basic

Square Number

The nth perfect square.

Formula

Sn=n2S_n = n^2

Live Calculator

Members

Variables

nIndex

Example

S_5 = 25

How it works

This formula says that the nth square number is found by multiplying n by itself, so the sequence goes 1, 4, 9, 16, 25, and so on. It works because a square number represents the area of a square with side length n: if each side has n unit lengths, the total number of unit squares inside is n × n = n^2. In other words, every perfect square comes from pairing equal factors.

When to use it

Use this when you need the value of a perfect square, such as in counting grids, geometry, or identifying square numbers in sequences. It also helps when checking whether a number can be written as an integer times itself.

Worked example, step by step

Find the 8th square number. S_8 = 8^2 S_8 = 8 × 8 S_8 = 64

Common mistakes to avoid

  • Using n + 2 instead of n^2
  • Forgetting that the index n is squared, not doubled
  • Assuming every large number is a square just because it is even

Did You Know?

Every square number is the sum of consecutive odd numbers, a pattern visible in dots forming squares.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026