How to calculate
Ignore signs and zeros and count the first nonzero digit of each value. For a leading digit d, Benford’s expected share is log base 10 of one plus one divided by d. Multiply by the number of values for the expected count.
Worked example
Use Numbers separated by spaces, commas, or new lines 10, 12, 130, 24, 0.03, -45, 0, 512, 631, 9. The result is 9 values counted.
Input and result notes
Use raw numbers without thousands separators. Benford’s law describes many datasets that span multiple orders of magnitude. Differences can arise from sampling, rounding, fixed ranges, and other features of the data.
Benford’s 1938 paper on leading digits