Kaprekar Routine Calculator

Descending − Ascending → 6174

CalculatorsFreeNo Signup
4.9(862 reviews)
All Tools

Loading tool...

About Kaprekar Routine Calculator

A Kaprekar routine calculator applying the Kaprekar mapping: arrange digits descending − ascending. For 4-digit numbers, always reaches 6174 (Kaprekar's constant) within 7 steps. Shows full iteration path and generalizes to other digit counts. Client-side.

Kaprekar Routine Calculator Features

  • Iteration path
  • 6174 constant
  • Step count
  • Any digit count
  • Cycle detection
Kaprekar routine: take any 4-digit number (not all same digit), sort desc − sort asc, repeat. Always reaches 6174 in ≤ 7 steps! Example: 3524→5432−2345=3087→8730−0378=8352→8532−2358=6174. For 3 digits: reaches 495. For 2: cycle.

How to Use

Enter number:

  • Steps: Full iteration
  • Constant: Fixed point
  • Cycle: For non-converging cases

Kaprekar Constants

2 digits: cycle 9→81→63→27→45→9. 3 digits: 495. 4 digits: 6174. 5 digits: no single constant (three cycles). 6 digits: 549945, 631764. The behavior depends on digit count.

Why 6174?

D.R. Kaprekar discovered in 1949 that 6174 is a fixed point: 7641−1467=6174. It can be proven by exhaustive analysis of all 4-digit numbers that all paths lead to 6174 within 7 steps.

Step-by-Step Instructions

  1. 1Enter number.
  2. 2Watch iteration.
  3. 3Count steps.
  4. 4Reach constant.
  5. 5Try other sizes.

Kaprekar Routine Calculator — Frequently Asked Questions

Why does it always reach 6174?+

For 4-digit numbers with not-all-same digits: there are only finitely many possible values after step 1 (all are multiples of 9 with specific digit properties). Tracing all paths shows they converge to 6174. Maximum 7 iterations needed.

What happens with 5+ digit numbers?+

5 digits: no single fixed point. Instead, numbers enter one of three cycles. 6 digits: two fixed points (549945, 631764). The pattern gets complex for larger digit counts — multiple fixed points and cycles coexist.

Who was Kaprekar?+

D.R. Kaprekar (1905-1986) was an Indian recreational mathematician from Devlali. Self-taught, he discovered several number properties including Kaprekar numbers, the Kaprekar routine, and Kaprekar constants. His work was initially dismissed but later recognized internationally.

Share this tool: