# Error Prevention

> Making mistakes hard to make, so there is less to fix later.

**Field:** Design  
**Category:** User Experience  
**Also known as:** Preventing User Errors, Mistake-Proofing (UX)

## Think of it like

A plug only fits one way. So you cannot put it in wrong.

## Definition

Error prevention is designing so mistakes are hard to make in the first place. A date picker stops you typing a date that does not exist. A button stays grey until the form is filled in. A warning appears before you delete something big. Stopping an error is better than a good error message after it.

## Example

A flight site will not let you pick a return date before the outbound date. Nobody books the wrong way round.

## Why it matters

Every error costs time and trust. Many can be stopped with a small change.

## Common mistake

Asking are you sure for everything. People click yes without reading, so save it for real risks.

## Three principles

- **Limit the choices.** Only offer what is valid.
- **Good defaults.** Start with a sensible answer.
- **Warn for big things.** Confirm only what is hard to undo.

## Related terms

- [Undo](https://learn.benibix.com/term/design/undo)
- [Inline Error Message](https://learn.benibix.com/term/design/inline-error-message)
- [Date Picker](https://learn.benibix.com/term/design/date-picker)
- [Form](https://learn.benibix.com/term/design/form)
- [Affordance](https://learn.benibix.com/term/design/affordance)

## Taught in

- [Error Prevention and Undo](https://learn.benibix.com/learn/design-user-experience/error-prevention-and-undo): UX Design, 15/21

![Two panels. On the left, a row of dates for a return flight, where the days before the 13th are faded with dashed borders and cannot be picked. On the right, a crossed-out message and a dark bar at the bottom that says Message deleted, with an Undo link and an arrow back up to the message.](https://learn.benibix.com/diagrams/des3-error-undo.svg)

---

Source: https://learn.benibix.com/term/design/error-prevention
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
