A quick walkthrough of error message best practices you can start using right away, with practical tips and examples.
Unfortunately, errors are unavoidable. What matters is how you design and write for them so that they can interrupt the flow and frustrate the users as little as possible.
There are some things you can do when you write and design your error messages, and here I’ll walk you through them. These are all practical tips you can immediately try out.
1. Ask these questions before writing/designing the error
When you’re working out how your product should handle errors, it helps to pause and ask a few key questions. These will guide not just the timing of an error message, but also how it looks and feels inside your interface.
Do you fully understand the error?
Before you explain something to a user, you need to have a clear grasp of what actually went wrong. If you’re confident about the cause, your message will feel a lot more reliable and useful.
What does the user need to know?
An error message should answer three things. Why the issue happened, what it means for the person right now, and what they can do next. Sure, nobody enjoys getting interrupted by an error, but with the right context, you can turn the moment into something that feels thoughtful instead of frustrating.
When should the error appear?
Not every problem needs a dramatic pop-up. Sometimes, inline feedback does the trick, other times a bigger flag makes sense. Think about the timing and placement so the flow doesn’t feel overly negative or disruptive.
What’s the best way to show it?
Toast? Modal? Inline note? Banner? The format depends on how serious the issue is. Small hiccups can sit quietly next to the problem area, but if something breaks the workflow in a major way, don’t be afraid to make it stand out.
2. Show errors right where they happen
If an error pops up, you want the message to sit as close as possible to the problem itself. This way, the person using your product doesn’t need to play detective, and their brain doesn’t have to work harder than it should just to connect the dots.
3. Make sure it stands out
Of course, you can easily use bold text and sharp contrast, but you can also add a little movement, like a subtle animation, to pull the eye in the right direction. Just be careful not to rely on color alone because not everyone sees colors the same way, so always pair visuals with text or symbols.
4. Don’t block the user’s input
This may be one of the most important error message best practices to know by heart. An error message should point out a problem as well as help the user fix it. That only works if they can still see both the message and the input field while making changes.
The trouble starts when tooltips get involved. If a tooltip opens on hover, it can cover the message or the input, leaving the user stuck without all the info in view at once.
To solve this, avoid hover, only tooltips. Let them appear on click or tap instead, so they stay open until closed manually.
You can also use inline components or small accordions to hold extra details. This way, the extra info slides right into place without covering up the error or the input field.
5. Match the error to its level of impact
Not every error is a full stop. Some just give a heads-up, while others really block the workflow. Your design should reflect that difference.
For example, a small warning about something unusual can show up as a label that is easy to notice but not too disruptive.
On the other hand, if the problem is serious enough to stop progress, it would make sense for you to use a modal that forces attention and asks for a decision before moving forward.
6. Go for inline validation
Instead of dumping a long list of errors all at once, show issues right where they happen. Inline validation places the message next to or above the field it belongs to, making it clear what needs attention.
This also helps with accessibility when screen readers read the label and the error together.
7. Don’t show errors too early
The timing of an error message matters. If you throw one up before the person even has a chance to finish, it feels unfair as if you’re grading a test before the answers are written. That kind of pattern usually comes across as harsh or even insulting.
Moving focus out of an empty field, for example, doesn’t automatically mean a mistake. On the other hand, for inputs that are notoriously tricky, like passwords or credit card numbers, real-time feedback can actually be helpful. If someone is very likely to mess it up on the first try, a quick inline message saves time and effort.
8. Be careful with auto-scrolling and auto-jumps
Here’s a common debate: after someone hits “submit”, should the page scroll them straight to the first error?
If you ask me, it’s hit or miss. Some people find it helpful, while others get irritated when the page suddenly moves on its own. Auto-jumps, especially, tend to feel jarring and disorienting. Auto-scrolling can be a little softer since it shows direction, but it still doesn’t work for everyone.
You can consider a much safer approach, like an error summary with anchor links so users can choose where to go. If testing shows that’s too clunky, then try adding gentle auto-scrolling. Just don’t fling people up and down the page without explanation.
9. Skip the “oops” and “whoops”
This isn’t amongst the most important error message best practices, but it’s still something you would want to consider. Once upon a time, playful error messages felt quirky and fresh. These days, most people are tired of being “oopsed” or “whoopsed”. It doesn’t soften the blow anymore. Just the opposite, it feels condescending.
Think about it. Would you say “whoops” in a meeting with your boss if you made a mistake? Probably not. The same goes for your users. Talking to them like kids doesn’t set the right tone, especially since they already know what an error message is for.
Words like “oops”, “whoops”, and even “yikes” can still fit if your brand voice is lighthearted, but for most products, it’s better to stick with a straightforward language.
This also refers to sarcasm and forced jokes!
Nobody enjoys feeling talked down to, and humor in error messages often slips into that territory. A quick laugh can work in other parts of your product, but when someone’s already dealing with a mistake, it usually adds more frustration than relief.
10. Write in plain language and be specific
Your error messages should feel like they’re written for real people, not machines, so it’s best you completely drop the technical jargon (and error codes) and stick with clear, everyday wording your audience already understands.
If you need to include codes for debugging, tuck them away where they won’t confuse the average user. Lead with text that’s easy to read and explains the situation in plain terms.
In terms of the language itself, consider being as specific as possible, because people want to know what actually went wrong so they can figure out their next step.
11. Give clear instructions
This means that even if someone skips over the text, the action labels themselves should point the way forward. For example, instead of a vague “Yes” or “No”, add a few words to explain like “Yes, refresh the page” or “No, stay here”.
Also, inside the message itself, spell out what those choices mean. Will refreshing erase progress? Will staying put keep their data safe? Lay it out simply so users understand exactly what happens next.
12. Be supportive
Errors are frustrating enough, and you don’t want your language making it worse.
Avoid words that sound like blame, such as invalid or wrong.
If something doesn’t work, it’s our job as creators to guide them through it, so the burden shouldn’t fall on the user.
13. Skip the ALL CAPS (and easy on the exclamation marks)
You’ve seen messages written in ALL CAPS, and it feels like someone is shouting. Of course, error messages shouldn’t yell at people. The same goes for exclamation marks, as they often add tension when what users really need is calm clarity. And as in anything else in UX, you should avoid adding unnecessary stress to an already frustrating moment here as well.
14. Plan ahead for common slip-ups
The worst error is the one that never shows up. Confusion will build quickly if a user makes a mistake and your product stays silent. With that being said, consider catching predictable issues.
Take emails, for example. In the past, you could send a message that mentioned an attachment without actually including one. Today, there are already some email clients like Outlook that flag before sending (“Have you forgotten an attachment?”), giving users an opportunity to fix it.
15. Take the L with a human touch
Every so often, something major breaks, like a server overload, and the only option is for the user to wait it out. These moments are rare (and should be), but when they happen, the way you communicate can make a difference.
You can pair a straightforward apology with something thoughtful or even a little unexpected. If you do it well, this can ease some of the frustration and make the experience more memorable in a positive way. It’s tricky, though, because the stakes are high when someone’s work or data is involved, but with lighter situations, a touch of novelty can help keep users from feeling completely let down.
And there you have it!
Errors will always pop up, but the way you write and design them can turn a frustrating moment into a supportive experience. I hope these error message best practices will help you clean things out in advance.
And if you’re curious about more design tools or need inspiration, we’ve got plenty of other guides worth checking out, just like the following:
- Best Online Graphic Design Courses Intermediate Level in 2025
- 20 Common Design Mistakes That Sneak In Way Too Often
- The Pocket Guide to Different Website Layouts and Their Uses