Collatz Sequence Calculator
Enter a positive integer to see its full Collatz sequence, step count, and peak value.
Starting Number
Quick examples
Steps
—
Peak Value
—
Peak at Step
—
Enter a number and click Generate
The full Collatz sequence will appear here
Sequence
Copied!
Summary
Enter a positive integer to see its full Collatz sequence, step count, and peak value.
How it works
- Enter any positive integer in the input field.
- The tool applies the Collatz rule: if the number is even, divide by 2; if odd, multiply by 3 and add 1.
- Each result becomes the next input until the value reaches 1.
- The full sequence is displayed step-by-step with the total number of steps and the peak (maximum) value reached.
Use cases
- Explore the unsolved Collatz conjecture for specific numbers.
- Compare how many steps different numbers take to reach 1.
- Find the peak value a sequence hits before descending to 1.
- Visualize the hailstone behavior of integers for math class or research.
- Test whether large numbers eventually reach 1 (they all do, so far).
Frequently Asked Questions
Last updated: 2026-06-13 ·
Reviewed by Nham Vu