Frequency Distribution Calculator

A frequency distribution is the first step in making sense of a set of numbers, and this calculator builds one for you from any data you paste in. Instead of staring at a long list of values, a frequency distribution groups them into class intervals, equal-width bands across the range of the data, and counts how many values fall into each, turning raw numbers into a clear, compact table that reveals the shape of the data at a glance: where it clusters, how widely it spreads, and whether it leans to one side. Enter your data separated by commas or spaces, choose how many classes you want, and the calculator returns a full table with each class interval, its frequency, its relative frequency as a percentage of the total, and the cumulative frequency, the running total as you move down the classes. It also reports the count, the range and the mean so you have the key summary figures in one place. Those columns each earn their keep. The frequency shows the raw count in each band, the relative frequency shows the share of the data, which is ideal for comparing groups of different sizes, and the cumulative frequency is the basis for finding medians, quartiles and percentiles, and for drawing an ogive. Choosing the number of classes is part of the craft: five to ten suits most data sets, with a common rule of thumb being about the square root of the number of values. This makes the tool genuinely useful for statistics students organising data, for anyone summarising survey results, test scores or measurements, and as a quick way to prepare data for a histogram. Because it recalculates as you change the data or class count, you can see how the grouping affects the picture. The method and a worked example are explained below.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner
Count (n)0
Range0
Mean0
Class intervalFrequencyRelative %Cumulative

How it works

The calculator finds the smallest and largest values, divides the range by the number of classes to get the class width, and forms equal-width intervals from the minimum. Each value is counted into its class, with the top of each interval belonging to the next class except for the final one. Relative frequency divides each count by the total, and cumulative frequency adds the counts as you go down.

Worked example

For the ten values 12 to 25 with five classes, the range is 13 and the class width is 2.6. The intervals run 12 to 14.6, 14.6 to 17.2, and so on. Each interval here happens to contain two values, so every frequency is 2, each relative frequency is 20 percent, and the cumulative frequencies climb 2, 4, 6, 8, 10. The mean of the data is 18.6.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About

Reviewed and maintained. Last reviewed 2026-06-05 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2019 to 2026 Calculate.co.nz. All rights reserved.