Relative Frequency Bar Graph Maker

Paste a list of answers and this relative frequency bar graph maker builds the frequency table and the graph together. Free, no sign-up.

PNG, SVG or CSV download. Runs in your browser.

Your answers

Example data is loaded so you can see how it works. Replace it with your own numbers.

Labels

Leave blank and the label matches what the bars show.

Chart options
Bars run
Colors
Text size

Large text suits slides and posters. On a phone the preview stays normal size, but downloads and copied images use large text.

Leave these blank and the axis starts at 0 with even steps.

On a shared or school computer, uncheck this or clear your chart when you're done.

Hover over or tap a bar to see its value. From the keyboard, tab to the chart and use the arrow keys.

Written from your data. Edit it if you like, then copy it into your document or web page.

Show data table
On this page

Formula and worked example

relative frequency = f ÷ n

Here f is how many times a category appears and n is the total number of answers. Multiply by 100 for a percent.

With the 25 example answers: Summer 9 ÷ 25 = 0.36, Fall 7 ÷ 25 = 0.28, Spring 5 ÷ 25 = 0.20 and Winter 4 ÷ 25 = 0.16. Together they make 1.00.

Relative frequency is a share, not a count. That's why two classes of different sizes can be compared with it.

With your data

What relative frequency means

Relative frequency is the share of all answers that fall in one category: the category's count divided by the total number of answers (f ÷ n).

OpenStax Introductory Statistics, section 1.3, defines frequency as "the number of times a value of the data occurs." It defines relative frequency as "the ratio (fraction or proportion) of the number of times a value of the data occurs in the set of all outcomes to the total number of outcomes," and cumulative relative frequency as "the accumulation of the previous relative frequencies."

Relative frequency bar graph vs histogram

Use a relative frequency bar graph for categories: favorite season, eye color, type of pet. The bars are separate, and you can reorder them. Use a histogram for numbers grouped into intervals, like test scores from 70 to 79. Its bars touch and stay in number order. OpenStax covers histograms in section 2.2. For side-by-side examples of the two, see how a histogram differs from a bar graph. To draw one from your own numbers, use the histogram maker.

Relative frequency bar graph compared with a histogram
Relative frequency bar graphHistogram
DataCategories, like favorite season or eye colorNumbers grouped into intervals, like test scores
BarsSeparate, with gapsTouching
OrderYou can reorder themStay in number order

When to use it

  • You have raw survey answers and want the counts done for you.
  • You're comparing groups of different sizes, like two classes or two schools.
  • Your assignment asks for a frequency table next to the graph.

Switch Bar height shows to Frequency when you want counts on the axis instead of proportions.

Related tools and guides

Frequently asked questions

How do you find relative frequency?

Count how many times each answer appears, then divide each count by the total number of answers. If 9 of 25 students pick summer, summer's relative frequency is 9 ÷ 25 = 0.36.

Do relative frequencies always add to 1?

Yes, before rounding. Every answer lands in exactly one category, so the shares add to the whole. Rounded values can drift to 0.999 or 1.001, so this tool rounds with the largest remainder method to keep the column at exactly 1.

What is the difference between frequency and relative frequency?

Frequency is a count: 9 students chose summer. Relative frequency is that count as a share of everyone: 9 out of 25, or 0.36. Relative frequency lets you compare groups of different sizes.

Is a relative frequency bar graph the same as a histogram?

No. A relative frequency bar graph has one bar per category, like seasons or colors, with gaps between the bars. A histogram groups numbers into intervals, like heights from 150 to 155 cm, and its bars touch because the intervals run into each other.

What is cumulative relative frequency?

It's a running total of the relative frequencies, adding each category to the ones before it. It only makes sense when the categories have a natural order, like grades or ratings, so the tool shows it only when you tick Show cumulative columns in the table.

How this page is checked

Cedrick Reese built this calculator. The counts, relative frequencies and percents were recalculated separately from the tool's own code against the 25-answer example and against edge cases like ties, a single category and answers that differ only by capital letters. The rounding was checked to confirm the columns add to exactly 1 and 100. Definitions are quoted from OpenStax Introductory Statistics, section 1.3, and the page is reread whenever the calculator changes.

Last updated: