Free graph maker & data converters

Histogram Maker

Paste a column of raw values and see their distribution instantly. Change the number of bins and read the summary statistics below the chart.

Your data
120 rows × 1 columns
Graph
14015016017018019005101520253035Height (cm)Frequency
Hover over a point to read its value.
Statistics
SeriesnMeanMedianSDSEMinMax
Height (cm)120167.72168.188.46290.77255148.39189.47

Statistics are calculated from the raw values, not the binned counts.

Chart options
Y seriesError bars (±)

Units: m^2 → m², H_2O → H₂O, 10^{-3} → 10⁻³, \mu → μ, \deg → °

How to use the Histogram Maker

  1. Paste one column of numbers (one value per row). Add more columns to compare groups.
  2. Choose "Histogram".
  3. Leave bins on Auto (Sturges’ rule) or type a number of bins.
  4. Read n, mean, median, SD and range in the statistics table, then download the chart.

How many bins should a histogram have?

Too few bins hide the shape of the data; too many make it look noisy. Plotiq starts with Sturges’ rule (k = log₂n + 1), which works well for roughly normal data up to a few hundred values. Try a few values: the right number shows the shape clearly without random gaps.

Reading a histogram

Look at the centre (where most values fall), the spread (how wide the bars extend), the shape (symmetric, skewed left or right, one peak or two) and any outliers far from the rest. The statistics table gives the mean, median and standard deviation, so you can check whether the mean is pulled away from the median by skew.

Comparing two distributions

Paste a second column and both histograms are drawn on the same bins with semi-transparent fills. For more than two or three groups, a box plot is usually easier to read.

Choosing bins with a rule

The automatic setting follows Sturges’ rule, which suits samples up to a few hundred values. For larger or skewed data, two other rules are worth trying: Rice’s rule (twice the cube root of n) and Freedman–Diaconis, which sets the bin width from the interquartile range and handles outliers better. For 120 values they give about 8, 10 and 10 bins. The bin guide shows the formulas and a worked example you can reproduce.

What to do if the histogram looks odd

Two peaks usually mean two groups mixed together, such as measurements from two instruments or two batches; split the data by group and plot each separately. A long tail on one side is skew, which a log transform often removes. Gaps between isolated bars with many empty bins point to bins that are too narrow or to rounded data, such as heights recorded to the nearest centimetre. Isolated bars far from the rest are worth checking for typing errors before you decide whether they are real.

Histogram or box plot?

Use a histogram when you have at least a few dozen values and want to see the shape. Use a box plot when you are comparing several groups or have fewer values, because a box plot stays stable at small sample sizes where a histogram changes with every shift in bin edges. The chart choice guide compares all the common types side by side.

Frequently asked questions

What data do I need for a histogram?
Raw measurements: one number per row, such as each student’s height. Plotiq counts how many values fall in each bin for you.
What is the difference between a histogram and a bar graph?
A histogram shows the distribution of one numeric variable using touching bars on a number scale. A bar graph compares separate categories.
Can I change the bin width?
Set the number of bins; the width is the data range divided by that number.
Is my data private?
No. Your data never leaves your browser. Plotiq parses and plots files locally with JavaScript, so nothing is uploaded to a server.

Last updated: · by the Plotiq Editorial Team · Read our guides