Galileo’s Paradox Calculator

Quick answer

The Galileo's paradox calculator counts the natural numbers and the perfect squares in a range, showing that squares become ever rarer, even though there are "as many" squares as natural numbers.

Natural numbers in the range
100
Perfect squares in the range
10
Share of squares
10% of the numbers are perfect squares
The squares
1, 4, 9, 16, 25, 36, 49, 64, 81, 100

Galileo noticed in 1638 that every natural number has a square, so there are as many squares as numbers, yet most numbers are not squares. The resolution came with Cantor: infinite sets can be put in one-to-one correspondence with proper subsets of themselves.

How to use the Galileo’s Paradox Calculator

  1. From
  2. To

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Enter the range of natural numbers. The calculator counts how many there are, how many are perfect squares and lists the squares.

Formula

Squares between a and b: ⌊√b⌋ − ⌈√a⌉ + 1; share ≈ 1/√n up to n

Worked example

Inputs: From: 1; To: 100.
Results: Natural numbers in the range = 100; Perfect squares in the range = 10; Share of squares = 10% of the numbers are perfect squares; The squares = 1, 4, 9, 16, 25, 36, 49, 64, 81, 100.

Key terms

Bijection
A one-to-one correspondence.

Frequently asked questions

What is Galileo's paradox?

Squares are a "small" part of the numbers, yet they can be paired one-to-one with all of them.

How was it resolved?

Cantor defined infinite sets of equal size by one-to-one correspondence.

Are squares rare?

Up to n there are only about √n of them.

What is a Dedekind-infinite set?

One that is the same size as one of its proper subsets.

Sources

  1. Wolfram MathWorld: Galileo's paradox

Cite this calculator

Speedy Calculator. (2026). Galileo’s Paradox Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/galileos-paradox-of-infinity/