Industry analysis · Banking and credit unions

Benford's law for screening deposits: a worked example on sample data, and why a screen is not a finding

In many real sets of amounts, about 30% start with the digit 1 and under 5% start with 9. When one branch's deposits drift far from that curve, it's worth a look. Here's how to run the screen and how to read it.

Storek team5 min read

Whiteboard in the paper look: 4,812 cash deposits at a sample branch with first-digit shares falling from about 30% for 1 to 4% for 9, close to the expected curve, a largest gap of 0.9 points and a donut of deposit sizes.
Sample dataOne branch's deposits checked against the first-digit curve. Illustrative data.

Pick any long list of amounts that grew naturally: deposits, invoices, expense claims. Count how many start with each digit. You might expect each of 1 through 9 to lead about 11% of the time. Instead, in many real datasets, about 30% start with 1 and fewer than 5% start with 9.

That pattern is Benford’s law. The expected share for each first digit d is log10(1 + 1/d). Auditors have used it for decades as a screen: people who make up numbers, or bend them to stay under a limit, tend not to reproduce the curve. In a 1999 Journal of Accountancy article, Mark Nigrini described deviations as “anomalies worthy of investigation.” That phrase is the whole method. A screen points; people investigate.

This article walks through a Benford screen on invented branch deposits, from first digits to a ranked list.

The worked example

A community bank wants to screen a quarter of cash deposits across eight branches. The numbers below are invented. Start with one branch, Mill Creek, which took 4,812 cash deposits in the quarter.

  1. Pick data the law applies to

    Benford’s law fits amounts that arise naturally and span several orders of magnitude. Cash deposits from $20 to $40,000 qualify. Account numbers, ZIP codes, fixed fees and amounts with a hard cap don’t. Drop zeros and negatives, which have no meaningful first digit.

  2. Take the first digit and count

    For each deposit, take the first non-zero digit: $1,840 gives 1, $73.50 gives 7. Count how many deposits start with each digit.

    In Storek
    You ask

    “Do any branches' cash deposits break Benford's law?”

    What Storek did
    • took the first digit of every cash deposit, branch by branch
    • compared each branch's digits with the shape Benford's law expects
    • ranked the branches by how far they drift from it
    The answer

    Mill Creek follows the curve closely; the branch to look at is the one that drifts furthest.

    Dig deeper: see how it works

    Storek counted every deposit, not a sample, left out refunds and amounts under a dollar, and kept account numbers masked throughout. Open any branch to drill from its total to the individual deposits behind the gap.

    For analysts
    SELECT CAST(SUBSTR(CAST(ABS(amount) AS TEXT), 1, 1) AS INTEGER) AS first_digit,
           COUNT(*) AS deposits
    FROM cash_deposits
    WHERE branch = 'Mill Creek' AND amount >= 1
    GROUP BY first_digit
    ORDER BY first_digit;
  3. Compare with the expected shares

    Divide each count by the total and set it beside log10(1 + 1/d).

    First digitExpected shareDepositsObserved shareGap (points)
    130.1%1,39829.1%1.1
    217.6%81216.9%0.7
    312.5%58812.2%0.3
    49.7%4178.7%1.0
    57.9%3717.7%0.2
    66.7%3527.3%0.6
    75.8%3106.4%0.6
    85.1%2876.0%0.8
    94.6%2775.8%1.2
    Sample dataMill Creek's 4,812 cash deposits by first digit. Gaps are worked out before rounding; the largest is 1.2 percentage points, on digit 9. Invented data.

    The chart at the top of this page draws the same table: bars for what happened, a line for what Benford’s law expects.

  4. Measure the distance, not just significance

    There are two common ways to put one number on the gap. A chi-square test asks whether the gap is bigger than chance would produce. For Mill Creek it comes to 36.6; the critical value for 8 degrees of freedom at p = 0.001 is 26.125, so formally the branch “fails.”

    But look at the table. No digit is off by more than 1.2 points. With nearly 5,000 deposits, a formal test calls even small, harmless gaps significant. So also measure the size of the gap. The mean absolute deviation (MAD) averages the nine gaps: 0.0073 for Mill Creek, or 7.3 when multiplied by 1,000 to make it readable. Use it to compare branches with each other.

  5. Rank the branches

    Run the same steps for every branch and sort by distance from the curve.

    Dark-mode bar chart of distance from Benford's law by branch, MAD times 1,000: Airport Rd 14.6 stands out; the other seven branches range from 4.4 to 8.1.
    Sample dataDistance from Benford's curve by branch. Airport Rd sits at about twice the next branch. Invented data.

    Airport Rd stands out at 14.6. Its deposits have fewer leading 1s than expected and noticeably more leading 8s and 9s: 7.5% and 8.2% of deposits, against 5.1% and 4.6% expected.

  6. Hand the lead to a person

    A pile-up on 8 and 9 has several possible explanations. Amounts kept just under a reporting or approval threshold produce it. So does a branch near a car dealership whose customers deposit similar large sums, or a single business making many near-identical deposits. The screen can’t tell these apart. An investigator, looking at the actual deposits, can.

