Two-way tables
A two-way table sorts people by two questions at once, like “has a pet?” and “plays a sport?”. Each cell counts the people who answer both ways.
Not sure this is the right level? Take the free grade 8 check-up and get a daily practice plan.
Reading a two-way table
Fifty students answered two yes-or-no questions. The rows are pets, the columns are sports, and the last row and column hold the totals.
| Plays a sport | No sport | Total | |
|---|---|---|---|
| Has a pet | 18 | 12 | 30 |
| No pet | 8 | 12 | 20 |
| Total | 26 | 24 | 50 |
- A cell: 18 students have a pet and play a sport.
- A row total: 30 students have a pet (18 + 12).
- A column total: 26 students play a sport (18 + 8).
- The grand total: 50 students in all.
If a cell is missing, use the totals: a row always adds up to its row total.
See it: pictures to draw with your child
Copy these onto paper or a whiteboard. A quick sketch makes the idea concrete before any written method.
Relative frequency
Counts can mislead when the groups are different sizes. Relative frequency turns each count into a fraction or percent of its row (or column):
- Pet owners who play a sport: 18 of 30 = 60%.
- Students without a pet who play a sport: 8 of 20 = 40%.
Now the comparison is fair: 60% versus 40%.
Is there an association?
Standard 8.SP.A.4 asks whether the two variables are associated. If the row percents are about the same, there is no association. If they are clearly different, like 60% and 40%, there is: in this survey, pet owners are more likely to play a sport. As with scatter plots, this does not prove that one causes the other.
A full example: building a table
A survey of 80 students asked: do you have a phone, and do you walk to school? 32 students have a phone and walk; 50 students have a phone in all; 40 students walk in all.
- Phone, does not walk: 50 − 32 = 18.
- No phone, walks: 40 − 32 = 8.
- No phone in all: 80 − 50 = 30, so no phone and does not walk is 30 − 8 = 22.
- Row percents: of phone owners, 32 ÷ 50 = 64% walk; of students without a phone, 8 ÷ 30 ≈ 27% walk.
64% against 27% is a big difference, so in this survey walking to school is associated with having a phone. Perhaps parents give a phone to children who travel alone; the table cannot say why.
Tip: fill the totals first, then each missing cell is just a subtraction.
Row percents or column percents?
The question decides. “Are pet owners more likely to play a sport?” compares pet owners with non-owners, which are the rows, so divide by the row totals. “Are sport players more likely to own a pet?” compares the columns: of the 26 sport players, 18 have a pet (69%); of the 24 who do not play, 12 have a pet (50%). Both ways show the same association, but the percents are different, so always say which group the percent is out of. Dividing by the grand total (18 of 50 = 36%) answers a third question: what fraction of all students have a pet and play a sport.
Two-way table practice
Read cells, totals and row percents from new two-way tables.
Go further
For two number variables, use scatter plots. To review percents, see percentages.
What to say to your child
A short script for teaching it the first time. Pause after each line and let your child do the next step.
- “This table sorts 50 students two ways. What do the rows ask? And the columns?”
- “How many have a pet and play a sport?” (18)
- “How many have a pet in all?” (30)
- “What percent of pet owners play a sport?” (60%)
- “And of students without a pet?” (40%)
- “Does having a pet seem to go with playing a sport?”
More worked examples
Example 1: Cell
No pet and no sport: 12.
Example 2: Column total
No sport: 12 + 12 = 24.
Example 3: Missing cell
Row total 30, one cell 18: the other is 30 − 18 = 12.
Example 4: Relative frequency
No pet, plays a sport: 8 ÷ 20 = 40%.
Practice questions (answers below)
Ask these out loud or write them down. Check each answer, and ask “how did you get that?” for one or two.
- From the table: pet and sport?
- No pet, no sport?
- Total with no pet?
- Total who play a sport?
- Grand total?
- Percent of pet owners who play a sport?
- Percent of non-owners who play a sport?
- Row total 25, one cell 10. Other cell?
Show the answers
- 18
- 12
- 20
- 26
- 50
- 60%
- 40%
- 15
Common mistakes
How to teach it at home
Family survey
Ask relatives two yes-or-no questions (likes coffee? early riser?) and fill in a table.
Class vote
Sort a class vote by grade or by boy and girl, then compare percents.
Sports teams
Make a table of wins and losses at home and away.
By grade
- Grade 8 (8.SP.A.4): two-way tables, relative frequencies and association in categorical data.
- High school: conditional probability from two-way tables.
More for each grade: Grade 8 math and the CBSE class 8 maths guide.
Worksheets and practice

Mean, median, mode and range worksheet: printable PDF with an answer key.
Statistics practice · Statistics levels · Mean, median, mode and range
Last reviewed
Questions parents ask
What is a two-way table?
A table that sorts data by two categories at once, with one variable in the rows and the other in the columns.
What is relative frequency?
A count written as a fraction or percent of its row, column or grand total.
How do you find a missing value in a two-way table?
Use the totals: subtract the known cells from the row or column total.
How do you tell if there is an association?
Compare the row (or column) percents. If they are clearly different, the variables are associated.
What grade learns two-way tables?
Grade 8, in Common Core standard 8.SP.A.4.