Armstrong Number Calculator

Sum of digit powers153
Digit count3
VerdictArmstrong number
Difference from the number itself0
How this was calculated
  1. An Armstrong (narcissistic) number equals the sum of its own digits each raised to the power of the digit count. The number 153 has 3 digits.
  2. The digit powers are 1^3 = 1, 5^3 = 125, 3^3 = 27.
  3. Adding them: 1 + 125 + 27 = 153.
  4. That equals 153 exactly, so 153 is an Armstrong number.

An Armstrong number calculator tells you whether a whole number is an Armstrong number, also called a narcissistic number. The test is simple to state: a number is an Armstrong number if it equals the sum of its own digits, each raised to the power of the number of digits. Enter any number and the calculator checks it against that rule and reports whether it passes or fails. The classic example is 153: 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. The 4-digit number 9474 also passes: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474. And 123 fails: 1^3 + 2^3 + 3^3 = 36, which is 87 short.

This digit-by-digit power-sum test is the accepted standard definition of an Armstrong number, so the calculator applies exactly that method rather than a shortcut or approximation. Because it follows the definition directly, you can reproduce every result by hand. The page shows the formula, the step-by-step workings for each check, and worked examples such as 153, 9474 and 123, along with sources. It also notes a useful fact: apart from the single digits, the only 3-digit Armstrong numbers are 153, 370, 371 and 407, and there are only finitely many Armstrong numbers in total. That makes the calculator a clear way to confirm a result and see exactly how it was reached.

Worked examples

153 - the classic Armstrong number

Primary result: 153. Full step-by-step working is shown with the result. (153)

Sum of digit powers153
Digit count3
VerdictArmstrong number
Difference from the number itself0

9474 - a 4-digit Armstrong number

Primary result: 9,474. Try it with your own numbers in the calculator above. (9474)

Sum of digit powers9,474
Digit count4
VerdictArmstrong number
Difference from the number itself0

123 - not an Armstrong number

Primary result: 36. Every intermediate value is printed in the worked steps. (123)

Sum of digit powers36
Digit count3
VerdictNot an Armstrong number
Difference from the number itself-87

What an Armstrong number is

An Armstrong number is a number that equals the sum of its own digits, with each digit raised to the power of the number of digits in the number. That rule is the whole definition, and it is why an Armstrong number calculator has to do two things at once: count the digits, then raise every digit to that count before adding. Armstrong numbers are also called narcissistic numbers, so if you see that name elsewhere, it refers to the same idea.

The classic example is 153. It has three digits, so each digit is raised to the third power: 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. The sum lands back on the original number, which is exactly what the definition requires. Larger examples follow the same pattern with a higher power. Take 9474, a 4-digit Armstrong number: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474. Because it has four digits, every digit is raised to the fourth power, and the total returns to 9,474.

Most numbers fail the test, and the failures are just as instructive. Consider 123. It has three digits, so the digits are cubed: 1^3 + 2^3 + 3^3 = 36, which is 87 short of 123. The arithmetic is simple, but it shows how far a number can land from itself once the digits are powered and summed. This is the check an armstrong number calculator performs: it does not guess from the look of a number, it computes the digit-power sum and compares it to the original.

The three-digit range is a good place to see how sparse these numbers are. Apart from the single digits, the only 3-digit Armstrong numbers are 153, 370, 371 and 407. Single digits count too, since a one-digit number raised to the first power is itself. Beyond that, the supply runs out: there are only finitely many Armstrong numbers in total. That finite set is part of what makes the definition interesting rather than a curiosity that keeps producing new examples forever.

To use the definition yourself, write the number's digits, count them, raise each digit to that count, and add the results. If the sum matches the number you started with, it is an Armstrong (narcissistic) number. If not, the difference tells you how far off it is, as with 123 and its total of 36.

Definition: an Armstrong (narcissistic) number equals the sum of its own digits, each raised to the power of the number of digits. Check: 153 gives 1^3 + 5^3 + 3^3 = 153, while 123 gives 1^3 + 2^3 + 3^3 = 36, which is 87 short.

How to check a number

