Benford's Law Calculator

Test whether a dataset follows Benford's Law (first-digit law). Enter numbers to compare their leading digit distribution against the expected Benford distribution.

CHI-SQUARE STATISTIC
--
Degrees of Freedom
--
Critical Value (0.05)
--
Follows Benford?
--
Sample Size
--

What Is Benford's Law?

Benford's Law states that in many naturally occurring datasets, the leading digit is more likely to be small. Digit 1 appears as the first digit about 30.1% of the time, while 9 appears only 4.6%. This counterintuitive pattern holds for financial data, population numbers, physical constants, and many other real-world datasets.

Discovered by Simon Newcomb (1881) and later Frank Benford (1938), this law is used in forensic accounting, election fraud detection, and data quality assessment.

Formula

P(d) = log10(1 + 1/d) for d = 1, 2, ..., 9

Expected Distribution

DigitProbability
130.1%
217.6%
312.5%
49.7%
57.9%
66.7%
75.8%
85.1%
94.6%

FAQ

When does Benford's Law apply?

It applies to data spanning several orders of magnitude: financial transactions, populations, stock prices, river lengths. It does NOT apply to telephone numbers, dates, or uniformly distributed data.

How is it used to detect fraud?

Fabricated numbers often fail to follow Benford's distribution. Auditors compare actual leading digit frequencies against expected Benford frequencies using chi-square tests.