← Back to blogWeb Design

Hamburger Menu Design: A Complete Guide

Mobile menu interface and hamburger navigation

The hamburger menu — three horizontal lines that expand into navigation when tapped — became the universal symbol for mobile menus around 2010. It hides navigation behind a single icon to save screen space, but research consistently shows hidden menus get used 50-80% less than visible ones. In 2026, the hamburger menu still makes sense for content-heavy sites with deep navigation, but visible navigation, bottom tab bars, and hybrid patterns usually outperform it for conversion-critical sites.

What Is a Hamburger Menu?

A hamburger menu is a button — typically three stacked horizontal lines (≡) — that reveals a hidden navigation panel when clicked or tapped. It’s named for its visual resemblance to a hamburger: two buns and a patty.

The pattern emerged from early Xerox Star icon work in 1981 and gained mainstream adoption with the rise of mobile browsing. As phone screens shrank visible nav space, designers needed a way to hide complex menus until requested. The hamburger became the de facto solution.

Variations of the Hamburger

  • Three horizontal lines (≡) — the classic.
  • Three lines + “Menu” label — discoverability improves significantly with a text label.
  • Two lines (kebab/meatballs) — minimalist variations.
  • Animated to X — three lines that morph into an X when opened.
  • Bento (3×3 grid) — used for app launchers and dashboards.

UX Research on Hamburger Menus

The hamburger menu is one of the most-studied patterns in modern UX. Findings consistently lean toward visible navigation outperforming hidden navigation:

NN/g (Nielsen Norman Group) Findings

Studies from 2014 onward have consistently shown that visible navigation produces:

  • Higher discoverability of secondary content
  • Faster task completion
  • Improved user satisfaction scores
  • Greater engagement with non-primary pages

Conversion Studies

A/B tests across e-commerce and SaaS sites in the 2015-2020 era found:

  • Replacing a hamburger with a visible tab bar increased CTR on nav items by 30-40%
  • Adding a “Menu” text label below the hamburger icon improved usage by 20%+
  • Sites with sub-5 primary nav items rarely benefit from hamburger menus on mobile

What the Research Doesn’t Mean

“Hamburger menus are bad” is too simple. The research shows visible navigation outperforms hidden navigation when both are feasible. For sites with 20+ navigation items, hiding most behind a hamburger is often unavoidable. The question is whether you can make the most important items visible by default.

When to Use a Hamburger Menu

Content-Heavy Sites

Media sites, news publications, large e-commerce sites, and complex SaaS dashboards often have 30-100+ navigable destinations. Hiding most behind a hamburger is a reasonable trade-off when there’s no way to surface them all.

Mobile-First Web Apps

Native-feeling web apps where navigation is a secondary concern often use a hamburger to maximize content space. Email clients, calendar apps, and document editors fit this pattern.

Documentation Sites

Deep hierarchies of docs benefit from a hamburger that slides out a tree view. Visible nav can’t accommodate the depth.

Multi-Language Sites

When primary nav items must accommodate translations of varying length, hamburger menus prevent layout breaks.

When NOT to Use a Hamburger Menu

Sites with 5 or Fewer Primary Pages

If you have a homepage, about, services, pricing, and contact — show them. Hiding 5 items behind an icon is a usability tax with no benefit.

Conversion-Critical Pages

Landing pages, product pages, and pricing pages benefit from clear, visible CTAs in the nav. A hidden “Pricing” link under a hamburger reduces conversion. Our conversion rate optimization guide covers nav structure in more depth.

Local Business Sites

Restaurants, service providers, and local stores need their phone number, hours, and location accessible immediately. Hiding the contact link behind a hamburger costs leads.

Sites Targeting Older Audiences

The hamburger icon is well-understood among digital-native users (25-45) but often opaque to users over 60. Visible navigation removes the ambiguity.

Hamburger Menu Best Practices

1. Always Label It

The icon alone has lower discoverability than the icon plus a “Menu” label below it. The extra word costs almost nothing and reliably improves usage.

2. Make It Large Enough

Mobile hit targets should be at least 44×44 pixels (Apple HIG) or 48×48 pixels (Material Design). Small icons frustrate users with imprecise touch input.

3. Position Predictably

Standard placement is top-left or top-right. Stay consistent across your site — users develop muscle memory.

4. Open Smoothly

Avoid jarring transitions. A 200-300ms slide-in or fade produces a natural feel. Our microinteractions guide covers animation curves that work well.

5. Close Easily

Users should be able to close the menu by tapping outside it, pressing Escape, or pressing the back button on Android. The X icon should be obviously a close button — match its weight to the open icon.

6. Show Hierarchy

If the menu contains sub-items, show the hierarchy clearly. Indentation, accordions, or secondary panels all work — but don’t dump 40 items in a flat list with no visual structure.

