Histogram Calculator

Group raw numeric data into equal-width bins and inspect frequencies, observation count, and mean.

Generate a histogram
Enter numerical observations and choose the number of equal-width bins.

About histograms

A histogram displays the distribution of numerical observations by grouping them into adjacent intervals called bins. The horizontal axis represents value ranges, while the height of each bar represents how many observations fall in that range. Unlike a bar chart for separate categories, histogram bars touch because the underlying numeric scale is continuous. The resulting shape helps reveal concentration, spread, skewness, gaps, and possible outliers. This calculator finds the minimum and maximum in the entered data and divides that span into the requested number of equal-width bins. Internal lower boundaries are inclusive and upper boundaries are exclusive, while the final bin includes the maximum. This consistent rule assigns every observation to exactly one interval. The output lists each range and frequency, providing the values needed to draw bars. It also reports the observation count and arithmetic mean as quick checks on the data. Bin selection matters because a histogram is a summary rather than a unique picture. A very small number of bins oversmooths the distribution and can conceal important peaks. Too many bins can produce a jagged display dominated by sampling noise. Common starting rules include using the square root of the sample size or Sturges' rule, but neither replaces judgment. Round boundaries can improve readability, and subject-specific thresholds may be more informative than mechanically equal classes. Explore several reasonable counts and focus on features that persist. Histograms support many practical decisions. A manufacturer can examine whether dimensions cluster near a target, a teacher can view the spread of exam scores, and an analyst can inspect transaction sizes or response times. Comparing groups requires common bin boundaries; changing the ranges between panels can create misleading visual differences. Relative frequencies or densities are preferable when groups have very different sample sizes, although this calculator reports ordinary counts. Always clean and understand the input before interpreting the result. A mistyped extreme value can stretch the range, leaving most observations compressed into one or two bins. Missing values, rounded measurements, and mixed units can also distort the shape. The mean is useful but does not describe the complete distribution, especially for skewed or multimodal data. Pair the histogram with median, standard deviation, quartiles, and contextual knowledge. Used thoughtfully, equal-width bin counts offer a fast and transparent foundation for exploratory data analysis.

Histogram examples

Data and binsBin frequenciesInterpretation
1,2,3,4,5; 2 bins2 and 3The maximum is included in the final bin.
0,0,10,10; 2 bins2 and 2Two separated clusters produce equally high end bins.
2,3,3,4,8,9; 3 bins4, 0, 2An empty middle bin highlights a gap.

How to generate a histogram

  1. Enter numeric observations separated by commas, spaces, or semicolons.
  2. Choose the number of equal-width bins.
  3. Select Generate Histogram to count values in every interval.
  4. Use the ranges and frequencies to inspect the distribution's shape.

Histogram FAQ

What does a histogram show?

It shows how often numeric observations occur within adjacent value intervals. Its shape summarizes concentration, spread, skew, gaps, and potential outliers.

How many bins should I choose?

Try the square root of the sample size as a starting point, then compare nearby counts. Choose a level that reveals stable structure without emphasizing random noise.

Why do histogram bars touch?

The bins occupy adjacent ranges on a continuous numeric scale. Touching bars communicate that continuity, unlike separated bars used for unrelated categories.

Where is a value on a boundary counted?

Internal boundary values enter the bin on their right. The final bin includes the maximum so every observation is counted exactly once.

Can two histograms be compared?

Yes, but they should use identical boundaries and comparable frequency scales. Relative frequency is often better when the sample sizes differ substantially.