Skip to main content

Error Prevention

UX Design

What is Error Prevention

Error prevention is the practice of designing an interface so users are less likely to make errors in the first place. It is the fifth of Jakob Nielsen's 10 usability heuristics: good error messages matter, but the best designs prevent problems from happening.

Types of user errors

Don Norman describes two kinds of errors:

  • Slips: unconscious errors caused by inattention, like tapping the wrong button
  • Mistakes: conscious errors caused by a mismatch between the user's mental model and the design

How to prevent errors

  • Prevent slips with constraints, good defaults, suggestions and flexible input formats
  • Prevent mistakes by removing memory burdens, supporting undo and warning users
  • Confirm risky actions: check for error-prone conditions and ask users to confirm before they commit

Why Error Prevention matters

People should not be blamed for errors caused by poorly designed systems. In January 2018, a false missile alert was sent to people in Hawaii. NN/g used it as a case study in how interface design can make a serious error easy to make.

Frequently asked questions

What is the difference between slips and mistakes?

A slip is an unconscious error caused by inattention, such as a typo. A mistake is a conscious error that happens when the user's mental model does not match the design, so they choose the wrong action on purpose.

Which usability heuristic covers error prevention?

Heuristic 5 of Jakob Nielsen's 10 usability heuristics. It says the best designs prevent problems in the first place, rather than relying on good error messages.

What are examples of error prevention?

Constraints that block invalid input, good defaults, suggestions while typing, undo, and a confirmation step before a destructive or important action.