Collatz Sequence Calculator

Follow the 3n + 1 sequence from any start number and see its steps, peak and path.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Collatz Sequence Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Collatz Sequence Calculator does

    Follow the 3n + 1 sequence from any start number and see its steps, peak and path.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter a positive whole number of up to 30 digits. The calculator applies the rule (halve if even, 3n + 1 if odd) until it reaches 1 and gives the number of steps, the highest value reached and the whole path.

The conjecture

Every start number is believed to reach 1, but this has never been proved. It has been checked for every number up to about 2⁷¹.

Example

Starting at 27 takes 111 steps and climbs to 9,232 before falling to 1, a famous long path for such a small start. Whole numbers of any size are accepted (exact big-integer arithmetic).

Worked example

27 reaches 1 after 111 steps with a peak of 9,232.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Is the conjecture proved?

No, it is still open.

What is a step?

One application of the halve or 3n + 1 rule.

Can I enter very large numbers?

Up to 30 digits; only the first 60 terms are listed.

What does 1 lead to?

1 → 4 → 2 → 1, the loop that ends the sequence.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages