What this tool does
Paste the answers to one Likert item, for one group or two, and get a diverging bar chart, the median, interquartile range, mode and percentage who agree, and, for two groups, the Mann–Whitney U test with an effect size. It also runs a t-test on the means as a check, because both analyses are common and examiners ask about the choice. See how to analyze Likert scale data.
Worked example
Students rated “I was satisfied with the course” from 1 (strongly disagree) to 5 (strongly agree). 18 took it online and 20 in person.
- Online: median 4 (IQR 3 to 4), 66.7% agree, mean 3.78 (SD 0.94).
- In person: median 3 (IQR 2 to 3), 15.0% agree and 40.0% disagree, mean 2.65 (SD 0.88).
- Mann–Whitney: U = 288, z = 3.28, p = .001, rank-biserial r = .60. A random online student gave a higher rating than a random in-person student 80% of the time.
- Welch t-test as a check: t(34.84) = 3.81, p < .001. Same conclusion.
Median or mean?
A single Likert item is ordinal: the step from “disagree” to “neutral” need not equal the step from “agree” to “strongly agree”. The safe description is the median and the percentages, and the safe test is Mann–Whitney. Many researchers do use means and t-tests, and with reasonable samples the conclusions usually agree. Pick one approach before you look at the results and say why. A scale built by adding several items is closer to interval data. Check its reliability with the Cronbach’s alpha calculator.
Methods
- U is for group 1. The p-value uses the normal approximation with a tie correction and a continuity correction, as SciPy’s
mannwhitneyu(method="asymptotic")does. Likert data always have ties, so exact tables do not apply. - Rank-biserial r = 1 − 2U₂ / (n₁n₂), from −1 to 1.
- Quartiles use linear interpolation (Excel’s QUARTILE.INC). Other methods can give slightly different IQRs.
Accuracy
U, p and the Welch test match SciPy on 50 random datasets; medians and quartiles match NumPy. For three or more groups, use the Kruskal–Wallis test.
Frequently asked questions
Should I use a t-test or Mann-Whitney for Likert data?
For a single item, Mann-Whitney is the safer choice because the data are ordinal. A t-test on the means is widely used and often agrees. Decide in advance and justify it.
Can I report the mean of a Likert item?
Many studies do, but the median and the percentage who agree describe a single item more honestly. Report the mean alongside them if your field expects it.
What is a diverging stacked bar chart?
A bar chart where disagree categories extend left and agree categories extend right from a central line, with neutral split across the middle. It shows the balance of opinion at a glance.
How do I analyze several Likert items together?
If they measure one concept, check reliability with Cronbach's alpha, then add or average them into a scale score, which you can analyze with t-tests or ANOVA.