To check whether a number is an Armstrong number, you follow the same short procedure every time. First, count how many digits the number has. Second, raise each digit to the power of that digit count. Third, add all those results together. Finally, compare the sum with the original number. If they match exactly, the number is an Armstrong number; if not, it isn't. An Armstrong (narcissistic) number equals the sum of its own digits each raised to the power of the number of digits, so the digit count you find in step one controls the power used for every digit in step two. That is the whole method an armstrong number calculator automates for you, but working a few examples by hand makes the rule easy to remember.

Start with 153, the classic example. It has three digits, so every digit is raised to the third power: 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. The sum lands exactly on the original number, which confirms 153 as an Armstrong number. Now try a four-digit case, 9474. Because it has four digits, each digit is raised to the fourth power: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474. Again the sum equals the number itself, so 9474 is a 4-digit Armstrong number. Notice how the power changes with the digit count — three digits means cubes, four digits means fourth powers.

A near-miss shows how strict the test is. Take 123, which also has three digits, so the digits are cubed: 1^3 + 2^3 + 3^3 = 36, which is 87 short of 123. The arithmetic is correct, but because 36 does not equal 123, the number fails the test. 123 is not an Armstrong number. This example is useful because the digits are small and the sum is far from the target, making it obvious that a number must match its digit-power sum exactly, not approximately.

Here is the procedure in a compact form you can reuse for any number:

If you want to explore further, the three-digit range is small enough to check by hand. The only 3-digit Armstrong numbers besides the single digits are 153, 370, 371 and 407. Beyond that, there are only finitely many Armstrong numbers in total, so the search always has a boundary even though the numbers themselves can grow large. Running a few values through the four steps above — count, raise, add, compare — is the clearest way to see why the definition works.

  • Count the digits in the number.
  • Raise each digit to the power of that digit count.
  • Add all the powered digits together.
  • Compare the sum with the original number: equal means Armstrong, different means not.
The power always equals the number of digits: three digits use cubes, four digits use fourth powers.

Famous Armstrong numbers

The three-digit Armstrong numbers are the ones most people meet first, and there are only four of them: 153, 370, 371 and 407. The brief lists 153 as the classic example, and the arithmetic is short enough to check by hand: 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. The same test — each digit raised to the power of the digit count, then summed — confirms the other three. Because the set is so small, an armstrong number calculator can return a match almost instantly for any three-digit input, and a miss means the number simply is not on the list.

Four-digit Armstrong numbers are just as easy to state: 1634, 8208 and 9474. Take 9474, the example given: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474. Each digit is raised to the fourth power because the number has four digits, and the four results add back to the number itself. Notice how quickly the powers grow: a single digit like 9 becomes 6,561 at the fourth power, so the sum can climb fast even though the digits are small. That growth is also why most four-digit numbers fail the test — their digit-power sums land well above or below the original value.

The famous lists stop being short as the digit count rises, but they never stop being finite. The reason is a race between two quantities that grow at very different rates. On one side is the number itself, which grows roughly with 10 raised to the number of digits. On the other side is the largest possible digit-power sum: every digit at its maximum of 9, raised to the power of the digit count, and added up. Beyond 60 digits, that maximum possible sum can no longer catch up to the smallest number with that many digits. Once the biggest sum a number's digits could possibly produce falls below the number itself, no Armstrong number of that length can exist — and the same holds for every longer length. That is why the total count of Armstrong numbers is finite rather than infinite.

This is why a calculator page can honestly say the full list has an end. The single digits 0 through 9 all qualify trivially, since a one-digit number raised to the first power equals itself, and beyond them the sets are sparse: four three-digit values, three four-digit values, and progressively fewer as the digit count climbs toward the cutoff. If you want to see the pattern for yourself, enter a number into the armstrong number calculator and compare the digit-power sum it shows against the original value — the gap, whether positive or negative, tells you how far the number sits from qualifying.

  • 3-digit Armstrong numbers: 153, 370, 371, 407
  • 4-digit Armstrong numbers: 1634, 8208, 9474
  • Check for 9474: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474
  • Non-example: 123 gives 1^3 + 2^3 + 3^3 = 36, which is 87 short
Beyond 60 digits, the largest possible digit-power sum can no longer catch up to the number itself — so no Armstrong numbers exist past that point, and the total list is finite.

