Histogram Maker

With this histogram maker you paste numbers, pick a binning rule and get the chart, a frequency distribution table with counts, relative and cumulative frequencies, and summary statistics, all calculated locally in your browser.

Source: Wikipedia – Histogram (Klassenzahl: Sturges, Rice, Scott, Freedman–Diaconis). Updated: .

separate numbers by space, line break or semicolon; a decimal comma is accepted
My ToolboxYour inputs are saved in this browser only.

051015205060708090ValuesCount413176

The histogram updates with every input.

Result

Frequency table
BinCountRelative frequencyCumulative
[50; 60)410%10%
[60; 70)1332.5%42.5%
[70; 80)1742.5%85%
[80; 90]615%100%
Summary
  • Number of values: 40
  • 4 bins of width 10
  • Smallest and largest value: 52 and 90
  • Mean: 71.025
  • Median: 71
  • Standard deviation (sample): 8.5859
  • Quartiles: Q1 = 65.75, Q3 = 76.25

How it is calculated

A histogram shows how data values spread across bins: the area of each bar stands for how often values fall there. At a glance it reveals centre, spread, skew and outliers of a data set.

How it is calculated

First the number of bins is chosen. Sturges uses k = ⌈log₂(n) + 1⌉, the square-root rule k = ⌈√n⌉, Rice k = ⌈2 · ∛n⌉. Freedman-Diaconis and Scott set the width from the data (h = 2 · IQR / ∛n and h = 3.49 · s / ∛n) and cope better with outliers and large samples respectively. The calculator rounds the width up to 1, 2 or 5 times a power of ten so the axis stays readable. Bins are closed on the left, [a; b), and the last bin is closed on both sides.

Good to know

Frequently asked questions

How do you make a histogram?

Split the values into equal-width bins, count the values in each bin and draw the counts as touching bars. The tool does all three steps.

How do I make a frequency distribution table?

Paste your values and pick a binning rule. The table under the chart lists every bin with its count, relative frequency and cumulative frequency: that table is the frequency distribution, and the histogram is its picture.

How many bins should a histogram have?

A rule of thumb is Sturges, k = 1 + log₂(n): about 6 bins for 30 values and 8 for 100. Freedman-Diaconis adapts the width to the spread of the data.

What is the difference between a histogram and a bar chart?

A histogram shows the distribution of numeric data in continuous bins. A bar chart compares separate categories, and its bars have gaps.

Can I save the histogram?

Yes, as a PNG (double resolution, white background) or as an SVG for documents and slides.

Sources and legal basis

As of: · Editorial policy

Related tools