Skip to content

Benford’s law

The logarithmic leading-digit law, why it gives about 30% ones, and when a financial-data anomaly warrants investigation rather than a fraud verdict.

Benford’s law is a logarithmic distribution of significant digits. Its best-known implication is that, for suitable numerical data, the first nonzero decimal digit is 1 about 30.1% of the time and 9 about 4.6% of the time. In financial data analysis, this gives a possible benchmark for screening amounts for unusual digit patterns. The benchmark needs justification: a departure from it does not establish fraud.

The first significant digit of 0.0048, 480 and 480,000 is 4. Leading zeros and the decimal point do not count. This article considers positive amounts; zeros have no nonzero leading digit. Credits, reversals and negative balances need an explicit treatment rather than silently being pooled with payments.

The probability comes from log space

Write a positive value as X=10kSX=10^kS, where kk is an integer and 1≤S<101\leq S<10. The number SS is its significand. Under the full Benford law, the fractional part of log⁡10X\log_{10}X is uniformly distributed between 0 and 1. Consequently,
P(D=d)=P(d≤S<d+1)=log⁡10(d+1)−log⁡10(d)=log⁡10(1+1d),d=1,…,9.\begin{aligned} \mathbb{P}(D=d) &=\mathbb{P}(d\leq S<d+1)\\ &=\log_{10}(d+1)-\log_{10}(d)\\ &=\log_{10}\left(1+\frac{1}{d}\right), \qquad d=1,\ldots,9. \end{aligned}
Here DD is the first significant digit. The logarithm turns a ratio into a difference: moving from 1 to 2 doubles the significand, while moving from 9 to 10 multiplies it by only 10/910/9. Those intervals have different lengths on a logarithmic axis. The probabilities sum to one because the log differences telescope to log⁡10(10)−log⁡10(1)=1\log_{10}(10)-\log_{10}(1)=1.
This is a derivation conditional on uniform fractional logarithms, not a proof that every ledger has that property. The full law also specifies subsequent significant digits; matching nine first-digit frequencies alone does not establish the full law. Berger and Hill’s mathematical primer, Sections 2–3, states these distinctions and the uniform-log characterization.
On a logarithmic axis from significand 1 to 10, digit 1 occupies 30.10% of the width and digit 9 occupies 4.58%. Expected counts under an applicable Benford model for 1,000 observations decline from 301.0 for digit 1 to 45.8 for digit 9.
On a logarithmic axis from significand 1 to 10, digit 1 occupies 30.10% of the width and digit 9 occupies 4.58%. Expected counts under an applicable Benford model for 1,000 observations decline from 301.0 for digit 1 to 45.8 for digit 9.
Original theoretical diagram. Bar heights are expected counts, not observed payments or a fraud threshold; an actual sample will fluctuate around its model expectations.

For a hypothetical file of 1,000 independent observations with Benford-distributed leading digits, the expected counts are 1000log⁡10(2)≈301.031000\log_{10}(2)\approx301.03 for digit 1 and 1000log⁡10(10/9)≈45.7571000\log_{10}(10/9)\approx45.757 for digit 9. Fractional expected counts are averages over repeated samples, not instructions to round a ledger into compliance. Independence is needed for standard independent-sample inference; the expectation calculation itself only needs the stated marginal probabilities.

Two honest files can have very different digits

Imagine a fictional accounts-payable review. One file contains invoice amounts arising from different combinations of quantities and prices. Another contains invoice identifiers assigned sequentially from 10,000 to 19,999. The identifiers all begin with 1. That says how the numbering system works, not how honestly the invoices were created.

Now suppose a reimbursement policy admits only whole-dollar claims from 200 through 299. Every admitted amount begins with 2, even if each claim is correct. Comparing that filtered file with the unmodified Benford probabilities would test an inappropriate model.

What the field containsWhat to establish before using Benford
Transaction amountsWhether their generation and selection make Benford a plausible benchmark
Assigned account or invoice numbersThe numbering rule; these are labels rather than measured economic sizes
Amounts within a policy bandHow truncation and eligibility rules alter the digit distribution
Rounded prices or repeated fixed chargesHow pricing conventions and duplication shape the digits
Nigrini’s 1999 author article discusses accounting applications and distinguishes amounts from assigned numbers and bounded fields. It is a historical explanation, not a current audit requirement or a universal acceptance rule.
A large range is also insufficient by itself. Multiplicative processes and suitably mixed distributions provide mathematical routes to Benford behaviour, with specific assumptions; “there are many numbers” is not one. Conversely, a model with X=10UX=10^U and UU uniform on [0,1)[0,1) is exactly Benford although its values occupy only one decade. Berger and Hill (2011) explain why broad spread alone is an invalid justification; Hill’s statistical derivation gives precise conditions for mixtures.

Use the anomaly to choose the next question

Define the population and extraction rules before looking for suspicious digits. Keep amount fields separate from identifiers; document zeros, signs, rounding, currency units and filters. With financial statement data, preserve the accounting concept and reporting scope rather than treating every number in a filing as an interchangeable observation.
If the benchmark is defensible, compare observed and expected frequencies. A chi-squared test is one possible goodness-of-fit procedure, subject to its sampling and approximation conditions. Related or duplicated records can invalidate an independent-sample calculation. Searching many vendors, periods and digit combinations also changes the false-alarm problem.
A small p-value concerns the chosen statistical model. It is not the probability that the file is fraudulent. A mismatch can motivate checking the export, business rules and underlying documents. Agreement cannot certify authenticity: fabricated amounts can be designed to reproduce the first-digit pattern, while dishonest transactions can retain authentic amounts.
For the mathematical preparation, the Exponentials and Logarithms lesson explains the log identities. Confidence Intervals and Hypothesis Testing develops model-based evidence and testing errors. Both have public previews; their full lessons require membership.

Sources

Last updated
  • benfords law
  • digit analysis
  • data quality
  • financial data
  • statistical inference
← Back to the glossaryBack to top ↑