Usability testing and UX metrics
Practical notes on planning, running and measuring usability tests, with key UX metrics (task success, time-on-task, error rate, SUS, NPS), how to choose test types, and worked examples.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Usability testing and UX metrics tell engineers whether a product is usable for real users and how to improve it. Engineers use these methods to find real problems, measure improvements, compare designs (A/B or benchmark), and justify design choices to stakeholders.
Key ideas
Formative testing: early-stage, iterative, goal is to discover usability problems and suggest fixes. Often small samples, qualitative data.
Summative testing (benchmarking): late-stage, goal is to produce quantitative measures (e.g., task success, SUS) to compare against targets or other systems. Include predefined benchmarks, confidence intervals, a sample size rationale/power where appropriate, and the statistical analysis plan (e.g., hypothesis tests).
Moderated vs. unmoderated: moderated has a facilitator present (in-person or remote); unmoderated uses automated scripts or platforms without live facilitation. Moderated tests let you probe; unmoderated scales better.
Lab vs. remote vs. guerrilla: lab gives control and sensors (eye-tracking, cameras); remote gives real-context data; guerrilla is cheap and quick (e.g., in a cafe) for early feedback.
Quantitative vs qualitative data:
- Quantitative metrics give numbers you can compare: task success rate, time-on-task, error rate, SUS, NPS, completion level, abandonment. Note: NPS is a loyalty metric, not a direct usability measure; use it alongside, not instead of, usability metrics.
- Qualitative data explains why: think-aloud comments, observed confusion, quotes, usability problem logs.
Core metrics (define each before using):
- Effectiveness measured by task success rate (did user reach the goal?).
- Efficiency measured by time-on-task (how long to complete tasks), sometimes normalized to successful completions only.
- Satisfaction measured by subjective scales like System Usability Scale (SUS) or single-question scales (Single Ease Question, SEQ).
- Error rate: count of mistakes per task or per attempt.
- Throughput / productivity: useful for data entry or expert tasks (e.g., items per minute).
- Completion level: proportion of task steps or criteria met; define how partial completion is scored.
- Abandonment rate: users who started but did not finish a task divided by those who started.
- Learnability: change over time (e.g., reduction in time/error across repeated trials or at follow-up).
Nielsen's practical sample size guidance: for qualitative formative tests, a small number (commonly 5) can find many problems. Nielsen models discovery as: P(n) = 1 - (1 - p)^n where p is probability a single user finds a given problem. Assumptions: independent users, each problem has fixed p. Use this to show diminishing returns as n grows.
Test plan essential elements: purpose, user profile, tasks (clear success criteria), metrics to record, protocol (intro, think-aloud instructions, facilitation rules), equipment and consent, logging and video policy, analysis plan, and severity rating method. Also include recruitment/screener criteria, sample size rationale, success benchmarks, handling of outliers/timeouts, and a plan for confidence intervals and hypothesis testing (for summative studies).
Severity rating (to prioritise problems): combine frequency, impact (how much it stops task), and persistence; typical 0-4 or 1-5 scale (0 = not a problem, 4 = usability catastrophe). Define criteria you will use before coding severity.
Lab diagram to draw in an exam: draw two rooms side-by-side. Left: 'Test room' with Participant at desk using the device, Moderator beside, camera pointing at the screen, microphone. Right: 'Observation room' labelled 'Observers' with one-way mirror or live video feed. Label screen recorder or remote recording software if remote. Also draw arrow showing audio/video feed from test room to observation room.
Test session flowchart to draw: boxes in sequence: Recruit -> Consent -> Pre-test questionnaire -> Briefing + think-aloud training -> Task 1 (observe & record) -> Task 2 ... -> Post-test SUS/SEQ -> Interview/debrief -> Thank participant. Label data collected at each step.
Note where assumptions matter: when you report averages, state whether failures were excluded or included; when using percentages, give denominators. Also report confidence intervals (e.g., Wilson for proportions such as success rate; t-based or bootstrap CIs for time-on-task).
Formulas
Task success rate (%) = (Number of successful task completions / Number of task attempts) * 100% — Number of successful completions: integer; attempts: integer; result unit: percent. Applies to effectiveness measurement.
Mean time-on-task = (Σ time_i) / n — time_i in seconds; n = number of measured attempts (specify if only successful attempts used). Unit: seconds. For skewed time data, also report the median and IQR (or a geometric mean), and consider trimming/Winsorizing outliers.
Error rate = (Number of errors recorded / Number of task attempts) — unitless fraction (often shown as %). Define what counts as an error.
P(n) = 1 - (1 - p)^n — P(n) is probability at least one of n users finds a problem; p is probability a single user discovers that problem (0 ≤ p ≤ 1); assumes independence.
SUS score = (sum of adjusted item scores) * 2.5 — For each odd-numbered SUS item: adjusted = (response − 1). For each even-numbered item: adjusted = (5 − response). Responses are 1..5. Sum adjusted over 10 items gives 0..40; multiply by 2.5 to map to 0..100. The 0–100 result is a relative scale, not a percentage; interpret using benchmarks/adjective ratings.
NPS = (% Promoters) − (% Detractors) — Promoters: users rating 9–10 on loyalty; Detractors: 0–6. Unit: percentage points. Ignore Passives (7–8). Range is −100 to +100 (percentage points).
When you apply these, state whether you include partial completions, timeouts, or assisted completions.
Worked examples
- Task success rate
- Data: 12 participants, each attempts the same task once → attempts = 12. Successful completions = 9.
- Formula:
Task success rate (%) = (9 / 12) * 100%. - Calculation: 9/12 = 0.75; 0.75 * 100% = 75%.
- Answer: 75% success rate. Also report uncertainty; for 9/12, a 95% CI (Wilson) is approximately 47%–91%. (Note: if some attempts were timed out and you exclude them, state that explicitly.)
- SUS score for one participant (numerical example)
- Responses to 10 SUS items (1..5): 4, 2, 5, 1, 4, 2, 3, 2, 4, 3 (item 1 is odd, item 2 even, etc.).
- Adjust odd items: item1=4 => 4−1=3; item3=5 => 5−1=4; item5=4 => 3; item7=3 => 2; item9=4 => 3.
- Adjust even items: item2=2 => 5−2=3; item4=1 => 5−1=4; item6=2 => 3; item8=2 => 3; item10=3 => 5−3=2.
- Sum adjusted = odd(3+4+3+2+3)=15 + even(3+4+3+3+2)=15 => total 30.
- SUS = 30 * 2.5 = 75.0.
- Answer: SUS = 75.0 (interpreted as above-average usability).
- Nielsen discovery model (illustrative)
- Suppose p = 0.31 (a commonly used average estimate for single-user discovery). For n = 5 users:
P(5) = 1 - (1 - 0.31)^5 = 1 - 0.69^5.- Compute 0.69^5 ≈ 0.1564; P(5) ≈ 0.8436 → 84.36% chance a given problem is found by at least one of 5 users.
- Note: this depends on p; p differs by study and problem type.
Common mistakes
- Mis-scoring SUS: forgetting to subtract 1 from odd items or to subtract even items from 5.
- Quoting Nielsen’s 5-user rule as a law: it is a practical heuristic based on a probabilistic model with assumptions—state assumptions and limitations.
- Using raw NPS without segmenting or considering sample bias.
- Counting facilitator help as success without flagging assisted attempts separately.
- Reporting only means for time-on-task despite skewed distributions; omitting medians/IQR or confidence intervals.
- Misusing NPS: including Passives or treating NPS as a usability score.
For your exam
Quick check
- Give the ISO 9241-11 components of usability in three words.
- Write the formula for task success rate (symbol-free is fine).
- For SUS, how do you adjust an odd-numbered item response of 4?
Answers: 1) Effectiveness, efficiency, satisfaction. 2) Task success rate = (successful completions / attempts) × 100%. 3) Adjusted = response − 1 = 4 − 1 = 3.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?