A screen is not a finding

This is the line that matters most. A Benford deviation says the numbers don’t look like typical naturally arising amounts. It doesn’t say why. A 2017 Journal of Accountancy article puts it directly: counting leading digits “will never decidedly prove the absence or presence of fraud.”

Honest reasons a branch drifts from the curve include its customer mix, minimum or fixed amounts, and simple size: a branch with a few hundred deposits will wander from the curve by chance. Treat the ranked list as a work queue for review, not as a list of suspects.

The same screen on public data

Storek’s public-data financial workspace runs a Benford conformity screen per institution and per state, as one of 39 pre-built analyses built only on public data. The map below shows the shape of that per-state view, drawn on invented numbers.

US map shaded by distance from Benford's law by state, MAD times 1,000, from about 4 to 17. Nevada and Georgia are the darkest.
Sample dataDistance from Benford's curve by state, the per-state view of the screen. The values here are invented; Nevada and Georgia were set high to show how outliers read. Invented data.

On your own deposits, you can ask the question in plain English, for example “Do any branches’ cash deposits break Benford’s law?”, and read the SQL behind the answer. Account numbers and customer names in those files are detected and masked when read; tokenized account numbers still join deposits to customers.

Sources

  1. I've Got Your Number (Mark J. Nigrini, May 1999) · Journal of Accountancy · checked November 9, 2026
  2. Using Excel and Benford's Law to detect fraud (J. Carlton Collins, April 2017) · Journal of Accountancy · checked November 9, 2026
  3. Benford's Law · Wolfram MathWorld · checked November 9, 2026
  4. Critical values of the chi-square distribution · NIST/SEMATECH e-Handbook of Statistical Methods · checked November 9, 2026

Fraud screeningStatisticsAudit

FAQ

Questions, answered.

What is Benford's law?

An observation that in many naturally occurring sets of numbers, the first digit is more often small than large. The expected share for first digit d is log10(1 + 1/d): about 30.1% of numbers start with 1, and about 4.6% start with 9.

Does a Benford deviation prove fraud?

No. It marks data worth a closer look. An AICPA Journal of Accountancy article puts it plainly: counting leading digits will never decidedly prove the absence or presence of fraud. Branch mix, pricing rules and thresholds all move the curve for honest reasons.

What data works for a Benford test?

Amounts that arise naturally and span several orders of magnitude, such as deposits, invoices or expense claims. It doesn't suit assigned numbers (account numbers, ZIP codes), amounts with a fixed price or a cap, or small samples.

How many records does a Benford screen need?

Enough that each digit gets a meaningful count, usually thousands rather than hundreds. With very large samples the opposite problem appears: a formal test flags tiny, harmless deviations as significant, so also look at how big the gap is.

Book a demo

See your own data, delivered.

30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.