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.
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
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
| Number of classes | Result |
|---|---|
| 4 | 15.00 |
| 5 | 12.00 |
| 10 | 6.00 |
| 6 | 10.00 |
| 7 | 8.57 |
| 15 | 4.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.