Key Points
- Categorical data records which group a value belongs to, such as a blood group, an eye colour or a clothing size, rather than an amount.
- It comes in two kinds: nominal data, whose categories have no natural order, and ordinal data, whose categories do.
- You can count categorical data and find its mode, and ordinal data also has a median, but neither has a meaningful mean.
- Bar graphs and pie charts suit categorical data, while histograms are for numerical data measured on a continuous scale.
- Numbers used as labels, such as a shirt number or a postcode, are still categorical data because arithmetic on them means nothing.
Groups, Not Amounts
Ask forty-one people their blood group and you get answers such as O, A, B and AB. None of those answers is a quantity. You cannot add O to A, and there is no average blood group.
That is categorical data: each value names a group. It is the most common kind of data in everyday life and the one most often handled with the wrong tools.

What Is Categorical Data?
Categorical data, also called qualitative data, describes a quality or a group membership. Each observation falls into one of a fixed set of categories.
Its opposite is numerical data, also called quantitative data, which records amounts that can be counted or measured, such as height or the number of siblings.
The test is simple. If arithmetic on the values gives a meaningful answer, the data is numerical. If it does not, the data is categorical.
Try It Yourself
Use the chart maker to see Categorical Data at work: drag, change the numbers and watch what happens.
What Are the Two Types of Categorical Data?
The difference is whether the categories have an order.
- Nominal data has categories with no natural order. Blood group, eye colour and favourite sport are nominal, because no category ranks above another.
- Ordinal data has categories with a natural order. Satisfaction ratings from very unhappy to very happy, clothing sizes from small to extra large, and finishing positions in a race are all ordinal.
Ordinal data has order but no fixed gaps. The step from small to medium need not equal the step from medium to large, so subtracting one category from another still means nothing.
What Can You Calculate With Categorical Data?
Fewer things than with numbers, and the limits matter.

You can always count how many values fall in each category, turn those counts into percentages, and find the mode, the most common category. With ordinal data you can also put values in order and find the median. Neither type has a meaningful mean.
How Do You Display Categorical Data?
Bar graphs and pie charts are the standard choices.

A bar graph compares the count in each category, with gaps between the bars to show that the categories are separate. For nominal data the bars can go in any order, often from largest to smallest; for ordinal data they should follow the natural order.

A pie chart shows each category as a share of the whole, which works when there are only a few categories and the shares add up to a meaningful total.
Examples of Categorical Data
Example 1
Classify each as categorical or numerical: eye colour, height, favourite subject, number of pets.
Eye colour and favourite subject are categorical. Height and number of pets are numerical, because they are amounts.
Example 2
A class codes favourite fruit as 1 for apple, 2 for banana and 3 for mango, then reports a mean fruit of 1.8. What is wrong?
The calculation runs without error, so it looks legitimate.
The numbers are labels, not amounts. A mean of 1.8 does not correspond to any fruit, and changing the codes to 3, 1 and 2 would produce a different mean for exactly the same answers. The correct summary is the mode, or the percentage choosing each fruit.
Example 3
For the blood group data above, what percentage of people have group O?
Example 4
Is a customer rating of poor, fair, good or excellent nominal or ordinal?
Ordinal. The categories have a natural order from worst to best, even though the gaps between them are not measured.
Example 5
Survey ratings from 1 (very poor) to 5 (very good) are collected from 9 people: 2, 3, 3, 4, 4, 4, 5, 5, 5. What is a sound summary?
The median, which is the fifth value in order: 4. The mode is a tie between 4 and 5. A mean can be calculated, but it assumes the gap between each rating is equal, which the scale does not guarantee.
Example 6
Is a postcode categorical or numerical?
Categorical. A postcode is a label for an area, and adding two postcodes or finding their average means nothing, even though the label is written in digits.
Why the Type of Data Decides the Method
Getting the data type right is the first step of every analysis, because it decides which tools are allowed.
- The average depends on it. The mode works for every type, the median needs order, and the mean needs real amounts.
- The chart depends on it. Bar graphs and pie charts suit categories; histograms suit continuous numbers.
- Statistical tests depend on it. Methods for comparing groups of categories differ from methods for comparing averages.
- Coding can hide it. Data stored as numbers in a spreadsheet can still be categorical, and software will happily average it.
The NIST/SEMATECH e-Handbook section on measures of location presents the mean, median and mode as alternative summaries rather than interchangeable ones, which leads to the same rule: choose the summary to fit the data, not the other way round.
What Most Guides Get Wrong About Categorical Data
Two points are usually skipped.
The first is that numbers can be categorical. Guides define categorical data as words and numerical data as numbers. Example 2 shows why that is too simple: shirt numbers, postcodes and survey codes are all written in digits, and averaging them produces nonsense.
The second is that ordinal data sits on a boundary. Many guides list it under categorical data and leave it there. In practice people often treat rating scales as numbers and report means, which can be reasonable but rests on an assumption that the gaps are equal. It is worth knowing when that assumption is being made.
Where Students Trip Up on Categorical Data
Mistake 1: Averaging coded categories
Where it slips in: Spreadsheets where categories are stored as numbers, as in Example 2.
Don't do this: Reporting the mean of codes such as 1, 2 and 3.
The correct way: Report the mode or the percentage in each category.
Students see a column of numbers and reach for the mean by habit, because a spreadsheet column looks the same whether it holds amounts or labels.
Mistake 2: Calling ordinal data nominal
Where it slips in: Classifying rating scales and sizes, as in Example 4.
Don't do this: Treating small, medium and large as unordered.
The correct way: Check whether the categories have a natural order. If they do, the data is ordinal, and the median becomes available.
Mistake 3: Drawing a histogram for categories
Where it slips in: Choosing a chart.
Don't do this: Joining the bars of a blood group chart with no gaps.
The correct way: Use a bar graph with gaps, or a pie chart. Histograms are for numerical data grouped into continuous intervals.
The cost of the first mistake shows up in surveys reported in the news. A headline that the average customer rates a service 3.6 out of 5 hides whether most people chose 4, or whether opinion split sharply between 1 and 5, and those are very different findings.
The Short Version
- Categorical data places each value in a group rather than on a number scale.
- Nominal data has no natural order; ordinal data does, but without fixed gaps.
- Counting and the mode work for all categorical data, the median needs order, and the mean is not meaningful.
- Bar graphs and pie charts suit categories; numbers used as labels remain categorical.
- To work through data handling with a teacher, explore Bhanzu's elementary math tutor sessions or math classes online.
Read More
Research Behind This Article
- NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (2022). itl.nist.gov
- NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.3.14 Histogram (2022). itl.nist.gov
- US Census Bureau, Income and Poverty: income data and reports (2026). census.gov
- US Census Bureau, Decennial Census of Population and Housing (2026). census.gov
- US Bureau of Labor Statistics, Occupational Employment and Wages Summary, May 2025 (2026). bls.gov
Quick Quiz: Check Yourself
Three levels, fresh numbers every time, instant feedback with the working.
Was this article helpful?
Your feedback helps us write better content