7. Include Search Where Relevant

For content-heavy sites, a search input at the top of the menu is often more useful than scrolling through dozens of links.

8. Highlight the Active Page

When the menu opens, the current page should be highlighted so users orient quickly.

9. Make CTAs Visible

A primary CTA (“Get Started,” “Book a Demo”) often deserves a visible spot in the header next to the hamburger — not buried inside it.

10. Test Accessibility

Screen readers need to announce the button as “Menu, button, collapsed” and update state when it opens. Keyboard users should be able to open, navigate, and close the menu entirely with Tab, Enter, and Escape.

Hamburger Menu Alternatives

Visible Tab Bar (Bottom Navigation)

iOS and Android system apps use a bottom tab bar with 3-5 icons. Each is one-tap accessible, visible at all times, and ergonomically reachable. Top-quartile e-commerce mobile apps almost universally use bottom tab bars.

Top Tab Bar

Horizontal scrolling pill-shaped tabs at the top of the page work well for content categories. Common on news sites and SaaS dashboards.

Sticky Header with Primary Items

Surface 3-4 highest-priority nav items in a slim sticky header, with everything else behind a “More” hamburger. Hybrid pattern — best of both worlds.

Mega Menu

On desktop, large multi-column dropdowns reveal extensive navigation without consuming permanent screen space. Awkward on mobile but excellent at the desktop scale. See our website navigation design guide for mega menu patterns.

For desktop SaaS apps, a permanent sidebar with collapsible sections balances discoverability and space.

Command Palette

A search-driven UI (Cmd+K) that lets power users navigate by typing. Increasingly common in productivity tools. Doesn’t replace traditional nav but supplements it.

The Visible-Nav Movement

Since around 2018, many top brands have moved away from pure hamburger menus toward partially-visible navigation on mobile. Examples worth studying:

  • Stripe — visible “Products,” “Solutions,” “Developers,” “Resources” with sub-items hidden in mega menus.
  • Notion — combination of visible nav items and a hamburger for everything else.
  • Linear — minimalist visible nav with no hamburger at all on mobile.
  • Apple — full visible nav even on small screens by collapsing the design tightly.
  • Vercel — visible primary nav with a hamburger for secondary content.

Accessibility Considerations

ARIA Attributes

The hamburger button needs proper ARIA attributes:

<button aria-label="Menu" aria-expanded="false" aria-controls="main-menu">
  <svg>...</svg>
</button>

Update aria-expanded to “true” when the menu is open. Use aria-label to give screen readers a name for the icon-only button.

Focus Management

When the menu opens, move focus to the first menu item. When it closes, return focus to the hamburger button. This makes keyboard navigation predictable.

Escape to Close

Listen for the Escape key to close the menu. This is a standard accessibility expectation.

Color Contrast

The icon lines must meet WCAG AA contrast against the header background (4.5:1 minimum).

Touch Target Size

44×44 pixels minimum. Users with motor impairments rely on generous hit targets.

Hamburger Menu Implementation

Most modern frameworks have built-in patterns for hamburger menus. In CSS-only form, the minimal pattern uses a hidden checkbox to toggle state. In modern frameworks, you’d use a controlled state value:

React Pattern

const [open, setOpen] = useState(false);

<button 
  aria-expanded={open} 
  aria-controls="main-menu"
  onClick={() => setOpen(!open)}>
  <MenuIcon />
</button>
<nav id="main-menu" hidden={!open}>...</nav>

Animation

Use CSS transitions for the slide-in/fade-in. Avoid JavaScript-driven animations for performance. The transform property (translateX) is GPU-accelerated and produces smooth results.

Frequently Asked Questions

Is the hamburger menu still good in 2026?

It’s appropriate for content-heavy sites with deep navigation, but visible nav generally outperforms it for conversion-critical sites. For sites with 5 or fewer primary pages, showing nav items beats hiding them behind an icon. Use the hamburger when you genuinely can’t surface key destinations any other way.

Should I add a “Menu” label below the hamburger icon?

Yes. Multiple usability studies have shown the text label improves discoverability and usage by 15-25%. The icon alone is well-understood among younger digital natives but still ambiguous for many users.

Where should I place the hamburger icon?

Top-left or top-right of the header are both acceptable. Top-right is more common in the West and tends to be more thumb-reachable on large phones. Be consistent across your site — once you pick a position, never move it.

What’s the alternative to a hamburger menu?

Bottom tab bars work brilliantly for 3-5 priority destinations. Sticky headers with visible primary items + a hamburger for secondary content is a strong hybrid. For desktop, mega menus and sidebars handle deep navigation better than hamburgers.

Want a website with navigation engineered for conversion, not convention? See our pricing or contact us to start.

Ready to build your Framer website?

Book a free strategy call to discuss your project.