Introduction to Benford’s Law

Benford’s Law, also known as the First-Digit Law, describes the frequency of leading digits in many naturally occurring datasets. Contrary to what might be expected, the digits 1 through 9 do not appear as the first digit with equal likelihood. Smaller digits occur far more often: about 30% of numbers begin with 1, while fewer than 5% begin with 9.

This predictable pattern is useful in auditing, forensic accounting, and data-integrity testing. When a dataset departs significantly from the expected distribution, it may indicate errors, unusual processing, or manipulation, and warrants follow-up. Dr. Mark J. Nigrini’s published research, beginning in the 1990s, developed many of these applications to accounting data.

When to use Benford’s Law

Benford’s Law applies best to datasets that:

  • Span several orders of magnitude (for example, values from tens to millions)
  • Are naturally generated rather than assigned
  • Contain enough records (generally several hundred or more)

Typical examples include invoices, disbursements, expense reimbursements, claims, and revenue transactions.

When not to use it

Benford’s Law should not be applied to data that is:

  • Sequential, coded, or assigned (check numbers, phone numbers, IDs, ZIP codes)
  • Restricted by upper or lower limits (ratings on a 1–5 scale, capped awards)
  • Homogeneous or too small (for example, a petty-cash log where every amount is $10)

Such data doesn’t follow the expected distribution, and testing it will produce misleading results.

Getting started

  1. Prepare a CSV or Excel file with at least one numeric column of amounts.
  2. Start with Data Profile & Duplicate Review to understand the data and check for duplicates.
  3. Run Benford Analysis Pro for first-digit and related tests.
  4. Use the Second-Order, Summation, Mantissa Arc, MAD Comparative, Histogram, and Largest Subsets tests for further analysis.
  5. Review the flagged items against source documents and business context.

All applications run in your browser; your data never leaves your computer. See all applications.

Best practices

  • Treat anomalies as signals for follow-up, not as proof of fraud or error.
  • Confirm that the dataset is large and varied enough before testing.
  • Validate flagged results against transaction-level detail and business context.
  • Use several tests together rather than relying on one.
  • Apply established thresholds for MAD, Z-statistics, and chi-square consistently.
  • Document each step: profile, test, investigate, and record conclusions.

Example: first-digit distribution

The table compares observed first-digit frequencies in a sample of 1,000 values with the frequencies expected under Benford’s Law.

First digitObserved countObserved %Expected %
131031.0%30.1%
218518.5%17.6%
312312.3%12.5%
4979.7%9.7%
5808.0%7.9%
6656.5%6.7%
7585.8%5.8%
8474.7%5.1%
9353.5%4.6%

Benford Analytics is not affiliated with or endorsed by Dr. Nigrini.