Armstrong Number Calculator

Test whether a number equals the sum of its digits each raised to the digit count, with the sum shown.

Math and PercentUpdated 2026-11-183 min read
Armstrong Number Calculator
A whole number from 1 to 1,000,000,000.
Verdict
...
Sum of powered digits...
Number of digits...

What it does

An Armstrong number, also called a narcissistic number, is equal to the sum of its own digits with each digit raised to the power of the digit count. The classic example is 153. It has three digits, and 1 cubed plus 5 cubed plus 3 cubed is 1 + 125 + 27, which is 153 again.

The name comes from Michael Frederick Armstrong, who used these numbers in a computing class at the University of Rochester in the 1960s. The older term narcissistic number is also common in reference tables. Both names describe the same fixed point property under a digit power map.

The exponent matters. If 153 were checked with squares it would give 35, not 153, and the test would fail. Always count the digits first, then use that count as the exponent for every digit, including zeros. A zero raised to a positive power contributes nothing, which is why 407 works even though it contains a zero.

This page counts the digits, raises each one to that power, adds the results and compares the sum with the input. It reports both the verdict and the computed sum so you can confirm the arithmetic without trusting a single word.

There are only a finite number of these numbers in base ten. The largest has 39 digits, far beyond the one billion limit here, so this tool covers the range where hand checking is still possible.

How to use

  1. Enter a whole number n of at least 1.
  2. Read the verdict from the main result box.
  3. Check the digit count that the tool used as the exponent.
  4. Read the powered digit sum beside it.
  5. Use the default 153 to reproduce the worked example.
  6. Try 123 to see a number whose sum falls short.

Formula

n is Armstrong when n = sum of d_i^k for every digit d_i, where k is the number of digits
n
The integer being tested.
d_i
One decimal digit of n.
k
The number of digits of n, used as the power for every digit.

For 153 the digit count k is 3, so the sum is 1^3 + 5^3 + 3^3 = 153. For 9474 there are four digits and 9^4 + 4^4 + 7^4 + 4^4 = 6561 + 256 + 2401 + 256 = 9474. Single digit values all pass because d to the first power is simply d. Zero contributes nothing to any positive power.

Worked example

Example: 153

The tool starts with n = 153, the default input.

  1. Count the digits: 153 has 3 digits, so k = 3.
  2. Raise the first digit: 1^3 = 1.
  3. Raise the second digit: 5^3 = 125.
  4. Raise the third digit: 3^3 = 27.
  5. Add the parts: 1 + 125 + 27 = 153.
  6. The tool reports Armstrong number, digit sum 153, and 3 digits.
  7. A different number such as 123 gives 1 + 8 + 27 = 36 and fails the test.

Reference table

Powered digit sums for sample numbers
nPower usedDigit sumVerdict
919Armstrong
123336Not Armstrong
1533153Armstrong
3703370Armstrong
4073407Armstrong
947449474Armstrong

Limits

  • Only base ten digit expansions are considered.
  • Inputs above one billion are rejected.
  • The powered sum can exceed the input, and the tool reports it rather than discarding the overflow.
  • The list of such numbers is finite, so very large inputs will nearly always fail.

Common mistakes

  • Using a fixed cube for every input instead of counting digits first.
  • Forgetting that zero to a positive power contributes zero.
  • Treating the digit count as a multiplier rather than an exponent.
  • Rounding the powered sum when it grows large.
  • Assuming every number made of repeated digits is Armstrong.

Try it yourself

Quick checks. Answers sit tucked under each question.

Is 370 an Armstrong number?

Yes. 3^3 + 7^3 + 0^3 = 27 + 343 + 0 = 370.

Is 9474 an Armstrong number?

Yes. With four digits, 9^4 + 4^4 + 7^4 + 4^4 = 6561 + 256 + 2401 + 256 = 9474.

What powered sum does 123 give?

1^3 + 2^3 + 3^3 = 1 + 8 + 27 = 36, so 123 is not Armstrong.

Questions

Why is it called narcissistic?

The number is defined by its own digits, which is why the older name refers to looking at itself.

Are single digit numbers Armstrong?

Yes. With one digit the power is one, so the sum is the digit itself.

Does 0 count?

Mathematically 0 is a fixed point, but this tool starts at 1 to keep the input range positive.

How many Armstrong numbers exist?

There are 89 of them in base ten, and the largest has 39 digits.

What is the difference from a happy number?

A happy number iterates a fixed square map until it reaches 1, while an Armstrong number is checked once with a power set by its digit count.

What input limit does this page use?

Whole numbers from 1 through 1,000,000,000, with a clear error outside that range.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.