Collatz Conjecture Calculator
- The Collatz rule is simple: if the number is even, halve it; if it is odd, triple it and add 1. Repeating this is conjectured to always reach 1.
- Starting from 27, the hailstone sequence begins 27, 82, 41, 124, 62, 31, ... and reaches 1 after 111 steps.
- The highest value reached on the way is 9,232, and 41 of the steps were odd (3n + 1) steps.
- The total stopping time counts every halving and every tripling; no counterexample to the Collatz conjecture has ever been found, though the conjecture remains unproven.
The Collatz Conjecture Calculator applies one simple rule over and over to a positive integer: if the number is even, halve it; if it is odd, replace it with 3n + 1. The conjecture says that no matter which positive integer you start with, this process eventually reaches 1. The calculator runs those steps for you and shows the sequence, the number of steps it takes, and the highest value reached along the way. The results can be surprising. Starting from 6 takes just 8 steps: 6, 3, 10, 5, 16, 8, 4, 2, 1. Starting from 27 takes 111 steps and climbs as high as 9,232 on the way. Starting from 97 takes 118 steps, even longer than 27, and reaches the same peak of 9,232.
This direct, step-by-step iteration is the accepted standard method for exploring the Collatz conjecture, because the rule itself is the entire definition of the problem. There is no shortcut formula to substitute. The conjecture has been verified by computer for every starting value up to 2^68, yet no proof exists; as Paul Erdos said, mathematics is not ready for such problems. This page therefore shows the formula, the step-by-step workings, worked examples and sources, so you can follow each calculation and check the result yourself rather than taking a number on trust.
Worked examples
The famous 27
Primary result: 111. Full step-by-step working is shown with the result. (27)
| Total stopping time (steps) | 111 |
| Peak value | 9,232 |
| Terms in the sequence | 112 |
| Odd (3n + 1) steps | 41 |
A quick 6
Primary result: 8. Try it with your own numbers in the calculator above. (6)
| Total stopping time (steps) | 8 |
| Peak value | 16 |
| Terms in the sequence | 9 |
| Odd (3n + 1) steps | 2 |
97 - longer than 27
Primary result: 118. Every intermediate value is printed in the worked steps. (97)
| Total stopping time (steps) | 118 |
| Peak value | 9,232 |
| Terms in the sequence | 119 |
| Odd (3n + 1) steps | 43 |
The 3n + 1 problem
The Collatz rule is simple enough to explain to a child. Take any positive integer. If it is even, halve it. If it is odd, replace it with 3n + 1. Then repeat the same two rules on the result, and keep going. The Collatz conjecture says that no matter which positive integer you start with, this process eventually reaches 1. That is the whole claim, and it remains unproven. A collatz calculator simply applies these two steps over and over and shows you the sequence, so you can watch the numbers move without doing the arithmetic by hand.
Because the rule is so short, you might expect the behavior to be easy to predict. It is not. Different starting values produce wildly different journeys. Starting from 6 takes just 8 steps: 6, 3, 10, 5, 16, 8, 4, 2, 1. Starting from 27 takes 111 steps to reach 1 and climbs as high as 9,232 on the way. Starting from 97 takes 118 steps, even longer than 27, and reaches the same peak of 9,232. Two starting numbers that are not far apart in size can take paths of very different lengths, and one can climb far above the other before falling back down.
This is what makes the problem so hard to settle. The process is deterministic: every step follows the same fixed rule, with no randomness anywhere. Yet the sequence of values behaves in a way that looks erratic, rising and falling with no obvious pattern you can write down in advance. A proof would need to show something about every positive integer at once, and the case-by-case evidence, however vast, does not supply that. The conjecture has been verified by computer for every starting value up to 2^68, yet no proof exists. Paul Erdos said mathematics is not ready for such problems.
That gap between checking and proving is the heart of the 3n + 1 problem. Verification up to 2^68 rules out any counterexample below that bound, but it says nothing about the integers above it, and it does not explain why the rule always returns to 1. For anyone exploring the sequence, the practical lesson is to trust the arithmetic to a tool and focus on the patterns: how many steps a number takes, how high it climbs, and how those figures compare across nearby starting values.
Stopping time and peak value
Two numbers describe what happens to a starting value on its way to 1: its total stopping time and its peak value. The total stopping time is simply the number of steps the sequence takes to reach 1 from that starting value. The peak value is the largest number the sequence ever hits along the way. A collatz calculator reports both, so you can see not just how long a run lasts but how high it climbs. The two measures often move in surprising directions: a small starting value can take many steps, and a long run does not always mean a record peak.
The classic example is 27. Starting from 27 takes 111 steps to reach 1, and along the way the sequence climbs as high as 9,232. That is a striking contrast: a two-digit starting value produces a run of more than a hundred steps and a peak thousands of times larger than the number you began with. Anyone who expects the sequence to shrink steadily will find 27 a quick correction.
Now compare 97. Starting from 97 takes 118 steps, even longer than 27, and it reaches the same peak of 9,232. So the longer run does not set a higher record. Two different starting values can share a peak while differing in total stopping time, which is why it helps to track both numbers separately rather than treating one as a stand-in for the other.
Not every starting value is dramatic. Starting from 6 takes just 8 steps: 6, 3, 10, 5, 16, 8, 4, 2, 1. The run is short, the peak is modest, and you can follow the whole path by eye. Small cases like this are useful for checking that you understand the rule before trusting a tool on larger inputs. The rule itself is simple: if the number is even, halve it; if it is odd, replace it with 3n + 1. The conjecture says every positive integer eventually reaches 1.
It is worth remembering that these records are observed, not proved. The conjecture has been verified by computer for every starting value up to 2^68, yet no proof exists. Paul Erdos said mathematics is not ready for such problems. That gap is exactly why a calculator is useful: it lets you explore stopping times and peaks for yourself, while the underlying question of why every sequence reaches 1 remains open.
- 27: 111 steps to reach 1, peak of 9,232
- 97: 118 steps, longer than 27, same peak of 9,232
- 6: 8 steps — 6, 3, 10, 5, 16, 8, 4, 2, 1
Why it is hard to prove
The Collatz rule is easy to state: if the number is even, halve it; if it is odd, replace it with 3n + 1. The conjecture says every positive integer eventually reaches 1. What makes it hard to prove is that the two halves of the rule pull in opposite directions. Halving shrinks a number quickly, but 3n + 1 makes an odd number grow by roughly a factor of three before the next halving can pull it back down. A proof has to account for both behaviors at once, and the sequence keeps switching between them in ways that depend on the exact arithmetic of each number.
Small examples show how unpredictable the path can be. Starting from 6 takes just 8 steps: 6, 3, 10, 5, 16, 8, 4, 2, 1. Starting from 27 takes 111 steps to reach 1 and climbs as high as 9,232 on the way. Starting from 97 takes 118 steps — even longer than 27 — and reaches the same peak of 9,232. Neighboring starting values can produce paths of very different lengths, so there is no simple pattern in step counts that a standard argument could latch onto. A collatz calculator lets you watch this happen for yourself, but watching many trajectories is not the same as proving a statement about all of them.
Computers have pushed the check very far. The conjecture has been verified by computer for every starting value up to 2^68, yet no proof exists. That gap is the heart of the difficulty: a finite check, however large, covers only finitely many numbers, while the conjecture makes a claim about every positive integer. The verified range also offers little guidance, because a proof would need a reason that applies to numbers far beyond anything a machine can test.
Partial results exist, but they stop short of the full claim. Tao's 2019 work established a near-proof for almost all numbers — a statement that holds for the vast majority of starting values in a precise technical sense, without covering every one. Results of this kind are valuable, yet they leave the conjecture itself open. Paul Erdos said mathematics is not ready for such problems, and the mix of halving and growth, the erratic step counts, and the enormous computational verification without a proof all help explain why.
Trying it yourself
The best way to get a feel for the Collatz rule is to run experiments of your own. A collatz calculator makes this quick: type in a starting number, watch the sequence unfold, and compare what happens across different inputs. Start with something small and familiar, like 6. The sequence runs 6, 3, 10, 5, 16, 8, 4, 2, 1 — just 8 steps, with a modest bump to 16 along the way. That short run gives you a baseline for what a "gentle" trajectory looks like before you try anything wilder.
Then try comparing neighbors. Pick a number, run it, and run the numbers on either side of it. Small changes in the starting value can produce very different journeys, and seeing those differences side by side is more instructive than reading about them. As you build intuition, start looking for numbers whose stopping time — the count of steps to reach 1 — beats 27. That is a useful benchmark: starting from 27 takes 111 steps to reach 1 and climbs as high as 9,232 on the way. If you find a starting value with a longer run than that, you have found something genuinely interesting to examine.
The 27 benchmark gets more surprising when you compare it with nearby cases. Starting from 97 takes 118 steps — even longer than 27 — and reaches the same peak of 9,232. Two different starting points, different step counts, identical high point. That coincidence is worth pausing on: it shows that the length of a trajectory and the height it reaches are separate questions, and that a calculator is the easiest way to track both at once.
As you experiment, pay attention to how far the peak can dwarf the start. A starting value of 27 is small enough to write on a napkin, yet its sequence climbs to 9,232 — hundreds of times larger — before coming back down. Watching that happen in the calculator, step by step, is the clearest way to see why these sequences are hard to reason about in the abstract. Try a handful of starting values, note each one's step count and peak, and see which surprises you most.
Keep in mind what your experiments can and cannot show. The conjecture has been verified by computer for every starting value up to 2^68, yet no proof exists — Paul Erdos said mathematics is not ready for such problems. So every run you do adds to a vast body of checked cases, but none of them settles the question. That is part of the appeal: the arithmetic is simple enough for anyone to try, while the underlying problem remains open.
FAQs
What is the Collatz conjecture?
The Collatz conjecture is the claim that repeatedly halving even numbers and replacing odd n with 3n + 1 always reaches 1, whatever positive integer you start from. Simple to state and test by hand, it nevertheless remains unproven in general, which is why it is one of mathematics' most famous open problems.
How many steps does 27 take in the Collatz sequence?
Starting from 27, the Collatz sequence takes 111 steps to reach 1 and reaches a peak of 9,232 along the way. That is famously long for such a small starting number, and it is the usual example people cite when showing how unpredictable the sequence can be.
Has the Collatz conjecture been proved?
No. The conjecture has been checked by computer for all starting values up to 2^68, but a general proof remains one of mathematics' famous open problems. Checking individual starts, however many, does not establish that every positive integer eventually reaches 1, so the question stays open.
What is the stopping time?
The stopping time is the number of steps a starting value needs to reach 1 for the first time. For example, it is 8 for 6, 111 for 27, and 118 for 97. It is a simple way to compare how long different starting values survive before the sequence finally arrives at 1.
Why is 3n + 1 used for odd numbers?
For an odd n, 3n + 1 is always even, so the next step is guaranteed to be a halving. That alternation of growth and halving is what makes the behavior interesting: odd steps push the value up, while the halvings pull it back down, and the balance between them is exactly what the conjecture is about.
What is the highest number in the Collatz sequence for 27?
The highest number reached in the Collatz sequence for 27 is 9,232, which is over 340 times the starting value. That peak occurs during the 111 steps the sequence takes to reach 1, and it helps explain why 27 is the standard example of a small start with surprisingly large excursions.