MATHEMATICS & NUMBERS · FREE ONLINE TOOL

Collatz Conjecture Calculator

Explore the Collatz sequence for a positive integer and count the steps until it reaches 1.

Use the calculator

Formula and methodology

Starting from a positive integer n, divide by 2 when n is even; otherwise calculate 3n + 1. Repeat the rule and record the number of steps to reach 1.

How to use this calculator

  1. Enter the values in the fields shown above.
  2. Check the order, sign and number of terms before calculating.
  3. Select Calculate to see the results and intermediate values.

Worked example

Starting at 6 gives 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1, which takes 8 steps.

Assumptions and limitations

This is an educational mathematics tool. It uses the formula and input limits shown on this page. Results are computed in your browser and should be checked independently for formal coursework or specialist applications.

Updated: 17 November 2026. Inputs are processed in your browser.

Frequently asked questions

What does this calculator show?

Explore the Collatz sequence for a positive integer and count the steps until it reaches 1.

Are my inputs uploaded?

The calculation runs locally in your browser. Form values are not submitted to Friendly Calculator by this tool.

Can I use the result for academic work?

Yes, as a learning aid. Review the displayed method and confirm that it matches the convention required by your course or application.