The Sturges' rule calculator determines the number of bins to use in a histogram from the given sample size.

- First, input the sample size of a dataset.
- Now press the 'Calculate' button.
- Finally, the tool returns the number of bins to use based on the given dataset.

The following formula is used to find the optimal number of bins to use in a histogram:

Number of Bins = ⌈ 1 + log_{2}(n) ⌉

Where,

n = Number of observations in a dataset,

⌈ ⌉ = Symbols define 'Ceiling' (Round the result up to the nearest integer).