Data Visualization

Histogram Generator

Build an equal-width histogram with explicit bin rules and a frequency table. Explore binning and handle constant observations correctly.

Jump to calculator ↓Help me choose a test

Show the distribution, not just an average

Enter at least three finite numerical values separated by commas or spaces. Choose Sturges’ rule, a square-root rule or a custom whole-number count of 1–50 bins, then generate. The graph is accompanied by a frequency table and descriptive summaries.

Bins have equal widths over the observed range. Interior boundaries belong to the bin on their right, and the maximum is retained in the final bin. When every value is identical, the tool uses one bin spanning one measurement unit around that value to keep the count visible; the reported observed range remains zero.

Worked example

Enter 1,2,3,4,5 and choose two custom bins. The observed range is 1–5 and width is 2. The first bin [1,3) contains 1 and 2, giving frequency 2. The second [3,5] contains 3,4,5, giving frequency 3. Relative frequencies are 40% and 60%.

The final bin includes its upper endpoint even if a compact display does not spell out every bracket. The frequencies sum to the observation count. Rounded displayed boundaries do not imply the calculation uses rounded edges.

Binning changes the view

Try a few reasonable widths and inspect the observations as well. Too few bins can hide clusters; too many create noise. Sturges and square-root rules are starting heuristics, not guarantees of the best graph.

Counts describe these entries. A bell-shaped histogram does not establish normality, independent sampling or representativeness. With a very small sample, a dot plot may expose the individual values more clearly.

This tool does not overlay a fitted normal density, run a normality test or export a publication-ready chart. The frequency table provides a readable alternative to the canvas graph.

Continue

Read data visualization, compare descriptive summaries, and use frequency tables to check denominators.

Want to learn the theory?

Our lessons explain the statistical concepts behind this calculator with clear examples.

Understand this method →