← All text tools

Benford's law calculator

Paste or open numbers and compare their leading-digit frequencies with Benford's expected distribution, with a chart, chi-square, MAD and a note that deviations are not proof of fraud.

  • Free
  • No sign-up
  • Works on any device

About Benford's law calculator

Benford's law says that in many naturally occurring sets of numbers the leading digit 1 appears about 30.1 percent of the time and 9 only 4.6 percent, following log10(1 + 1/d). This calculator takes the first non-zero digit of each number you paste, counts them, and compares the shares with the expected ones using a chart, the chi-square statistic with 8 degrees of freedom, the mean absolute deviation with Nigrini's bands, and a per-digit z test. Large deviations deserve a closer look; they are not proof of fraud.

How to use Benford's law calculator

  1. Paste the numbers, or open a text or CSV file, separated by spaces, new lines or semicolons.
  2. Tick the comma option only if commas separate your numbers rather than group their digits.
  3. Read the chart, the chi-square and MAD results and the digits flagged in the table.

Why use this tool?

Also known as

Frequently asked questions

Which data should follow Benford's law?

Numbers that span several orders of magnitude and are not assigned or capped, such as populations, invoice totals or river lengths. Phone numbers, ZIP codes and prices set at fixed points usually do not.

How many numbers do I need?

At least 10 are required here, but samples below a few hundred give weak results, and under about 100 numbers they are unreliable. More data gives a more meaningful chi-square.

Does a failed test mean fraud?

No. Rounding, limits, natural clusters and mixed sources also change digit frequencies. Treat a deviation as a reason to look at the underlying records, not as evidence of wrongdoing.

Is Benford's law calculator free?

Yes. Benford's law calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.