Half of all website headers stay on screen while you scroll: 48% of the desktop homepages we measured have a sticky or fixed header. The median header is 104 pixels tall on a desktop and 80 on a phone, a little under a tenth of the screen on both. 38% have a form field in it, such as search, and the top menu most often says Contact, About and Log in.
Those numbers come from the headers of 1,418 real websites we captured in November 2026, on desktop and on mobile. Below is what we found per question you might have while designing one, how software sites differ from everyone else, and how we measured it.
- stay on screen while you scroll (desktop)
- 48%
- tall on desktop (median)
- 104 px
- tall on a phone (median)
- 80 px
- have a form field in the header, usually search
- 38%
Sticky or not?#
Of the 1,069 desktop homepages where we found a header, 48% keep it on screen as you scroll: 23% with position: sticky and 25% with position: fixed. On phones it is nearly the same, 47%. The rest scroll away with the page. That is a real split, not a settled convention, so either choice is normal.
It depends on the kind of site. Developer tools pin the header most often (77%), followed by news sites (71%), events (64%), fitness (63%) and law firms (62%). Government sites pin it least (30%), along with car and mobility sites (28%) and home and DIY retailers (32%).
If you pin it, keep it short. A 104-pixel bar costs a tenth of a laptop screen on every scroll.
How tall is a header?#
The median desktop header is 104 pixels tall, with the middle half between 76 and 140. Government (140 px), museums (135) and hotels (131) have the tallest headers; developer tools (65) and AI products (76) the shortest. A tall header often has two rows, a utility row above the main menu, though we did not count rows.
On a phone the median is 80 pixels (middle half 64 to 111), which is 9.5% of an 844-pixel screen, almost exactly the same share as on desktop.
What goes in the menu?#
We read the words of the visible top menu on 1,202 desktop homepages and matched them against common items, in English and Dutch. Software, AI and developer-tool sites (172 of them) have very different menus from everyone else, so the chart shows them apart.
Show the numbers
| Item | Software | Other sites |
|---|---|---|
| Log in or account | 52% | 32% |
| Products, platform or features | 51% | 9% |
| Pricing or plans | 47% | 4% |
| Resources | 41% | 5% |
| Contact | 40% | 36% |
| About or company | 40% | 34% |
| Solutions or use cases | 39% | 5% |
| Book a demo or contact sales | 33% | 2% |
| Sign up or start free | 32% | 3% |
| Blog or news | 26% | 20% |
| Customers or cases | 22% | 4% |
| Docs or developers | 19% | 1% |
| Help, support or FAQ | 14% | 18% |
| Careers or jobs | 13% | 15% |
| Cart or basket | 1% | 7% |
On a software site the menu is a sales path: Log in (52%), Products or Platform (51%), Pricing (47%), Resources (41%) and Solutions (39%), with a demo or contact-sales link on a third and a sign-up or start-free link on a third. Everywhere else, the menu is about the organisation and getting help: Contact (36%), About (34%), Log in or My account (32%), news or blog (20%) and help or customer service (18%). Only 4% of non-software sites have Pricing in the menu.
The menu itself is short: its visible text, buttons included, has a median of 22 words. Icon-only items, such as a cart, a search magnifier or a profile icon, have no words, so the shares for login and cart above are floors.
Dropdowns and mega menus#
What you see is not all that is there. The median header holds 24 links in its HTML, and 31% hold 50 or more. Most of those are not visible: they sit in closed dropdowns, mega menus or a mobile drawer. On a phone, the header shows a median of only 5 words (against 14 on desktop): a logo, maybe one button, and a menu icon that opens the rest.
That gap is the case for designing the closed menu and the open menu as separate screens. The closed header has to work with five to fifteen words; the open one has to make 50 links scannable, which is what a mega menu with headed columns is for.
Search in the header#
38% of desktop headers have a form field in the header itself, most often a search box (a magnifier that opens a field later does not count). This is where sectors differ most. Government sites have one on 73% of homepages, retail on 68%, law firms on 65% and charities on 62%. Software (18%), AI products (9%) and recruiting sites (9%) rarely do. If people come to your site to find one item among thousands, put the field in the header; if you sell one product, a search field mostly adds noise.
Show the numbers
| Item | Sticky or fixed | Form field (usually search) |
|---|---|---|
| Software and SaaS (105) | 59% | 18% |
| Agencies and studios (66) | 59% | 17% |
| Retail (60) | 40% | 68% |
| Government (60) | 30% | 73% |
| Performing arts (40) | 40% | 45% |
| Health and care (38) | 55% | 21% |
| Home and DIY (37) | 32% | 41% |
| Charities (37) | 35% | 62% |
| Museums (34) | 47% | 50% |
| Tours (31) | 45% | 45% |
| Hotels (30) | 60% | 50% |
| Banking and payments (29) | 45% | 35% |
| Education (29) | 38% | 52% |
| Events (28) | 64% | 18% |
What this means for your header#
- Sticky is a choice, not a default. Pin it on long pages people scroll and come back up on (docs, news, product pages). Let it scroll away on short portals.
- Keep it under a tenth of the screen. About 100 pixels on desktop and 80 on a phone is what most sites use. A second utility row should earn its height.
- Write the menu for your sector. A software site without Pricing in the menu is unusual; a city or a shop with it would be too.
- Give the phone header one job. Logo, one primary action, and the menu button: the median phone header shows five words.
- Put search in the header only when people search. Large catalogues and public services, yes; a single product, usually no.
Our header blocks and mega menus on shadcn/ui follow these patterns, from a one-row software header to a two-row header with search for a large catalogue. For the code side of a responsive menu, see building a responsive navigation menu with Tailwind CSS. The rest of the page is covered in how long a homepage is and what sections it has and what goes in a website footer.
How we measured#
We study real websites to design our blocks. This study uses the homepages of 1,418 sites captured between 2 and 30 November 2026: 1,286 on desktop and 1,116 on mobile, one capture per site and device. 42% of the sites have a Dutch .nl domain and 42% an international one (.com, .io, .ai and the like), so the sample leans towards the Netherlands and towards software. The page type and sector of each capture were labelled by an AI model from the screenshot.
Each page was loaded in a headless Chromium browser at 1920×1080 or 390×844, with cookie dialogs declined where we could. A script read the page into its sections and recorded, for each, its box, its CSS position and counts of what is in it: links in the markup, buttons, form fields and the words that show. The header is the first thin section at the top of the page, or the element marked as <header> or role="banner"; we found one on 1,069 desktop and 923 mobile homepages. Where the header and the hero share one wrapper element, the height is that wrapper's. A form field is any visible-type input in the header (search, but also a login or language field). Where the header and the hero share one wrapper element, the height is that wrapper's. A form field is any visible-type input in the header (search, but also a login or language field). "Sticky or fixed" is the header element's own position, so a header whose inner bar is pinned while its wrapper is not counts as not pinned: the 48% is a floor.
The menu items come from the text of the navigation we detected at the top of each desktop page. Closed dropdowns are not read, icon-only items have no text, and we matched English and Dutch words only. Every share in this post rests on at least 20 sites.
The aggregate numbers are free to use under CC BY 4.0, with a link to this page: download header.json.
FAQ#
Should a website header be sticky?
About half of all sites make it sticky: 48% of the 1,069 desktop homepages we measured have a sticky or fixed header. Developer tools and news sites pin it most (over 70%), government and car sites least (about 30%). Pin it on long pages people scroll through; keep it short if you do.
How tall should a website header be?
The median is 104 pixels on desktop (middle half 76 to 140) and 80 pixels on a phone (64 to 111), in both cases just under a tenth of the screen height.
What should be in a website header?
A logo, a short menu, and one primary action. Software sites usually show Log in, Products, Pricing and a demo or sign-up button; other sites most often show Contact, About and Log in or My account. 38% also have a form field in the header, usually search.
How long is the top menu?
The visible menu text, buttons included, has a median of 22 words. Behind it the median header holds 24 links, and 31% hold 50 or more in dropdowns or a mega menu.