Where they turn up

Armstrong numbers show up most often in number-theory puzzles, where they make a satisfying target to hunt for. The rule is simple to state: an Armstrong (narcissistic) number equals the sum of its own digits each raised to the power of the number of digits. Because the rule is easy to state but not easy to satisfy, puzzles tend to ask you to find the ones in a range or to prove that a given number is or is not one. An armstrong number calculator does the checking for you, which is handy when you want to test a long list of candidates without doing the arithmetic by hand.

The classic example is 153: 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. Puzzles often use it as the model case so solvers can see the pattern before trying others. The four-digit example 9474 works the same way: 9^4 + 4^4 + 7^4 + 4^4 = 6,561 + 256 + 2,401 + 256 = 9,474. And a near miss is just as instructive: 123 is not an Armstrong number, because 1^3 + 2^3 + 3^3 = 36, which is 87 short. Showing a failure alongside the successes is standard in puzzle writing, since it makes the definition concrete.

Programming exercises are the other big home for these numbers. Checking a number is a classic loop-and-digits task: count the digits, then walk through the digits one at a time, raise each to that count, and add the results. Beginners practice loops, digit extraction, and exponentiation all in one small problem, and the finiteness of the set makes it a good test case. The only 3-digit Armstrong numbers besides the single digits are 153, 370, 371 and 407, and there are only finitely many Armstrong numbers in total. That last fact matters for coders, because it means a search can be bounded rather than run forever.

Recreational mathematics keeps them around for the same reasons: they are easy to explain, rare enough to feel special, and verifiable with nothing more than a pencil. A reader who wants to check a claim can do the sums by hand, and a reader who wants a shortcut can use an armstrong number calculator. Either way, the appeal is the same — a small, clean rule that produces a short and surprising list.

Quick check: 123 fails because 1^3 + 2^3 + 3^3 = 36, which is 87 short of 123.

FAQs

What is an Armstrong number?

An Armstrong number equals the sum of its digits, each raised to the power of the number of digits it has. For example, 153 has three digits, so you cube each digit and add: 1^3 + 5^3 + 3^3. If that sum lands exactly on the original number, it is an Armstrong number.

Is 153 an Armstrong number?

Yes. It has three digits, so each digit is cubed: 1^3 = 1, 5^3 = 125, and 3^3 = 27. Adding those gives 1 + 125 + 27 = 153 exactly, which matches the original number. That makes 153 one of the classic three-digit Armstrong numbers.

Is 123 an Armstrong number?

No. It has three digits, so cube each one: 1^3 = 1, 2^3 = 8, and 3^3 = 27. The sum is 36, which falls 87 short of 123. Because the digit-power sum does not equal the original number, 123 is not an Armstrong number.

How many Armstrong numbers are there?

There are finitely many: 88 in base 10, counting the single digits. The reason is that for very long numbers, the digit-power sum grows more slowly than the number itself, so eventually no number can match its own sum. That caps how many Armstrong numbers can exist.

What is a narcissistic number?

It is the same thing as an Armstrong number. Narcissistic numbers follow the identical rule: a number equal to the sum of its digits each raised to the power of its digit count. They are also called pluperfect digital invariants. All three names describe one concept, so a number that is Armstrong is also narcissistic.

Is 9474 an Armstrong number?

Yes. It has four digits, so raise each digit to the fourth power: 6,561 + 256 + 2,401 + 256 = 9,474. The sum matches the original number exactly, which confirms 9474 as a four-digit Armstrong number.

Sources

Related calculators

Collatz Conjecture Calculator
Run the Collatz (3n + 1) sequence for any starting number: total stopping time, peak value and the hailstone sequence itself.
Perfect Number Calculator
Classify a number as perfect, abundant or deficient by comparing it with the sum of its proper divisors (its aliquot sum).
Prime Number Calculator
Primality by trial division, the full prime factorization of composites, and the neighbouring primes on either side.
Fibonacci Calculator
The nth Fibonacci number, computed exactly with arbitrary-precision arithmetic — plus the next term, the sum of the first n terms, and how close the ratio has come to the golden ratio.