Armstrong Number Calculator - Sum of Digit Powers

Armstrong Number Calculator

Armstrong number checker & range finder

Known Armstrong Numbers (click to check):

3-digit:

4-digit:

5-digit:

Armstrong Number Quick Reference

Definition: Sum of digits^(digit count) = original number
Also called: Narcissistic numbers, pluperfect digital invariants
3-digit: 153, 370, 371, 407 are the only ones
4-digit: 1634, 8208, 9474 are the only ones
5-digit: 54748, 92727, 93084
Example: 153 = 1³ + 5³ + 3³ = 1 + 125 + 27
9474: 9&sup4; + 4&sup4; + 7&sup4; + 4&sup4; = 6561 + 256 + 2401 + 256
Total known: Only 88 Armstrong numbers exist in base 10

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

Armstrong Number Calculator — Check & Verify Narcissistic Numbers

📅 Published:

How to Use the Armstrong Number Calculator

Enter any whole number into the Armstrong number checker above and click "Check." The calculator splits your number into individual digits, raises each digit to the power of the total digit count, and sums the results. If the sum equals the original number, it is an Armstrong number (also called a narcissistic number). The step-by-step breakdown shows every calculation so you can follow the verification process yourself.

Armstrong Number Calculator checking if 153 and 9474 are Armstrong numbers with step-by-step digit power verification and range finder.

This Armstrong Number Calculator checks whether any number equals the sum of its own digits each raised to the power of the number of digits — the defining rule of an Armstrong (or narcissistic) number. For example, 153 qualifies because 1³ + 5³ + 3³ = 1 + 125 + 27 = 153. Armstrong numbers sit at the intersection of number theory, programming exercises, and recreational mathematics.

Our Armstrong number calculator handles single checks, range scans to find all Armstrong numbers within an interval, and even supports custom exponents and number bases from 2 to 16. Whether you need to verify that 9474 is a four-digit Armstrong number or find every three-digit Armstrong number, this tool gives you instant, detailed results.

What Is an Armstrong Number? Definition & Formula

An Armstrong number (also known as a narcissistic number, pluperfect digital invariant, or plus perfect number) is a number where the sum of each digit raised to the power of the total digit count equals the original number. The formal Armstrong number formula is:

If N has n digits d1, d2, ..., dn, then N is Armstrong if:

d1n + d2n + ... + dnn = N

For instance, 153 has 3 digits, so each digit is raised to the power of 3: 1³ + 5³ + 3³ = 1 + 125 + 27 = 153. Because the sum equals the original number, 153 is confirmed as an Armstrong number. This self-referential property is what makes these numbers mathematically fascinating.

How to Calculate Armstrong Numbers Step by Step

Checking whether a number is Armstrong follows a simple algorithm. Here is the step-by-step process our Armstrong number checker uses:

  1. Count the digits. Determine how many digits the number has. For 1634, the digit count is 4.
  2. Separate the digits. Break the number into individual digits: 1, 6, 3, 4.
  3. Raise each digit to the power of the digit count. Compute 1&sup4; = 1, 6&sup4; = 1296, 3&sup4; = 81, 4&sup4; = 256.
  4. Sum the results. Add all the powered values: 1 + 1296 + 81 + 256 = 1634.
  5. Compare. Since 1634 = 1634, the number is an Armstrong number.

Try entering 8208 or 9474 in the calculator above to see this verification process in action. The same method works for any number of digits — for three-digit numbers the exponent is 3, for five-digit numbers it's 5, and so on.

Complete List of Armstrong Numbers by Digit Count

There are exactly 88 Armstrong numbers in base 10. Here is the complete list organized by digit count, which you can verify using the range finder above:

DigitsArmstrong NumbersCount
1 digit0, 1, 2, 3, 4, 5, 6, 7, 8, 910
2 digitsNone0
3 digits153, 370, 371, 4074
4 digits1634, 8208, 94743
5 digits54748, 92727, 930843
6 digits5488341
7 digits1741725, 4210818, 9800817, 99263154
8+ digits24678050, 24678051, 88593477, ... up to 39 digits67

The three-digit Armstrong numbers (153, 370, 371, 407) are the most commonly asked about. Notice there are no two-digit Armstrong numbers — you can prove this because for any two-digit number ab, the maximum possible sum a² + b² is 9² + 9² = 162, but the pattern doesn't produce any matches. The largest known Armstrong number has 39 digits: 115,132,219,018,763,992,565,095,597,973,971,522,401.

Three-Digit Armstrong Number Calculation Examples

The four three-digit Armstrong numbers are among the most searched examples. Here is the complete verification for each one:

153

1³ + 5³ + 3³

= 1 + 125 + 27

= 153 ✓

370

3³ + 7³ + 0³

= 27 + 343 + 0

= 370 ✓

371

3³ + 7³ + 1³

= 27 + 343 + 1

= 371 ✓

407

4³ + 0³ + 7³

= 64 + 0 + 343

= 407 ✓

Each three-digit number uses the exponent 3 because there are three digits. You can verify all four of these by clicking them in the "Known Armstrong Numbers" section above. The calculator shows the full step-by-step process for each.

Is 9474 an Armstrong Number? Four-Digit Verification

Yes, 9474 is an Armstrong number. It is one of only three four-digit Armstrong numbers (along with 1634 and 8208). Here is the complete verification:

9474 has 4 digits, so the exponent is 4:

9&sup4; + 4&sup4; + 7&sup4; + 4&sup4;

= 6561 + 256 + 2401 + 256

= 9474 ✓

Similarly, 1634 is an Armstrong number: 1&sup4; + 6&sup4; + 3&sup4; + 4&sup4; = 1 + 1296 + 81 + 256 = 1634. And 8208 is an Armstrong number: 8&sup4; + 2&sup4; + 0&sup4; + 8&sup4; = 4096 + 16 + 0 + 4096 = 8208. These three are the only four-digit numbers with this property.

Armstrong Numbers vs Perfect Numbers: Key Differences

Armstrong numbers and perfect numbers are both special categories in number theory, but they are defined very differently:

PropertyArmstrong NumberPerfect Number
DefinitionSum of digits raised to digit-count power equals the numberSum of proper divisors equals the number
Example153 = 1³ + 5³ + 3³6 = 1 + 2 + 3
Known count88 (finite, all known)52 known (infinitely many?)
Depends onDigit representation (base-dependent)Divisibility (base-independent)

A number can be both Armstrong and have other special properties. For example, 153 is an Armstrong number and a triangular number (1 + 2 + ... + 17 = 153). However, no number is both Armstrong and perfect. Use our perfect number calculator to explore that category separately.

Armstrong Numbers in Programming & Computer Science

Armstrong number checks are one of the most popular programming exercises because they combine several fundamental concepts: loops, digit extraction, exponentiation, and comparison. Here is the basic algorithm in pseudocode:

function isArmstrong(N):
    digits = getDigits(N)
    n = length(digits)
    sum = 0
    for each digit d in digits:
        sum = sum + d^n
    return sum == N

This algorithm runs in O(n) time where n is the number of digits, making it efficient for checking individual numbers. Our calculator extends this with range scanning, custom exponents, and multi-base support. For related power calculations, try our exponent calculator.

Armstrong numbers appear in coding interviews, competitive programming, and as exercises in courses on algorithm design. They teach students how to decompose a number into digits — a skill used in digit sum problems, palindrome checks, and other number theory applications. For broader number classification, see our prime number calculator.

Key Features of Our Armstrong Number Checker

Our Armstrong number calculator provides more than a simple yes/no answer. Here are the features that make it useful for students, programmers, and math enthusiasts:

  • Step-by-step verification: See every digit's power calculation and the final sum comparison, not just the result.
  • Range finder: Discover all Armstrong numbers between any two values. Find the three-digit Armstrong numbers (100–999) or scan up to 10 million.
  • Multi-base support: Check Armstrong numbers in bases 2 through 16. A number that is Armstrong in base 10 may not be Armstrong in base 8, and vice versa.
  • Custom exponents: Override the automatic digit-count exponent to explore generalized narcissistic numbers with any power.
  • Quick-check presets: Click any known Armstrong number (153, 371, 407, 1634, 8208, 9474, and more) to instantly verify it.

Related Number Theory Tools

Explore more number theory calculators to deepen your understanding of mathematical properties:

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.