About the Collatz Calculator
The Collatz conjecture is a famous unsolved puzzle. Pick any whole number: if it is even, halve it; if it is odd, triple it and add one. Repeat. The conjecture says you always end up at 1. This calculator follows any starting number step by step, lists the whole sequence, and tells you how many steps it took and the highest value it reached on the way. Type a whole number to start from and the Collatz sequence appears at once, with a few related figures underneath, and you can copy the result with one tap. The sums run in your browser, so nothing you enter is uploaded.
Updated October 2026
How to use the Collatz Calculator
- 1Enter a whole number to start from.
- 2Pick the units or options from the menus if the Collatz sequence tool offers them.
- 3Read the Collatz sequence in the large result box.
- 4Look at the extra rows for related figures.
- 5Press Copy result to keep the answer.
When you need the Collatz sequence
The sequence is a favourite for classroom exploration, programming practice and recreational maths. Looking at which small numbers take surprisingly long, such as 27, 97 and 871, is a fun way to see how unpredictable simple rules can be.
The numbers rise and fall like hailstones in a cloud, which is why the sequence is also called the hailstone sequence. No one has found a number that does not reach 1, and checks by computer go up to enormous values, but there is no proof.
How the Collatz sequence is worked out
If n is even, the next number is n ÷ 2. If n is odd, the next number is 3 × n + 1. The sequence stops at 1. Starting from 27 takes 111 steps and climbs as high as 9,232 before falling to 1. Starting from 7 gives 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1, which is 16 steps.
Every answer on this page comes from that one rule, so you can check any result by hand with a calculator. The figures shown underneath, such as other units, are conversions of the same answer.
- Handles very large starts
- Shows every step
- Step count and peak value
Mistakes to avoid with Collatz sequence
The calculator uses exact big-number arithmetic, so large starts are fine, but it stops after 100,000 steps to protect your browser. A start of 0 or a negative number is not allowed, and decimals do not apply.
On phone and computer
On a phone, type into the boxes one after another and read the Collatz sequence underneath; Copy result puts it on the clipboard for a message or a note. On a computer the inputs sit on the left and the answer on the right, so you can change one figure and watch the Collatz sequence move. The collatz calculator works the same on both. If you like number puzzles, try Fibonacci Calculator and Number Sequence Calculator for other patterns. Prime Number Calculator and Factorial Calculator explore two more classics.
Features
- The conjecture is unproved
- 27 is a classic example
- Stops at 100,000 steps
- Clear messages when the Collatz sequence inputs make no sense
- Copy the result with one tap
- Private: nothing is uploaded
Frequently asked questions
How do I calculate Collatz sequence?
If n is even, the next number is n ÷ 2. If n is odd, the next number is 3 × n + 1. The sequence stops at 1. Starting from 27 takes 111 steps and climbs as high as 9,232 before falling to 1. Starting from 7 gives 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1, which is 16 steps.
What is the formula for Collatz sequence?
If n is even, the next number is n ÷ 2. If n is odd, the next number is 3 × n + 1. The sequence stops at 1. The collatz calculator applies it exactly and rounds only the displayed answer to six significant figures.
Has the Collatz conjecture been proved?
No. It has been checked for every starting number up to about 2 to the power of 68, but no proof exists.
Which small number takes the most steps?
Below 100, the number 97 takes 118 steps, the most of any start under 100.
Why 3n + 1?
It is the simplest rule that mixes growth and shrinkage. Using 3n − 1 or 5n + 1 gives sequences that behave differently.
Is this collatz calculator free and private?
Yes. It is free, needs no account and runs in your browser, so the numbers you type are not uploaded or stored.