Two-Way Tables: Definition, Method and Examples
A two-way table organizes counts for two categories at the same time. Its interior cells show joint categories, while the row totals, column totals, and the grand total help check the data and support later calculations.
Often used after initial data collection, a two-way table expands on simple frequency tables by comparing two variables simultaneously.
What is a two-way table?
A two-way table, also known as a contingency table, is a grid that displays the frequencies of two different categorical variables.
Data from two-way tables can be easily displayed in side-by-side bar charts to visually compare the categories.

The rows represent the categories of the first variable, and the columns represent the categories of the second variable.
Identify two variables
A valid two-way table requires exactly two categorical variables. Each variable must be broken down into mutually exclusive categories.
For example, a survey might record a person's transportation method to school (Bus, Car, Walk) and their status (Student, Teacher). Every surveyed person must fit into exactly one transportation method and exactly one status.
Just as tally charts help count single variables, the variables in a two-way table determine the required number of rows and columns.
Each observation belongs in exactly one interior cell.
Fill interior cells
The interior cells are the core of the table. They represent the joint frequencies, meaning they show how many observations share both specific characteristics.
To fill the interior cells, carefully place each given number into the intersection of its two categories.
If you know that students take the bus, place in the cell where the "Student" row intersects the "Bus" column.
Calculate row column and grand totals
The margins of the table contain the totals. The values in the margins are found by adding the numbers across each row and down each column.

If you are given a total and an interior value, use subtraction to find the missing interior cell.
The grand total is the overall number of observations. It sits in the bottom-right corner of the table.
Check the table
The grand total provides a built-in mathematical check for your work.
The sum of the row totals must exactly equal the grand total. Independently, the sum of the column totals must also exactly equal the grand total.
Just like interpreting data graphs, verifying a two-way table requires careful attention to the labels and totals. If the row totals and column totals do not sum to the same grand total, an arithmetic mistake has occurred.
The grand total equals the sum of the row totals, or the sum of the column totals. Do not add both together.
Worked examples
Working methodically through rows or columns that have only one missing value is the most reliable way to complete a table.
Example 1: Completing missing frequencies
Question: Complete the two-way table below showing the sports chosen by students.

Method:
- Find a row or column that has only one missing value. The Track column has a total of and a Senior value of . The Junior Track value is .
- The Junior row now has Tennis () and Track (). The Junior Total is .
- The Grand Total column shows students overall, with a Junior Total of . The Senior Total is .
- The Senior row has a Total of and Track is . The Senior Tennis value is .
- The Tennis column has Junior () and Senior (). The Tennis Total is .
Answer:
- Junior Track:
- Junior Total:
- Senior Total:
- Senior Tennis:
- Tennis Total:
Check: Sum the Tennis Total and Track Total to ensure they match the grand total: .
Example 2: Constructing a table from text
Question: people were asked about their preferred holiday destination: Beach or City. There were adults, and of them chose a City holiday. In total, people chose a Beach holiday. How many children chose a Beach holiday?
Method:
- Set up a two-way table with variables "Age Group" (Adult, Child) and "Destination" (Beach, City).
- Enter the given values: Grand Total = , Adult Total = , Adult City = , Beach Total = .
- Find the Adult Beach value: .
- Find the Child Beach value by using the Beach Total: .
Answer: children chose a Beach holiday.
Check: Ensure the remaining values balance. Total City . Child Total . Child City . Does Child Beach () + Child City () equal Child Total ()? Yes.
Example 3: Calculating fractions from a table
Question: Using the completed data from Example 2, what fraction of the people who chose a City holiday were adults?
Method:
- Identify the specific subgroup being asked about. The question asks about "people who chose a City holiday". This is the City Total, which is . This is the denominator.
- Identify the target category within that subgroup. The question asks for "adults". The number of adults who chose City is . This is the numerator.
- Write the fraction and simplify.
- Divide the numerator and denominator by their greatest common factor, .
Answer: of the people who chose a City holiday were adults.
Check: The number of children who chose a City holiday is . , which represents the whole subgroup.
Common mistakes
A frequent arithmetic mistake is attempting to add the row totals and the column totals together to get a new grand total. Because the interior observations are counted once in the row total and once in the column total, adding both sets of totals will count every observation twice.
Another common error is confusing an interior cell value with a marginal total. Always read the column and row headers carefully to confirm whether a number represents a joint frequency or a complete subgroup total.
Frequently asked questions
Can an observation be counted in several interior cells?
No. The categories for each variable must be mutually exclusive. Every observation belongs in exactly one row category and exactly one column category, resulting in exactly one interior cell.
Do two-way tables only work with numerical continuous data?
No. Two-way tables are specifically designed to organize categorical data (such as colors, transport types, or age groups), rather than continuous numerical data (such as exact heights or times).
What is a contingency table?
A contingency table is another name for a two-way table. The term is widely used in statistics and probability when analyzing the relationship between two variables.
Practice questions

Based on the two-way table, how many students are under 15 and chose the piano?

What is the missing value for the number of adults who chose the bus?
How is the grand total of a two-way table calculated?
By adding all the interior cells, all the row totals, and all the column totals together.
By adding all the row totals together, or by adding all the column totals together.
By adding the sum of the row totals to the sum of the column totals.
By subtracting the interior cell values from the column totals.
By adding all the row totals together, or by adding all the column totals together.
A student checks a two-way table by adding the sum of the row totals and the sum of the column totals together to find the grand total. What is the result of this method?
The student will calculate the correct grand total.
The student will calculate exactly half of the true grand total.
The student will calculate the total number of interior cells in the table.
The student will calculate exactly twice the true grand total.
The student will calculate exactly twice the true grand total.

Based on the table, what fraction of the Senior students chose swimming?
