Segmented Bar Graph Maker
Create segmented bar graphs to compare how categories are distributed across groups. Enter counts from a two-way table and instantly build 100% stacked bars with conditional percentages, clear labels and a matching data summary.
Your Segmented Bar Graph
Enter your values, or choose an example. No result is calculated until you select the calculation button.
What Is a Segmented Bar Graph?
A segmented bar graph divides each bar into categories that represent parts of a group. In a 100% segmented bar graph, every bar has the same total height, and each segment represents a percentage of that group's observations. This makes conditional distributions easier to compare.
How to Make a Segmented Bar Graph
Start with a two-way frequency table showing the number of observations in each category for every group. Divide each category count by its group total, convert the result to a percentage, and display those percentages as segments of a 100% bar.
Segmented Bar Graph Formula
To calculate a segment's percentage, divide its frequency by the total frequency for the same group and multiply by 100. The segments within a group sum to 100%.
Segment percentage = (category count / group total) × 100
Segmented vs. Stacked Bar Graphs
A 100% segmented bar graph normalizes each group to 100%, making relative composition easy to compare. An ordinary stacked bar graph uses the original counts or values, so the overall bar heights can differ between groups. Choose the version that matches the question.
How to Read a Segmented Bar Graph
Read the group label first, then compare the percentage occupied by each category within that group. Larger segments represent larger conditional shares, not necessarily larger absolute counts. Check the original group totals before making conclusions about the number of observations.
Segmented Bar Graphs and Two-Way Tables
A two-way table organizes counts for two categorical variables. A segmented bar graph turns the conditional percentages from that table into a visual comparison. Different segment patterns can suggest an association between the variables, although a statistical test may be needed to evaluate evidence formally.
Input Assumptions and Display Limits
Enter nonnegative whole-number frequencies, not precomputed percentages. Each count may be at most 1,000,000,000,000; use at most 12 groups and 8 categories. Categories must represent non-overlapping parts of each group. Empty cells are not treated as zero.
A zero-total group has undefined conditional percentages and is omitted from the chart with an explicit message, while remaining in the table. Data is not a formal test of association. The chart and copyable table use the same unrounded within-group proportions.
Worked Segmented Bar Graph Examples
These examples use illustrative data, not your current inputs.
Example 1: Compare Two Groups
Group A has 24 Yes responses and 16 No responses. Its total is 40, so Yes represents 60% and No represents 40%. Group B has 15 Yes responses and 35 No responses, for a total of 50. Its shares are 30% and 70%. A 100% segmented chart makes the difference in these group distributions easy to see.
Example 2: Why Group Totals Matter
Suppose one group contains 20 observations and another contains 100. A 100% segmented chart compares their internal proportions, not their absolute group sizes. Two equally sized visual segments can represent very different counts.
Example 3: Stacked Counts vs. Percentages
If Group A contains 40 observations and Group B contains 50, a stacked-count graph has bar totals of 40 and 50. A 100% segmented graph makes both bars reach 100% and shows each category’s conditional percentage.
Frequently Asked Questions
What is a segmented bar graph?
It is a bar chart divided into segments representing categories within each group. In a 100% segmented graph, the segments of every bar add to 100%.
How do I make a segmented bar graph from a two-way table?
Enter the counts for each category within each group. Divide each count by its group total, convert to a percentage, and build a stacked bar whose segments total 100%.
What is the difference between a segmented and a stacked bar graph?
A 100% segmented graph compares proportions by normalizing every bar to 100%. A stacked-count graph preserves original totals, so bars may have different heights.
What is conditional relative frequency?
It is the proportion of observations in a category within a specified group. Divide the category’s count by the total number of observations in that group.
Why do all bars reach 100%?
Because the graph is comparing the composition of each group. Every group’s category percentages sum to 100%.
Can a segmented bar graph show counts instead of percentages?
Yes. Switch to the stacked-counts mode to display original frequencies and compare group totals.
Can I compare groups with different sample sizes?
Yes. A 100% segmented graph is especially useful for comparing proportions when group sizes differ, but the original counts should still be reviewed.
Does a segmented bar graph prove that two variables are associated?
No. It can reveal differences in observed conditional distributions, but interpreting their significance requires considering sample size, sampling design and possibly a formal statistical test.
Sources and Methodology
Counts are checked as a rectangular two-way table of nonnegative safe integers. Conditional proportions divide each count by its own group total, never the grand total. A shared result model drives every segment, accessible table and clipboard output. Stable category order, numeric labels and category-index hatch patterns supplement colors.
Reviewed: October 2026. Calculations run in your browser. No signup, upload, or server-side data processing is required. Read our methodology.