Home · Statistics · Descriptive Statistics · Histogram Calculator

Histogram Calculator

Summarise raw data as a histogram: equal-width bins over the range and the height of each bar, ready to draw or compare.

Your figures

Example result — edit the figures to make it yours

12

Observations16
Class width12
Class 10 to 223 (18.75%)
Class 22 to 343 (18.75%)
Class 34 to 463 (18.75%)
Class 46 to 583 (18.75%)
Class 58 to 70 (inclusive)4 (25%)

What this calculator does

Summarise raw data as a histogram: equal-width bins over the range and the height of each bar, ready to draw or compare. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Class width = (max − min) / classes; bar height = count in the class

The data are split into the requested number of equal-width classes spanning the range: class width = (max − min) / classes.

The first class starts at the minimum value, and classes are left-closed, right-open — a value on a boundary belongs to the class above it — except the last class, which also includes the maximum.

Frequencies count how many observations fall in each class; relative frequencies divide those counts by the total number of observations.

Worked example

With the example inputs this page opens with (number of classes 5), the result is 12.00. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying number of classes
Number of classesResult
415.00
512.00
106.00
610.00
78.57
154.00

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How is a histogram different from a bar chart?

A histogram's bars touch and sit on a continuous number scale: the classes are intervals of a measured variable, and bar area represents frequency. A bar chart compares separate categories, with gaps between the bars.

Why can the same data give different-looking histograms?

The bin count and starting point are choices, not facts: fewer, wider bins smooth the shape out, while many narrow bins make it look jagged. Comparing histograms is only fair when they share the same bins.

How does the Histogram Calculator work?

Summarise raw data as a histogram: equal-width bins over the range and the height of each bar, ready to draw or compare. Data (list) · Number of classes → Class width. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Histogram Calculator need?

Data (list) · Number of classes → Class width. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.