Skip to content

Histogram Maker

Paste a list of numbers to draw a histogram. The bins and the frequency table are worked out for you, and you can change the bin width.

Free, no sign-up · Last updated

Data

Separate numbers with spaces, commas, or new lines. You can also paste a spreadsheet column.

Chart options

Chart colors

Numbers

Values (n)

20

Bin width
10
Bins
4
Mean
82.35
Median
83
Frequency by interval
IntervalFrequencyRelative frequencyCumulative frequency
60 to under 70210%2
70 to under 80630%8
80 to under 90735%15
90 to under 100525%20

Definition

What a histogram shows

A histogram groups numerical observations into consecutive intervals and shows how often values fall in each interval. With equal-width intervals, bar height can show a count or a share, so adjacent bars show where the data concentrate.

Binned by
Numeric intervals
Bar height here
Count or share per interval
Shape depends on
Bin width and starting edge

How to make a histogram

Paste or type the raw numbers, one value per data point, not a tally. If 3 students scored 85, enter 85 three times. The maker accepts commas, spaces, tabs, semicolons and new lines between numbers, and it reports any entry it could not read instead of quietly dropping it.

The bins are chosen automatically, but you control them. Type a bin width to set how wide each range is, and a start value to set where the first range begins. Then add a title and axis labels. The horizontal axis is the measurement (Score) and the vertical axis is the count (Number of students). Turn on the counts if you want the frequency printed on top of each bar.

Worked example: math test scores

Twenty students took a math test and scored 62, 67, 71, 73, 75, 76, 78, 79, 81, 82, 84, 85, 86, 88, 89, 90, 92, 94, 96 and 99. This is the example in the maker. The range is 99 − 62 = 37. Sturges’ rule suggests 1 + log₂(20) ≈ 5.3, rounded up to 6 bins. 37 ÷ 6 ≈ 6.2, and the next tidy width is 10. The first bin starts at 60, the multiple of 10 just below the smallest score.

Counting gives 2 scores from 60 to under 70, 6 from 70 to under 80, 7 from 80 to under 90 and 5 from 90 to under 100, which adds up to 20. The tallest bar is the 80s. The mean score is 1,647 ÷ 20 = 82.35 and the median is 83, the average of the 10th and 11th scores (82 and 84). The mean and median are close, which fits the fairly even shape of the histogram.

Reading and describing a histogram

Describe three things: the center, the spread and the shape. The center is where the tallest bars are, or more exactly the median. The spread is how far the data stretches from the lowest bin to the highest. The shape is whether the histogram is symmetric, skewed to one side, or has more than one peak. Mention any bar standing apart from the rest, since it may be an outlier.

Remember that a histogram hides the individual values. You can tell 7 scores fell in the 80s, but not which ones. If you need every value, use a stem-and-leaf plot or a dot plot. To compare the median and quartiles of two groups, a box plot is clearer.

Common mistakes to avoid

Do not leave gaps between bins or use bins of different widths. Unequal widths make wide bins look more important than they are. Do not skip an empty bin either. If no one scored in the 50s, that bin still belongs on the axis with a height of zero, or the graph would hide the gap.

Label the axis with the bin edges, not the middle of each bin, unless your teacher asks for midpoints. The maker puts tick marks at the edges so you can read every range exactly. For the mean, median and standard deviation of the same list, use the statistics calculator.

Step-by-step example

Group the maker’s 20 test scores from 62 through 99 into automatically sized bins.

StepResult
60 to under 702
70 to under 806
80 to under 907
90 to under 1005
Bin width in points10
Mean score82.35
Median score83

Formulas used

Bins and frequencies

Suggested number of bins (Sturges): k = ⌈1 + log₂ n⌉

Bin width ≥ (max − min) ÷ k, rounded up to 1, 2 or 5 × 10ⁿ

Relative frequency = bin count ÷ n × 100%

k
suggested bin count
n
number of observations in the log and percentage
10ⁿ
power of ten in the width rule
log₂
logarithm to base two
⌈ ⌉
round up to a whole number
max
largest observation
min
smallest observation

Example: For the 20 test scores: k = ⌈1 + 4.32⌉ = 6, width ≥ 37 ÷ 6 ≈ 6.2, so 10. Bins from 60 hold 2, 6, 7 and 5 scores, and the 80s bin is 7 ÷ 20 = 35% of the class.

When the answer can mislead

  • Compare charts with the same bin edges so each bar covers the same scores.
  • A percent histogram still depends on which observations were included in the denominator.
  • With unequal bin widths, bar area has to represent frequency for a fair comparison.

Questions

How do I make a histogram?

Type or paste your numbers into the box. They can be separated by commas, spaces or new lines, so a column copied from a spreadsheet works. The maker sorts them into bins, counts how many fall in each, and draws a bar for each bin. Change the bin width or starting value if you want different ranges, then download or print the histogram.

How do I choose the bin width?

Leave the box blank and the maker picks a width for you. It uses Sturges’ rule to suggest about 1 + log₂(n) bins, then rounds the width up to a tidy number such as 2, 5 or 10. You can type your own width instead. Too few bins hide the shape of the data and too many make it look jagged. Five to ten bins usually works for a class data set.

Which bin does a number on the boundary go in?

Each bin includes its lower edge and excludes its upper edge. With a width of 10 starting at 60, a score of 70 goes in the 70 to under 80 bin, not the 60 to 70 bin. The frequency table spells each range out as “60 to under 70” so there is no doubt. Some textbooks write the same bins as 60–69 when the data are whole numbers.

What is the difference between frequency and relative frequency?

Frequency is the count in each bin. Relative frequency is that count as a share of all the data, so it is the frequency divided by the total number of values. Switch the side axis to relative frequency to compare two data sets of different sizes, because the bars then show percentages instead of counts.

Why do the bars of a histogram touch?

The bins cover a continuous range of numbers with no gaps between them, so the bars touch. A gap would mean a range with no data in it. Bar graphs have gaps because their categories are separate things, such as fruits or sports.

What does the shape of a histogram tell me?

A tall middle with sides that fall away evenly is symmetric, which often happens with test scores and heights. A long tail to the right is right-skewed, as with incomes or homework times, and the mean is then usually larger than the median. Two separate peaks can mean two different groups were mixed together.

Last updated How we check
Embed this calculator
Cite this calculator

Histogram Maker. CalculatorLab. https://calculatorlab.site/calculators/histogram-maker/. Last updated .