# Kaprekar Constant 6174: The Mysterious Number Explained

*Science & Technology · Priya Nair · 2026-08-04*

## TL;DR

The Kaprekar constant 6174 is a number that emerges when you take any four-digit number, arrange its digits in descending and ascending order, subtract the smaller from the larger, and repeat the process. Within a maximum of seven steps, every eligible four-digit number reaches 6174, and the routine then repeats itself endlessly. D. R. Kaprekar introduced this operation in 1949, and it remains a popular puzzle in recreational mathematics.

## Key facts

- D. R. Kaprekar, an Indian recreational mathematician, first described the constant 6174 in 1949.
- The Kaprekar routine works on any four-digit number that uses at least two different digits, including numbers with leading zeros.
- The process always reaches 6174 in seven or fewer iterations, after which the routine cycles back to 6174 indefinitely.
- The same operation applied to three-digit numbers converges to the related Kaprekar constant 495.
- Numbers like 1111, which use only one repeated digit, do not converge to 6174 because they immediately produce zero.

## A Number That Keeps Showing Up

Some numbers hide secrets in plain sight, and the Kaprekar constant 6174 is one of the slyest of them all. Take any four-digit number with at least two different digits, rearrange its digits to form the largest and smallest possible numbers, subtract the smaller from the larger, and repeat. No matter where you start, you'll always end up at 6174 within seven steps or fewer.

Let's watch it happen with 2005. Arrange those digits from largest to smallest and you get 5200. Flip them around and you get 0025, which is just 25. Subtract: 5200 − 0025 = 5175. Now do it again with 5175: 7551 − 1557 = 5994. Keep going: 9954 − 4599 = 5355, then 5553 − 3555 = 1998, then 9981 − 1899 = 8082, then 8820 − 0288 = 8532, and finally 8532 − 2358 = 6174.

Here's where it gets strange. Run the routine on 6174 itself: 7641 − 1467 = 6174. The number swallows itself whole. It's a fixed point, a mathematical trapdoor that catches every four-digit number with mixed digits and never lets go. Try 1789 and you'll arrive in just three steps: 9871 − 1789 = 8082, then 8820 − 0288 = 8532, then 8532 − 2358 = 6174.

This isn't a coincidence or a one-off trick. Mathematicians have verified that every four-digit number with at least two different digits converges to 6174 in at most seven iterations of the Kaprekar routine. The operation is absurdly simple, yet it herds an entire universe of numbers into a single destination. That's the kind of pattern that makes you wonder what else is hiding inside ordinary arithmetic.

## Why Does Every Four-Digit Number End Up at 6174?

The Kaprekar constant 6174 isn't picky about where you start. Take 1789, for instance. Arrange those digits in descending order to get 9871, then subtract the ascending arrangement 1789, and you land on 8082 in a single move. Repeat the trick: 8820 minus 0288 gives you 8532. One more round, 8532 minus 2358, and there it is: 6174. Three steps, done.

Compare that with 2005, which needed seven rounds to reach the same destination. The starting number changes the journey length, but never the final stop. Any four-digit number with at least two different digits gets pulled into the orbit of 6174 within seven steps at most. That consistency is what makes mathematicians sit up and take notice.

So why does this particular number keep showing up? The reasoning works like this. If a number survives the Kaprekar operation unchanged, the result must simply be a rearrangement of its own digits. With four digits, there are exactly 24 possible arrangements to consider. Work through all of them, and only one valid non-zero solution emerges: a equals 7, b equals 6, c equals 4, and d equals 1. That combination produces 6174, making it the unique non-zero fixed point of the operation for four-digit numbers.

The same logic applies one digit down. For three-digit numbers, the fixed point is 495. Try it with 753: subtract 357 from 753 to get 396. Then 963 minus 369 equals 594. Finally, 954 minus 459 lands on 495, where the process locks in place. Every three-digit number with mixed digits eventually converges there, just as every qualifying four-digit number converges to 6174.

## What Happens with Two, Five, Six, or More Digits?

Three- and four-digit numbers behave beautifully, always landing on a single fixed point. But step outside those tidy lengths and the Kaprekar constant 6174 starts looking less like a universal rule and more like a special case. The pattern simply falls apart.

Two-digit numbers never settle down at all. They slip into a repeating loop: 9→81→63→27→45→9. The cycle itself is real, though the entry point is a bit sloppy. You cannot actually start with a single digit like 9 in a two-digit routine, but if you treat it as 09, the arithmetic works out to 81, and the loop takes over from there. Five-digit numbers behave similarly, with no fixed point anywhere in sight, only cycles that spin forever.

Six digits finally give you somewhere to land, and interestingly, they offer two resting places: 549945 and 631764. Eight digits follow suit with 63317664 and 97508421. Nine digits bring 554999445 and 864197532. Ten digits round things out with 6333176664 and 9753086421. Seven digits, though, are stubborn like five, refusing to offer any fixed point at all.

As the digit count climbs, the possibilities explode. With six or more digits, trying to track every path by hand becomes genuinely impractical. The numbers multiply too quickly for pencil-and-paper chasing, which is why computer calculations became necessary to map out these fixed points in the first place. What looks like a simple subtraction game turns into something only a machine can fully explore.

## Deep Mathematics or a Happy Accident?

Every four-digit number with at least two different digits eventually lands on 6174 when you keep rearranging its digits and subtracting. The question that lingers is whether this convergence points to something profound hidden in number theory, or whether it is simply a delightful quirk of arithmetic.

