Error State Design
What is Error State Design?
Error state design is the craft of shaping the screens and messages a product shows when something fails, such as bad input, lost connectivity or an outage, so users know what happened and what to do next.
Updated November 2026 · 4 min read
Error state design is the practice of designing what a product shows and lets users do when something goes wrong: invalid input, a failed payment, a lost connection, a missing page, a permissions problem or a server outage. A well-designed error state tells users what happened, why, and what they can do next, in plain language, at the moment and place where the problem occurs.
Errors are among the moments users remember most. A clear message and an obvious way forward keep people moving. A vague "Something went wrong" with no next step sends them to support, or away. Error states also carry accessibility obligations, since users of screen readers or with low vision must be able to notice and understand them too.
Types of error states
| Type | Example | Design goal |
|---|---|---|
| Input validation | Invalid email address, password too short | Point to the exact field and explain the rule |
| System or server error | Request fails, service unavailable | Admit the problem, preserve user work, offer retry |
| Connectivity | User goes offline mid-task | Show status, save locally where possible, retry automatically |
| Not found | Broken link, deleted item, 404 page | Offer search or paths back to useful content |
| Permission | User lacks access to a page or action | Explain who can grant access and how to request it |
| Transaction failure | Card declined, upload rejected | State the cause if known and the next action |
| Empty or zero-data state | No search results | Distinguish "nothing here yet" from "something broke" |
Principles for good error states
Jakob Nielsen's widely used usability heuristics include both "error prevention" and "help users recognize, diagnose, and recover from errors." Most practical guidance follows from those two ideas.
- Prevent before you explain. Constrain inputs, use sensible defaults and confirm destructive actions so fewer errors happen.
- Be specific. "Card declined by your bank" helps; "Payment error" does not. Avoid raw error codes unless support needs them, and then show them in addition to a human explanation.
- Say what to do next. Every error state should offer an action: fix the field, retry, contact an admin, go back.
- Keep the user's work. Never clear a form or lose an upload because one field failed.
- Place the message where the problem is. Inline messages next to the field beat a banner at the top of a long form.
- Use a calm, blame-free tone. "We couldn't save your changes" rather than "You entered invalid data." Humor rarely helps when someone has just lost work.
- Do not rely on color alone. Pair red highlighting with text and an icon, and make sure screen readers announce the error. The Web Content Accessibility Guidelines (WCAG) include success criteria for identifying errors in text and suggesting corrections.
How to design error states
- Inventory the failure points. For each flow, list what can fail: every input, every network call and every permission check. Engineers and support logs are the best sources.
- Rank by frequency and impact. Use analytics and ticket data to find the errors users hit most and the ones that cost the most.
- Write the copy. For each error, draft what happened, why (if known) and what to do. Keep it short and test it with real users.
- Design the components. Standardize inline, banner, modal and full-page error patterns in the design system.
- Instrument and review. Log which errors appear, how often, and whether users recover, then improve the worst offenders.
Error state design in practice
Consider a hypothetical subscription app whose payment form shows one generic message, "Payment failed. Please try again," for every failure. Of 20,000 monthly checkout attempts, 1,600 fail, and support receives about 400 payment tickets a month.
The team splits the generic error into specific states: expired card, incorrect security code, insufficient funds or a bank decline, and a temporary processing problem with an automatic retry. Each message names the problem and the field to fix, and the form keeps all entered details. Over the next two months, the share of users who succeed after a first failure rises from 25% to 45%, which means 720 of the 1,600 failed attempts now recover instead of 400. Payment tickets fall to about 220 a month. All figures are illustrative.
Common pitfalls
- Generic catch-all messages. One message for every failure gives users nothing to act on.
- Blaming the user. Accusatory wording raises frustration, especially when the system caused the problem.
- Validating too early or too late. Flagging an email field as invalid while the user is still typing is irritating; waiting until submit on a 20-field form is worse.
- Leaking technical detail. Stack traces and internal codes confuse users and can expose information attackers find useful.
- Designing only the happy path. Error states are often left to engineers at the last minute. Include them in specs and mockups from the start.
Good error states depend on strong UX writing, careful handling of edge cases and consistent patterns in a design system, and they follow published accessibility guidelines. They are a core part of user experience quality.
Frequently asked questions
What makes a good error state in a product?
A good error state says what happened, why and what to do next, in plain language, right where the problem occurred. It names the specific cause, such as a card declined by the bank, offers an action like retrying or fixing a field, keeps the user's work intact, uses a calm, blame-free tone and pairs color with text and an icon.
What types of error states should designers plan for?
Designers should plan error states for input validation, system or server failures, lost connectivity, missing pages, permission problems, transaction failures such as declined cards, and empty or zero-data states. Each needs a different response, from pointing to the exact field or offering a retry to saving work locally, suggesting paths back or explaining how to request access.
How does error state design affect accessibility?
Error states must be noticeable and understandable for people who use screen readers or have low vision. Never rely on red highlighting alone; pair it with text and an icon, and make sure assistive technology announces the error. Placing the message inline next to the affected field, rather than in a banner at the top of a long form, helps everyone find the problem.
Related terms
UX Writing
Writing interface text that helps people complete tasks.
Edge Case
A rare or extreme scenario at the limits of what a system handles.
Accessibility Guidelines
Published standards, led by WCAG, for building products disabled people can use.
User Experience (UX)
Everything people perceive and feel when they use a product.