The Sturges' rule calculator determines the number of bins to use in a histogram from the given sample size.
The following formula is used to find the optimal number of bins to use in a histogram:
Number of Bins = ⌈ 1 + log2(n) ⌉
Where,
n = Number of observations in a dataset,
⌈ ⌉ = Symbols define 'Ceiling' (Round the result up to the nearest integer).