Skip to content

Histogram Bin Width Calculator

Result

Calculated result 2 Based on the values entered.
↗ Statistics

Histogram Bin Width Calculator Calculate optimal histogram bin width using Sturges' rule or Scott's rule. — free online calculator.

Formula

Sturges: k=1+log₂(n); Scott: k=√n
  • Histogram Bin Width Calculator calculates its result from Log2, N, Periods. It uses the formula Sturges: k=1+log₂(n); Scott: k=√n. Change any input to recalculate the result instantly.
  • The main inputs are Log2, N, Periods. Enter them in the units and format shown in the calculator.
  • Keep comparable quantities in compatible units whenever the formula combines or compares them.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Histogram Bin Width

Inputs
  • Log2: 2
  • N: 3
  • Periods: 4

Using Log2 = 2, N = 3, Periods = 4, the calculated result is 2.

Sample result: Calculating…

Frequently asked questions

What does the Histogram Bin Width calculate?

Histogram Bin Width Calculator Calculate optimal histogram bin width using Sturges' rule or Scott's rule. — free online calculator.

Which values should I enter?

Enter Log2, N, Periods using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: Sturges: k=1+log₂(n); Scott: k=√n.

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 7, 2026