Benford's Law Calculator
- Benford's law: in data that spans several orders of magnitude, leading digits are not uniform. The chance a number starts with 1 is log10(1 + 1/1) = 30.10%.
- In a clean sample of 1,000 numbers you would therefore expect about 301 to start with 1 - against 111 if all nine digits were equally likely.
- Small digits dominate: the cumulative chance of a leading digit no bigger than 1 is 30.10%, and digit 1 alone claims 30.10% of all numbers.
- Auditors use exactly this gap: ledgers whose leading digits sit near the uniform 11.11% per digit, instead of the Benford curve, are flagged for a closer look.
This Benford's Law Calculator shows you the expected share of numbers that should start with each digit in a natural dataset, so you can compare real records against that pattern. Under Benford's law, 30.10% of numbers start with 1 — about 301 out of every 1,000 records. Digit 5 leads only 7.92% of numbers: about 40 in a sample of 500 invoices, against 151 expected leading 1s in the same sample. Digit 9 leads just 4.58% — about 92 of 2,000 measurements — while digits up to 9 of course cover 100.00% cumulatively. The calculator gives you these expected proportions and the counts they imply for your sample size, side by side with what your data actually shows.
Benford's law is the accepted standard for this kind of calculation because it describes the leading-digit pattern that naturally occurring datasets tend to follow, rather than assuming every digit is equally likely. A uniform digit would claim 11.11% each; digit 1's Benford share is 2.71x that, and digit 9's is only 0.41x. That contrast is why auditors and analysts use the expected shares as a benchmark instead of a flat one-in-nine guess. This page shows the formula, step-by-step workings, worked examples and sources, so you can check every number yourself and see exactly how each expected percentage and count is produced.
Worked examples
Leading digit 1 in 1,000 records
(1 · 1000 values)
| P(first digit = 1) | 30.10% |
| Expected count in the sample | 301 |
| P(first digit <= 1) | 30.10% |
| Share vs a uniform digit | 2.71x |
| Expected count of leading 1s | 301 |
Leading digit 5 in 500 invoices
(5 · 500 values)
| P(first digit = 5) | 7.92% |
| Expected count in the sample | 40 |
| P(first digit <= 5) | 77.82% |
| Share vs a uniform digit | 0.71x |
| Expected count of leading 1s | 151 |
Leading digit 9 in 2,000 measurements
(9 · 2000 values)
| P(first digit = 9) | 4.58% |
| Expected count in the sample | 92 |
| P(first digit <= 9) | 100.00% |
| Share vs a uniform digit | 0.41x |
| Expected count of leading 1s | 602 |
How Benford's law is calculated
The core of any Benford's law calculator is a single formula: P(d) = log10(1 + 1/d), where d is the leading digit from 1 to 9 and P(d) is the expected proportion of numbers that start with that digit. The logarithm is base 10, so the formula returns a decimal fraction that you can multiply by 100 to get a percentage. For digit 1, P(1) = log10(1 + 1/1) = log10(2). Because log10(2) ≈ 0.3010, the expected share is 30.10% - meaning about 301 out of every 1,000 records in a natural dataset should start with 1.
The same formula gives a different result for every digit, and the pattern is not uniform. For digit 5, P(5) = log10(1 + 1/5) = log10(1.2) ≈ 0.0792, or 7.92%. In a sample of 500 invoices, that works out to about 40 leading 5s, while the same sample would have 151 expected leading 1s. For digit 9, P(9) = log10(1 + 1/9) = log10(1.111...) ≈ 0.0458, or 4.58% - about 92 of 2,000 measurements. Cumulatively, the shares for digits 1 through 9 add up to 100.00%.
To use these percentages in a calculator, you compare observed counts with expected counts. Multiply each digit's expected proportion by the total number of records in your dataset. For a sample of 1,000, digit 1's expected count is 0.3010 × 1,000 = 301. For digit 5 in 500 invoices, it is 0.0792 × 500 ≈ 40. For digit 9 in 2,000 measurements, it is 0.0458 × 2,000 ≈ 92. The calculator then shows how far your actual counts deviate from these expected values.
The contrast with a uniform distribution is stark. A uniform digit would claim 11.11% each, but digit 1's Benford share is 2.71 times that, and digit 9's is only 0.41 times that. This is why a benford's law calculator is useful for spotting anomalies: datasets that should follow Benford's law but instead show roughly equal leading digits, or a spike at 9, may warrant closer inspection.
- P(d) = log10(1 + 1/d), with d = 1, 2, ..., 9
- Digit 1: log10(2) ≈ 0.3010 → 30.10% → about 301 in 1,000 records
- Digit 5: log10(1.2) ≈ 0.0792 → 7.92% → about 40 in 500 invoices (vs. 151 expected leading 1s)
- Digit 9: log10(1.111...) ≈ 0.0458 → 4.58% → about 92 in 2,000 measurements
- Digits 1–9 cumulatively cover 100.00%
- Uniform comparison: 11.11% each; digit 1 is 2.71× that, digit 9 is 0.41× that
Why small digits dominate
Benford's law is not a rule about how people choose numbers. It is a description of how numbers behave when a dataset spans several orders of magnitude — when it contains values in the tens, the hundreds, the thousands, and beyond, all mixed together. On a logarithmic scale, the distance from 1 to 2 is far larger than the distance from 8 to 9. Numbers that grow or shrink by constant percentage steps spend more of that scale in the low digits, so leading 1s pile up. A benford's law calculator turns this observation into expected shares you can compare against your own records.
The size of the effect is easy to underestimate. Under Benford's law, 30.10% of numbers in a natural dataset start with 1 — about 301 out of every 1,000 records. No other digit comes close. Digit 5 leads only 7.92% of numbers: about 40 in a sample of 500 invoices, against 151 expected leading 1s in the same sample. Digit 9 leads just 4.58% — about 92 of 2,000 measurements — while digits up to 9 of course cover 100.00% cumulatively.
The contrast with a flat distribution is stark. A uniform digit would claim 11.11% each; digit 1's Benford share is 2.71x that, and digit 9's is only 0.41x. In other words, if you expected every leading digit to appear equally often, you would overestimate the 9s by well over double and underestimate the 1s by nearly a factor of three. That mismatch is exactly what makes the law useful as a screening tool: real-world counts, populations, and financial amounts rarely look uniform at the front.
The cumulative picture explains the phrase "small digits dominate." The low digits absorb the majority of the probability mass, and the cumulative share reaches 77.82% by digit 5. So in a conforming dataset, roughly three out of every four records begin with a 1, 2, 3, 4, or 5. The remaining digits — 6 through 9 — split the last portion of the scale between them. This is why a quick visual check of leading-digit frequencies is often enough to spot a dataset that does not fit the pattern, before any formal test is run.
Keep in mind that the law applies to the leading digit of values drawn from a naturally spanning range, not to numbers with built-in limits such as heights, ages, or telephone numbers. When your data does fit the setting, the expected percentages above give you a clear baseline: compare your observed counts against 30.10% for 1s, 7.92% for 5s, and 4.58% for 9s, and see how far your records drift from the logarithmic pattern.
Benford versus uniform
The quickest way to understand what a Benford's law calculator is doing is to compare the Benford curve with the naive assumption most people carry around: that each leading digit from 1 to 9 should show up about equally often. Under a uniform model, every digit would claim 11.11% of the records. Benford's law says otherwise, and the size of the disagreement is the whole point.
At the top of the curve, digit 1 leads 30.10% of numbers in a natural dataset — roughly 301 out of every 1,000 records. That is 2.71 times the uniform share of 11.11%. At the bottom, digit 9 leads just 4.58%, which is only 0.41 times the uniform share. The curve does not merely tilt; it falls by a factor of more than six from first digit to last. A calculator that plots observed frequencies against the expected Benford values makes that slope visible in a single glance.
The middle of the distribution shows the same pattern in miniature. Digit 5 leads only 7.92% of numbers. In a sample of 500 invoices, that works out to about 40 expected leading 5s — against 151 expected leading 1s in the same sample. Neither figure is anywhere near the 55 or so that a flat 11.11% per digit would predict. Scaling up, digit 9 leads about 92 of 2,000 measurements, while digits 1 through 9 still cover 100.00% cumulatively, as any complete set of leading digits must.
This gap is exactly what auditors test for. Fabricated or rounded figures tend to drift toward a flatter spread — people inventing numbers often distribute leading digits more evenly than real data does, or they avoid the extremes. When observed counts sit close to 11.11% across the board instead of hugging the Benford curve, that flatness is a signal worth a closer look. The same logic applies in reverse: a dataset that matches 30.10% for digit 1 and 4.58% for digit 9 is behaving the way naturally generated numbers usually behave.
The comparison also guards against a common misreading. A single digit being over- or under-represented is not proof of anything on its own; the test is whether the whole distribution tracks the expected curve. Running the numbers through a Benford's law calculator gives you the expected share for each digit alongside what your records actually show, so the contrast with the uniform 11.11% baseline is explicit rather than assumed.
- Digit 1: Benford 30.10%, uniform 11.11% — 2.71x the flat share.
- Digit 5: Benford 7.92% — about 40 of 500 invoices, versus 151 expected leading 1s.
- Digit 9: Benford 4.58% — about 92 of 2,000 measurements, or 0.41x the flat share.
- All digits 1–9 together: 100.00% cumulatively under either model.
Reading your result
The table a Benford's law calculator produces is easiest to read one digit at a time, as a comparison between two numbers: the count you actually observed and the count the law predicts. Take digit 5 in a sample of 500 invoices. Benford's law expects 7.92% of those numbers to start with 5, which works out to about 40 leading 5s. If your data shows roughly 40, digit 5 is behaving as expected. If it shows 8 or 9, or 120, that gap is what deserves your attention. The same sample should contain about 151 leading 1s, because 30.10% of numbers in a natural dataset start with 1 — about 301 out of every 1,000 records. Notice how far apart the two expectations are: 151 versus 40 in the same 500 records. A low leading-5 count is not automatically suspicious, because 5 is a rare leading digit under the law.
The extremes of the distribution are where the contrast is sharpest. Digit 9 leads just 4.58% of numbers — about 92 of 2,000 measurements — so a long stretch of 9s at the front of your records is a strong departure from the pattern. A uniform digit would claim 11.11% each, which puts the spread in perspective: digit 1's Benford share is 2.71 times the uniform rate, while digit 9's is only 0.41 times it. Digits up to 9 of course cover 100.00% cumulatively, so the shares must add to one no matter what your sample looks like. When you scan your output, then, do not hold every digit to the same yardstick. A leading-1 count near 301 per 1,000 is healthy; a leading-9 count near 301 per 1,000 is not.
The classic red flag is a large sample whose leading digits drift toward uniform. If each digit from 1 through 9 shows up at close to 11.11%, the data is not following Benford's law at all — it looks as though the leading digits were assigned evenly rather than arising naturally. That pattern is most meaningful in a large sample, where random wobble around the expected counts should be small. In a small sample, counts jump around enough that a digit can land well above or below its expected value by chance alone, so read the gaps with that in mind.
To read your result well, work digit by digit: put the observed count beside the expected count, note which digits sit far from their expectation, and ask whether the overall shape leans toward uniform. That comparison — not any single digit in isolation — is what a benford's law calculator is there to help you see.
- Digit 1: expect 30.10% — about 301 per 1,000 records, or 151 in a 500-record sample.
- Digit 5: expect 7.92% — about 40 in a sample of 500 invoices.
- Digit 9: expect 4.58% — about 92 of 2,000 measurements.
- Uniform benchmark: 11.11% per digit — digit 1's share is 2.71x that, digit 9's is 0.41x.
- Cumulative check: digits 1 through 9 cover 100.00% of the shares.
FAQs
What percentage of numbers start with 1?
Under Benford's law, about 30.10% of numbers in a suitable data set start with the digit 1. In a clean sample of 1,000 numbers, that works out to roughly 301 entries beginning with 1. This makes 1 by far the most common leading digit, far above the 11.11% you would expect if digits were uniform.
What is the Benford probability for digit 9?
The Benford probability for the digit 9 is only 4.58%, making it the rarest leading digit. In 2,000 measurements, that is about 92 numbers starting with 9. So a data set that follows Benford's law should show many more leading 1s than leading 9s, not an even split across the nine digits.
Why aren't leading digits uniform?
A uniform distribution would give each digit 11.11%. But real multiplicative data follows the formula log10(1 + 1/d), which favors small digits. That formula is the basis of Benford's law, and it explains why 1 appears far more often than 9. The pattern emerges naturally when data spans several orders of magnitude.
How is Benford's law used in auditing?
Fabricated ledgers tend toward uniform digits, while genuine ones match the Benford curve. In a clean set, about 30.10% of entries start with 1 and 7.92% start with 5. Auditors compare the observed digit distribution against these expected percentages to flag records that look invented rather than recorded from real transactions.
How many leading 5s should 500 invoices have?
In a sample of 500 invoices, you would expect about 40 leading 5s under Benford's law. In that same sample, you would expect 151 leading 1s. The gap between those two counts shows how strongly the law favors small leading digits, and it gives auditors a benchmark for judging whether an invoice set looks genuine.
When does Benford's law not apply?
Benford's law does not apply when data cannot span orders of magnitude. Examples include assigned numbers, prices clustered in a narrow band, and samples like the 500-invoice set with restricted ranges. Without a wide spread across magnitudes, the expected curve does not hold, so a mismatch there is not evidence of anything.