To see why the question matters, consider a puzzle from Japanese mathematician Yukio Yamamoto. He asked readers to find two five-digit numbers that multiply to 123456789. The puzzle looks stunning because the product's digits run in perfect sequence. It feels like the answer must reveal some deep structural truth about multiplication.

Yet a similarly constructed puzzle with an unremarkable product, say a number with scrambled digits, can be solved using identical methods. The first puzzle only seems more impressive because of how its digits happen to be arranged. The beauty lives in the display, not in the underlying mechanics.

Something similar happens with the Kaprekar constant 6174. In 1949, Indian mathematician Dattatreya Ramachandra Kaprekar noticed that taking any four-digit number with at least two different digits, arranging its digits in descending order to form the largest number, arranging them in ascending order to form the smallest, and subtracting, always leads to 6174 within at most seven steps. The number 6174 is the unique non-zero fixed point of this routine for four-digit numbers.

The process itself is almost childishly simple. Take 2005. The largest arrangement is 5200, the smallest is 0025. Subtract and you get 5175. Repeat: 7551 minus 1557 gives 5994. Keep going and within seven steps you reach 6174. From there, 7641 minus 1467 returns 6174 again. The operation locks in place.

What makes this feel mysterious is that the destination never changes, no matter where you start. Three-digit numbers similarly converge to 495, another unique fixed point. But step beyond four digits and the pattern fractures. Two-digit numbers enter a cycle instead of settling on a single value. Five-digit numbers have no fixed point at all, only cycles. Six-digit numbers have two fixed points: 549945 and 631764. Eight-digit numbers also have two: 63317664 and 97508421. Nine-digit numbers follow suit with 554999445 and 864197532, as do ten-digit numbers with 6333176664 and 9753086421.

The neatness of the four-digit case is striking, but it does not necessarily signal a hidden theorem waiting to be uncovered. The surprise of seeing every suitable number tumble into the same trap is genuine. The visual elegance of 6174, with its digits descending in a clean 6-1-7-4 pattern, adds to the allure. Yet mathematics is full of patterns that look meaningful without concealing a grand secret. The Kaprekar constant 6174 is surprising and beautiful, but that beauty does not obligate the universe to hide a complex theory behind it.

## Who Was D. R. Kaprekar?

Dattatreya Ramchandra Kaprekar, born in 1905 in the coastal town of Dahanu, India, was the man who stumbled upon the Kaprekar constant 6174. Before he ever touched that famous number, he was simply a boy who loved playing with digits, rearranging them, and looking for patterns where most people saw nothing at all.

Kaprekar studied at Fergusson College in Pune, where his unusual approach to numbers caught the attention of his professors. In 1927, his original mathematical work earned him the Wrangler R. P. Paranjpe Mathematics Prize, a notable recognition for a young student who was already thinking about mathematics differently than his peers. After finishing his studies, he took a position as a mathematics teacher in Devlali in 1929, a role he would keep for decades.

Teaching gave him time to explore the ideas that fascinated him most: the relationships between digits within numbers. Alongside the Kaprekar constant 6174, he developed what are now called Kaprekar numbers, self-numbers, and Harshad numbers. These concepts were elegant and strange, but for years, the academic world paid them little attention. That changed in 1975, when Martin Gardner featured Kaprekar's work in his famous column in *Scientific American*. Suddenly, the quiet teacher from Devlali had an international audience.

Kaprekar died in 1986, but the number he discovered continues to puzzle and delight anyone who tries it. The Kaprekar constant 6174 remains his lasting legacy, a simple trick that still feels like magic.


## Frequently asked questions

**What is the Kaprekar constant 6174?**

The Kaprekar constant 6174 is the unique non-zero fixed point of the Kaprekar routine for four-digit numbers. Any four-digit number containing at least two different digits eventually reaches 6174 in at most seven steps, after which the process repeats itself endlessly because 7641 minus 1467 always equals 6174.

**How does the Kaprekar routine work?**

Take any four-digit number and arrange its digits in descending order to form the largest possible number, then arrange them in ascending order to form the smallest. Subtract the smaller from the larger, and repeat the entire process on each new result. Starting with 2005, for example, you get 5200 minus 0025 equals 5175, and the process continues from there.

**Who discovered the Kaprekar constant?**

Indian mathematician Dattatreya Ramchandra Kaprekar discovered it. Born in 1905 in Dahanu, India, he studied at Fergusson College in Pune and won the Wrangler R. P. Paranjpe Mathematics Prize in 1927. His work gained international recognition when Martin Gardner featured it in Scientific American in 1975.

**What is the Kaprekar constant for three-digit numbers?**

For three-digit numbers, the Kaprekar constant is 495. This is the unique fixed point for three-digit numbers with at least two different digits. The routine always converges to 495, just as four-digit numbers converge to 6174.

**Did Martin Gardner popularize 6174?**

Yes. Martin Gardner featured Kaprekar's work in his Mathematical Games column in Scientific American in 1975, bringing the Kaprekar constant 6174 to international attention. Before that, Kaprekar's research had received little interest from academic circles despite his decades of work on number relationships.

**What happens with two-digit numbers in the Kaprekar process?**

Two-digit numbers do not reach a fixed point. Instead, they enter a repeating cycle. The cycle runs 9 to 81 to 63 to 27 to 45 and back to 9, though the exact entry point is imprecise because 9 is not itself a two-digit number. The essential point is that two-digit numbers loop rather than settle.

Canonical: https://curio.madeda.com/kaprekar-constant-6174-mysterious/
