Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Frequency Polygon Calculator

Get the plotting point for one class of a frequency polygon: the midpoint of its lower and upper boundaries as x, and the class frequency as y.

Frequency Polygon Calculator

Frequency-polygon x-coordinate
15
The x-coordinate to plot: the midpoint of the class, halfway between its lower and upper boundaries, in the data's own units.
Frequency-polygon y-coordinate
7

Background.

A grouped frequency table tells you how many observations fall in each interval: 10 to 20, 20 to 30 and so on. A frequency polygon turns that table into a line graph, with one point per class placed above the middle of the interval at a height equal to its count, each joined to its neighbours by straight lines. The shape that emerges shows where the data bunch up, how quickly they thin out on either side, and whether there is more than one peak.

Each point needs two numbers. The vertical one is simply the frequency. The horizontal one is the class midpoint, the average of the lower and upper boundaries, which stands in for every value in the class because the table no longer records where inside the interval each observation fell. That substitution is the polygon's built-in approximation, and it is the same one used to estimate a mean from grouped data.

The page works out one point at a time: enter a class's boundaries and count and it returns the coordinates to plot, so you repeat it for every row of the table. Two extra points finish the graph properly, a class of zero frequency one width below the first class and another one width above the last, so the line starts and ends on the horizontal axis. Closed that way, with equal class widths, the polygon encloses the same area as the histogram of the same data.

Polygons earn their place over histograms when you want to compare distributions. Two sets of bars on one chart hide each other; two lines in different colours do not. For groups of different sizes, plot relative frequencies, each count divided by its group's total, so the shapes share a scale.

What is frequency polygon calculator?

A frequency polygon is a line graph of a grouped frequency distribution. Each class is represented by the point (midpoint, frequency), where the midpoint lies halfway between the class's lower and upper boundaries, and consecutive points are joined with straight segments. It is different from an ogive, or cumulative frequency polygon, which plots running totals against the upper class boundaries rather than individual counts against midpoints.

How to use this calculator.

  1. Enter the Class lower boundary and Class upper boundary. For whole-number data grouped as 10–19, 20–29, you can use the stated limits or the true boundaries 9.5 and 19.5; the midpoint comes out at 14.5 either way.
  2. Enter the Class frequency, the number of observations in that class. To compare groups of different sizes, enter the relative frequency (count ÷ total) instead; decimals are accepted.
  3. If your classes have different widths, enter frequency divided by class width so that wide classes do not look artificially tall.
  4. Plot the returned x and y, repeat for each class, then add a zero-frequency point one class width beyond each end and join the points in order.

The formula.

Plot each class at midpoint (lower+upper)/2 with y=frequency

Each class becomes the point (x, y) with x = (lower boundary + upper boundary) ÷ 2 and y = frequency. The midpoint is used because, once data are grouped, every observation in the class is treated as if it sat at the centre of the interval. If the observations in a class are spread evenly that is a fair summary; if they cluster towards one end, the polygon is shifted slightly from the true shape of the data. The frequency passes through unchanged, so whatever scale you enter, raw counts, relative frequencies or densities, is the scale plotted. The upper boundary must be greater than the lower one and the frequency cannot be negative, while negative boundaries are allowed for data such as temperatures or profit and loss.

A worked example.

Example

Suppose 29 quiz scores are grouped into the classes 0–10, 10–20, 20–30, 30–40 and 40–50, with frequencies 3, 7, 12, 5 and 2. For the second class the lower boundary is 10 and the upper is 20, so the midpoint is (10 + 20) ÷ 2 = 30 ÷ 2 = 15 and the point to plot is (15, 7). The other classes give (5, 3), (25, 12), (35, 5) and (45, 2), and adding (−5, 0) and (55, 0) closes the polygon, which peaks at 25. The same midpoints give a grouped mean of 685 ÷ 29 = 23.6. Plotted as relative frequency, the second class would sit at 7 ÷ 29 = 0.241 rather than 7.

class Upper20
class Lower10
frequency7

Frequently asked questions.

Should the midpoint come from class limits or class boundaries?
For classes written as whole-number limits such as 10–19, the true boundaries are 9.5 and 19.5. Because both ends move by the same half unit, the midpoint is 14.5 whichever pair you use. It only matters when classes are written as 10–20, 20–30, where the midpoint is 15.
Why add an empty class at each end of the polygon?
Without them the line starts and stops in mid-air above the first and last classes. A zero-frequency point one class width beyond each end brings the line down to the axis, closes the shape, and with equal widths makes the enclosed area equal to the histogram's.
When is a frequency polygon more useful than a histogram?
When you need to compare two or more distributions on one chart, such as test scores for two classes or waiting times before and after a change. Overlapping bars obscure each other, while lines remain readable, and switching to relative frequencies keeps groups of unequal size comparable.
How is a frequency polygon different from an ogive?
A frequency polygon plots each class's own count at its midpoint, so it rises and falls with the data. An ogive plots the cumulative count at each upper boundary, so it only climbs, and it is used to read off medians, quartiles and percentiles rather than the shape of the distribution.
What should I do if my classes are different widths?
Plot frequency density, the count divided by the class width, instead of the raw count. A class twice as wide naturally catches about twice as many observations, so raw counts would exaggerate it. Enter the density in the frequency field and the plotted heights become comparable.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Plot each class at midpoint (lower+upper)/2 with y=frequency
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon