When to use a modal and when not to

Modals interrupt users by design. That makes them the right tool in some situations and the wrong one in more than most teams realize.

Modals are everywhere because they're convenient for designers and developers. They give you a contained surface to put content without redesigning the underlying page. They're quick to implement, easy to reason about, and already solved at the component level in every design system.

The convenience is also the problem. Modal use is usually driven by implementation convenience rather than by whether a modal is the right pattern for the user.

What a modal actually does

A modal blocks access to everything behind it. That's the defining characteristic, not the overlay, not the close button, not the backdrop click behavior. The modal's job is to say: you cannot interact with the rest of the application until this is resolved.

That blocking behavior is the appropriate choice when one of two conditions applies. Either the user needs to complete an action before they can meaningfully continue (deleting a record requires confirmation, paying requires entering a card number), or the system needs information before it can proceed (a required configuration step, a permission request with meaningful consequences).

Outside those conditions, the modal is creating an interruption for reasons that serve the interface's organization more than the user's task. That's a useful heuristic for auditing modal use: if removing the blocking behavior and replacing the modal with an inline or panel pattern doesn't change the user's experience for the worse, the modal wasn't justified.

Destructive action confirmation is the clearest use case

Deleting, archiving, removing, or otherwise performing an irreversible action on data is the strongest case for a modal. The user has initiated an action with meaningful consequences, and the system needs to confirm intent before executing.

The confirmation modal works here because the interruption is proportional to the stakes. Losing six months of data because a button was clicked accidentally is a worse outcome than the two-second interruption of a confirmation dialog.

The failure mode in this pattern is applying confirmation dialogs to reversible actions. "Are you sure you want to archive this item?" where "Archive" means "move to a recoverable archive and not delete permanently" doesn't warrant a modal. The action can be undone; the confirmation modal is adding friction without managing real risk. An undo pattern, a brief toast with a link to reverse the action, handles reversible actions more gracefully and with less interruption.

Forms that belong in context, not in modals

A common pattern: a long form appears in a modal. The user scrolls inside the modal. The modal grows taller than the viewport on mobile. The keyboard pushes the modal off screen. Error messages appear above the fold where the user can't see them.

Long forms should almost never be modals. A form with more than four or five fields, any complex validation logic, or multiple sections belongs on its own page or in a slide-over panel. The modal was designed for focused, brief interactions. A two-field "create new item" form is a reasonable modal. A multi-section settings form is not.

The slide-over (also called a sheet or a side panel) is often a better choice for forms that need context: the user can see the content behind the panel, the panel scrolls independently without the constraints of a vertically centered modal, and the transition reads as "I've opened a related workspace" rather than "the application has stopped to ask me something."

Nested modals: always wrong

A modal that opens another modal creates a management problem with no good resolution. The user has two blocking surfaces, two overlay stacks, and unclear escape routes. Pressing Escape might close the inner modal, might close both, might close neither, depending on implementation. The affordance for dismissing either surface is unclear.

If a design requires a nested modal (a confirmation inside an edit form inside a modal), the design has the wrong structure. The confirmation should either be inline (a warning message in the form) or the form should not be in a modal in the first place.

The test is simple: can you trace a clear path from "user opens a modal" to "user dismisses the modal and returns to the page they were on"? If that path requires the user to manage multiple overlay states, the structure needs redesign.

Mobile is where modal choices become critical

A modal that works adequately on desktop is often broken on mobile. The surface area on mobile is the whole screen; a modal with a backdrop overlay consumes effectively all of it. The modal can't be positioned to show meaningful context behind it. The close button is typically in the upper-right corner, which is far from the thumb on a large phone.

On mobile, the native pattern for modal-like surfaces is the bottom sheet: a panel that slides up from the bottom of the screen, thumb-reachable, dismissible with a downward swipe. Bottom sheets feel native and appropriate on mobile in a way that centered modals do not.

Full-screen takeovers are another mobile-appropriate pattern for forms and complex content that would be a modal on desktop. A full-screen "view" that slides in from the right and has a back button or close X in the upper-left is consistent with mobile navigation conventions in a way that a centered modal with a backdrop is not.

The interrupt cost

Every modal is an interruption. The user was doing something (reading, editing, scanning a list) and the application stopped them to address something else. That interrupt has a cost even when it's justified.

Products that modal-interrupt frequently train users to dismiss modals without reading them. Once that habit forms, the modals that do require attention get dismissed reflexively, which is the worst possible outcome for the patterns where modals are actually appropriate.

The frequency question is worth auditing in any product: how many modal-triggering events does an average user encounter in an average session? If the answer is more than two or three, the product is relying on modals for things that don't warrant the interrupt. The confirmations that matter, the irreversible actions and the permission requests, get diluted by the ones that don't.


A modal should feel unusual. It should register as "something important is happening and the application needs me to address it." When modals are common enough to feel routine, they've lost their signal value. The cases where the signal genuinely matters are the ones that suffer.

Greg Sargent
Greg SargentDirector of Design Systems, Spring Health

I write about design systems, accessibility, and the way AI is changing how we build software.

Published April 17, 2026

Be the first to rate this article.