Harshad Number Checker

Check whether a whole number is a Harshad number, meaning it is divisible by the sum of its digits. The tool shows the digit sum and the remainder.

1 Fill in the box

2 Your answer

Your answer shows here as you type.

How to use the Harshad Number Checker

  1. Enter a whole number of 1 or more.
  2. Read the digit sum, which is the total of all the digits of the number.
  3. Check the result: a Harshad number leaves a remainder of 0 when divided by its digit sum.

Frequently asked questions

What is a Harshad number?

A Harshad number is a positive integer that is divisible by the sum of its digits. For example, 18 is a Harshad number because 1 + 8 = 9 and 18 divided by 9 is 2. They are also called Niven numbers.

Which numbers from 1 to 20 are Harshad numbers?

The Harshad numbers from 1 to 20 are 1 to 10, 12, 18 and 20. The numbers 11, 13, 14, 15, 16, 17 and 19 are not.

Is every single-digit number a Harshad number?

Yes. Each digit from 1 to 9 is divisible by itself, which is its own digit sum, so all of them qualify.

Is zero a Harshad number?

Zero is not counted. The definition applies to positive integers, so this checker accepts whole numbers of 1 or more.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.