Benford's Law Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Pick a leading digit and enter how many numbers you have to see how often Benford's law expects that digit.
Result
Expected share starting with this digit
Expected count in your data set
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Leading digit: choose one of the 9 options in the list.
- Numbers in your data set: enter 0 or more.
- Read the result: Expected share starting with this digit; the panel also shows Expected count in your data set.
How this calculator works
Benford's law: the probability that the first significant digit is d (1 to 9) is P(d) = log₁₀(1 + 1/d). Digit 1 leads about 30.1% of the time and digit 9 about 4.58%.
It holds for data that span several orders of magnitude, such as populations, prices or invoice amounts, and is used to screen accounting data for anomalies. It does not apply to bounded or assigned numbers such as heights or phone numbers.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Leading digit | ||
| Expected share starting with this digit | % |
Worked example
| Leading digit | 1 |
|---|---|
| Numbers in your data set | 1,000 |
| Expected count in your data set | 301 |
|---|
Expected share starting with this digit 30.1%
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
Why do so many numbers start with 1?
On a logarithmic scale, the stretch from 1 to 2 is wider than from 9 to 10, so data spread over many magnitudes land there more often: log₁₀(2) ≈ 30.1%.
How many of 1,000 numbers should start with 1?
About 301.