# Galileo’s Paradox Calculator

URL: https://speedycalculator.com/calculators/math/galileos-paradox-of-infinity/
Last updated: 2026-11-08

> 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.

## Inputs

- From
- To

## Results

- Natural numbers in the range
- Perfect squares in the range
- Share of squares
- The squares

## Formula

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

## Explanation

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

- **From**
- **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.

## 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.

## FAQ

**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

- [Wolfram MathWorld: Galileo's paradox](https://mathworld.wolfram.com/GalileosParadox.html)
