Ogive Graph Maker
Quick-load sample data:
| # | Lower Limit | Upper Limit | Frequency | Cumul. Freq. | Lower Boundary | Upper Boundary |
|---|
Ogive Graph Examples
Click any example to load it into the graph maker above
What Is an Ogive?
An ogive (pronounced oh-jive) is a graph that plots cumulative frequencies against class boundaries. It shows how data accumulates across class intervals, making it possible to read the median, quartiles, and any percentile directly from the graph — without calculating them from a formula. The word comes from architecture, where an ogive is the diagonal rib of a Gothic vault, reflecting the S-shaped curve these graphs typically produce.
Two types are used in practice. A less than ogive starts at zero and rises to the total frequency N, with each point showing how many observations fall below that class boundary. A more than ogive starts at N and falls to zero, with each point showing how many observations are at or above that boundary. When plotted together, the two curves cross exactly at the median of the distribution.
What Is Cumulative Frequency?
Cumulative frequency is the running total of frequencies. For each class in a grouped frequency table, you add that class's frequency to the sum of all frequencies before it. The result for any given class tells you how many observations fall at or below that point. By the final class, the cumulative frequency always equals N, the total number of data points.
Less Than vs. More Than Ogive
| Feature | Less Than Ogive | More Than Ogive |
|---|---|---|
| Plotted against | Upper class boundaries | Lower class boundaries |
| Starts at | 0 (before first class) | N (total frequency) |
| Ends at | N (after last class) | 0 |
| Shape | Rises left-to-right (S-curve) | Falls left-to-right (reverse S-curve) |
| Reading the median | Find N/2 on y-axis, read x-value | Find N/2 on y-axis, read x-value |
| Intersection point | Both curves meet at the median on the x-axis | |
How to Draw an Ogive
These six steps apply whether you are drawing by hand or using this tool. Working through them manually at least once builds genuine understanding of what the curve represents.
Arrange your raw data into equal-width class intervals. Record the frequency (count of observations) for each class. The class width should be consistent throughout — unequal widths make the ogive misleading.
For the first class, the cumulative frequency equals its frequency. For each subsequent class, add the class frequency to the previous cumulative frequency. The last cumulative frequency should equal N.
Class boundaries are not the same as class limits. For whole-number data, subtract 0.5 from each lower limit to get the lower boundary, and add 0.5 to each upper limit to get the upper boundary. This closes the gaps between adjacent classes. The tool does this automatically using the boundary offset you set.
For a less than ogive, plot each cumulative frequency against its upper class boundary. Also plot the point (lower boundary of first class, 0) to anchor the curve. For a more than ogive, plot each more-than cumulative frequency against its lower class boundary, starting with the point (lower boundary of first class, N).
Join the points freehand with a smooth S-shaped line. Do not connect them with straight line segments as you would in a frequency polygon — the ogive is drawn as a continuous curve to represent the underlying continuous distribution of the data.
Draw a horizontal line from the value N/2 on the cumulative frequency axis across to the less than ogive curve. From that intersection point, drop a vertical line to the x-axis. That x-value is the estimated median. Repeat with N/4 for Q1 and 3N/4 for Q3. For any percentile P, use P×N/100 as your starting y-value.
Worked Example: Exam Scores
Consider the following grouped frequency distribution of exam scores for 60 students.
| Class Interval | Frequency | Upper Boundary | Cumul. Freq. (Less Than) | Lower Boundary | Cumul. Freq. (More Than) |
|---|---|---|---|---|---|
| 40 – 50 | 4 | 50.5 | 4 | 39.5 | 60 |
| 50 – 60 | 8 | 60.5 | 12 | 49.5 | 56 |
| 60 – 70 | 14 | 70.5 | 26 | 59.5 | 48 |
| 70 – 80 | 18 | 80.5 | 44 | 69.5 | 34 |
| 80 – 90 | 10 | 90.5 | 54 | 79.5 | 16 |
| 90 – 100 | 6 | 100.5 | 60 | 89.5 | 6 |
With N = 60, the median is read at cumulative frequency 30 (N/2). Tracing across from 30 on the less than ogive gives an x-value of approximately 73 — so the estimated median exam score is 73. Q1 is read at cumulative frequency 15 (N/4), giving approximately 62. Q3 is read at cumulative frequency 45 (3N/4), giving approximately 82. The interquartile range is therefore approximately 82 − 62 = 20 marks.
How to Interpret an Ogive
Ogive vs. Other Statistical Graphs
| Graph | Shows | Use instead of ogive when… |
|---|---|---|
| Histogram | Frequency in each class interval as bars | You want to see the shape of a distribution at a glance |
| Frequency polygon | Frequency (not cumulative) connected by straight lines | You want to compare class frequencies directly |
| Scatter plot | Relationship between two continuous variables | You have two variables and want to examine correlation |
| Box plot | Five-number summary (min, Q1, median, Q3, max) | You want a compact summary of spread and symmetry |
| Ogive | Cumulative frequencies across class boundaries | You need to read off medians, quartiles, or percentiles from grouped data |
Applications of Ogive Graphs
Sample Datasets to Practice With
Use the buttons in the tool above to load any of these datasets instantly. Each one illustrates a slightly different distribution shape in the resulting ogive.
| Dataset | Variable | Classes | N | What to notice in the ogive |
|---|---|---|---|---|
| Exam Scores | Marks (/100) | 40–100 in 10s | 60 | Ogive rises steeply in the 60–80 range — most students scored here |
| Heights (cm) | Adult height | 150–195 in 5s | 80 | Symmetric S-curve centered around 170 cm |
| Weights (kg) | Body weight | 50–90 in 5s | 70 | Slight right skew — tail extends toward higher weights |
| Monthly Sales | Units sold | 0–300 in 50s | 50 | Flatter at the high end — fewer months with very high sales |
| Rainfall (mm) | Monthly rainfall | 0–200 in 25s | 48 | Right-skewed — most months have low rainfall with a few very wet months |
Common Mistakes When Drawing an Ogive
- Plotting against class limits instead of class boundaries. Using 50 instead of 49.5 as the upper boundary shifts every point slightly and leads to a less accurate median estimate.
- Plotting frequencies instead of cumulative frequencies. Cumulative frequency must be a non-decreasing sequence. If any value is smaller than the one before it, you are plotting raw frequencies by mistake.
- Not starting at (lower boundary of first class, 0). Missing this anchor point makes the curve end before reaching N and results in an incorrect shape.
- Connecting points with straight lines instead of a smooth curve. The ogive represents an assumed continuous distribution, so a smooth S-curve is always more appropriate than a straight-line frequency polygon style.
- Using unequal class widths. Cumulative frequency ogives assume equal class widths. Unequal widths distort the visual spacing and the percentile readings will not be reliable.
Related Topics on Statistics Fundamentals
Sources & further reading:
- Spiegel, M.R. & Stephens, L.J. (2007). Schaum's Outline of Statistics, 4th ed. McGraw-Hill. [Chapter 2: Frequency distributions and graphs]
- NIST/SEMATECH — Engineering Statistics Handbook — Cumulative frequency plots
- Khan Academy — Statistics and Probability
- Triola, M.F. (2018). Elementary Statistics, 13th ed. Pearson. [Section 2-3: Histograms and ogives]
- OpenStax — Introductory Statistics (open educational resource)
Frequently Asked Questions
An ogive is a graph that plots cumulative frequencies against class boundaries to show how data accumulates across intervals. A less than ogive starts at 0 and rises to the total frequency N, while a more than ogive starts at N and falls to 0. Both are used in descriptive statistics to estimate the median, quartiles, and any percentile from grouped data without needing to work through a formula. The point where the two curves cross is the median of the distribution.
A less than ogive is plotted using upper class boundaries on the x-axis and less-than cumulative frequencies on the y-axis. It rises from left to right, starting at 0 and ending at N. A more than ogive is plotted using lower class boundaries and more-than cumulative frequencies. It falls from left to right, starting at N and ending at 0. Both curves represent the same distribution from opposite perspectives, and they cross at the median.
On a less than ogive, locate the value N/2 on the cumulative frequency (y) axis. Draw a horizontal line from that point until it meets the ogive curve, then drop a vertical line from the intersection point to the x-axis. The x-value you land on is the estimated median. This works because the median is the value that splits the distribution exactly in half — exactly N/2 observations fall below it.
Cumulative frequency is a running total. Start with the frequency of the first class — that is the first cumulative frequency. For each subsequent class, add that class's frequency to the previous cumulative frequency. The last cumulative frequency must equal N, the total number of observations. For a more than ogive, the more-than cumulative frequency for each class is N minus the less-than cumulative frequency of the class before it.
Class boundaries are the true limits between adjacent class intervals. For discrete whole-number data, they are found by subtracting 0.5 from the lower class limit and adding 0.5 to the upper class limit. Boundaries matter because class limits often have gaps between them (e.g., 40–49 and 50–59), while boundaries close those gaps (e.g., 39.5 to 49.5 and 49.5 to 59.5). Using the correct boundaries gives a more accurate ogive and more reliable percentile estimates.
Use a histogram when you want to visualize the shape of a distribution — where the data is concentrated, whether it is skewed, and so on. Use an ogive when you need to estimate percentiles or medians from grouped data, compare what proportion of observations fall below a specific value, or find where two distributions diverge. The ogive is a cumulative tool; the histogram is a frequency tool. Both come from the same frequency table.