Armstrong Number Calculator

This calculator checks whether a whole number you enter is an Armstrong number, also known as a narcissistic or pluperfect digital invariant. A number qualifies when you raise each of its digits to the power of how many digits the number has, then add those results together, and the total equals the original number back. The classic example is 153, which has three digits, and 1 cubed plus 5 cubed plus 3 cubed comes to exactly 153. Type any whole number into the input box and the calculator instantly works out the digit count, raises each digit to that power, sums the results, and tells you whether the number is or is not an Armstrong number. Alongside the main verdict, it shows the sum of digits to the power and the number of digits used in the calculation, so you can see exactly how the result was reached rather than taking it on faith. It updates live as you type, so you can test as many numbers as you like without pressing a button. The tool uses the exact integer algorithm and groups larger results for readability. It is useful for students learning number theory, programmers practising loops and exponents, or anyone curious about how self-referential numbers like 153, 370, 371 and 407 work.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
 
Sum of digits^k 
Number of digits (k) 

The formula

For a number with k digits, raise each digit to the power k and add them. If the total equals the original number, it is an Armstrong number. For 153 (k = 3): 1^3 + 5^3 + 3^3.

Worked example

153 has three digits, so 1 cubed plus 5 cubed plus 3 cubed = 1 + 125 + 27 = 153, which matches, so 153 is an Armstrong number. Enter 153 to confirm.

Frequently asked questions

What is an Armstrong number?

A number equal to the sum of its own digits each raised to the power of the digit count, such as 153 = 1 cubed + 5 cubed + 3 cubed.

Why is it called narcissistic?

Because the number is built from its own digits, in a sense admiring itself.

How many Armstrong numbers are there?

Only finitely many, since for enough digits the maximum possible sum falls short of the number. There are 88 in base ten.

Who this calculator is for

This calculator is for students, programmers and anyone exploring number theory.

What this calculator assumes

  • You enter a whole number within the stated range.
  • The exact integer algorithm is used.
  • Very large results are shown grouped for readability.

Formula and sources

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.