Bar Graph MakerOnline List Maker

Online List Maker › Bar graph maker › What is a histogram?

What is a histogram?

A histogram shows how a list of numbers is spread out. The numbers are sorted into equal ranges called bins, and each bar’s height is how many values landed in that bin.

Test scores of 30 students50–60 1; 60–70 4; 70–80 11; 80–90 9; 90–100 5Test scores of 30 students02468101250–60: 1 value (3.3%)160–70: 4 values (13.3%)470–80: 11 values (36.7%)1180–90: 9 values (30.0%)990–100: 5 values (16.7%)55060708090100FrequencyScore
Made-up example data. The 70–80 bin holds 11 of the 30 scores: the most common range.
Make a histogram from your numbers

How to read a histogram

  1. Where’s the peak? The tallest bar is the most common range of values.
  2. How wide is it? Bars spread across a wide range mean the values vary a lot; a narrow cluster means they’re similar.
  3. Is it lopsided? A long tail on one side is called skew, named for the side the tail is on.
  4. Any gaps or strays? A bar sitting off on its own may be an outlier, or a mistake in the data.

Each bar includes its left edge and not its right. In the graph above, a score of exactly 80 is counted in 80–90, not 70–80.

Common shapes

Symmetric, one peak (bell-shaped)

Bar graph15–20 1; 20–25 2; 25–30 5; 30–35 10; 35–40 42; 40–45 57; 45–50 73; 50–55 83; 55–60 67; 60–65 33; 65–70 23; 70–75 3; 75–80 102040608010015–20: 1 value (0.2%)20–25: 2 values (0.5%)25–30: 5 values (1.2%)30–35: 10 values (2.5%)35–40: 42 values (10.5%)40–45: 57 values (14.3%)45–50: 73 values (18.3%)50–55: 83 values (20.8%)55–60: 67 values (16.8%)60–65: 33 values (8.3%)65–70: 23 values (5.7%)70–75: 3 values (0.7%)75–80: 1 value (0.2%)1520253035404550556065707580Frequency

Most values sit near the middle and thin out evenly on both sides. Heights and many test scores look like this.

Skewed right

Bar graph15–20 50; 20–25 105; 25–30 92; 30–35 52; 35–40 30; 40–45 19; 45–50 18; 50–55 10; 55–60 7; 60–65 6; 65–70 6; 70–75 3; 75–80 0; 80–85 0; 85–90 0; 90–95 0; 95–100 0; 100–105 202040608010012015–20: 50 values (12.5%)20–25: 105 values (26.3%)25–30: 92 values (23.0%)30–35: 52 values (13.0%)35–40: 30 values (7.5%)40–45: 19 values (4.8%)45–50: 18 values (4.5%)50–55: 10 values (2.5%)55–60: 7 values (1.7%)60–65: 6 values (1.5%)65–70: 6 values (1.5%)70–75: 3 values (0.7%)100–105: 2 values (0.5%)1520253035404550556065707580859095100105Frequency

A long tail toward the high values: most are low, a few are much higher. Incomes, house prices and waiting times often look like this. The mean is pulled above the median.

Skewed left

Bar graph5–10 1; 10–15 1; 15–20 0; 20–25 3; 25–30 2; 30–35 5; 35–40 9; 40–45 4; 45–50 13; 50–55 21; 55–60 19; 60–65 38; 65–70 39; 70–75 72; 75–80 93; 80–85 800204060801005–10: 1 value (0.2%)10–15: 1 value (0.2%)20–25: 3 values (0.7%)25–30: 2 values (0.5%)30–35: 5 values (1.2%)35–40: 9 values (2.2%)40–45: 4 values (1.0%)45–50: 13 values (3.3%)50–55: 21 values (5.3%)55–60: 19 values (4.8%)60–65: 38 values (9.5%)65–70: 39 values (9.8%)70–75: 72 values (18.0%)75–80: 93 values (23.3%)80–85: 80 values (20.0%)510152025303540455055606570758085Frequency

A long tail toward the low values: most are high, a few are much lower. Scores on an easy test often look like this. The mean is pulled below the median.

Two peaks (bimodal)

Bar graph10–15 2; 15–20 4; 20–25 22; 25–30 49; 30–35 62; 35–40 45; 40–45 15; 45–50 2; 50–55 2; 55–60 15; 60–65 46; 65–70 57; 70–75 49; 75–80 22; 80–85 801020304050607010–15: 2 values (0.5%)15–20: 4 values (1.0%)20–25: 22 values (5.5%)25–30: 49 values (12.3%)30–35: 62 values (15.5%)35–40: 45 values (11.2%)40–45: 15 values (3.7%)45–50: 2 values (0.5%)50–55: 2 values (0.5%)55–60: 15 values (3.7%)60–65: 46 values (11.5%)65–70: 57 values (14.3%)70–75: 49 values (12.3%)75–80: 22 values (5.5%)80–85: 8 values (2.0%)10152025303540455055606570758085Frequency

Two clusters, which often means two different groups are mixed together, such as the heights of children and adults.

Flat (uniform)

Bar graph10–15 23; 15–20 31; 20–25 15; 25–30 32; 30–35 29; 35–40 24; 40–45 17; 45–50 25; 50–55 26; 55–60 21; 60–65 23; 65–70 26; 70–75 26; 75–80 28; 80–85 23; 85–90 310510152025303510–15: 23 values (5.8%)15–20: 31 values (7.8%)20–25: 15 values (3.7%)25–30: 32 values (8.0%)30–35: 29 values (7.3%)35–40: 24 values (6.0%)40–45: 17 values (4.2%)45–50: 25 values (6.3%)50–55: 26 values (6.5%)55–60: 21 values (5.2%)60–65: 23 values (5.7%)65–70: 26 values (6.5%)70–75: 26 values (6.5%)75–80: 28 values (7.0%)80–85: 23 values (5.7%)85–90: 31 values (7.8%)1015202530354045505560657075808590Frequency

Every range is about equally common, like the results of rolling a fair die many times.

The five shape examples are 400 simulated values each, drawn so the shapes are clear.

Choosing the bins

The same data can look quite different with different bin widths. With too few bins, the shape collapses into two or three blocks; with too many, most bars hold one or two values and the outline turns ragged. Somewhere between 5 and 20 bars usually works. A common starting point is Sturges’ rule (1926): about log₂(n) + 1 bins for n values, which is what the histogram maker uses before rounding the width to a tidy number like 2, 5 or 10. If the shape changes a lot when you try a different width, there isn’t enough data to trust it.

Histogram or bar graph?

A histogram starts from a list of measurements; a bar graph starts from categories with a number each. The bars of a histogram touch and can’t be reordered; the bars of a bar graph have gaps and can be sorted. The full comparison →

The table behind a histogram is a frequency table: each bin, its count, its share of all values, and the running totals.