Heading hierarchy in SEO: what Google says about H1, H2 and H3
What heading hierarchy (H1-H6) is, what Google says about its order and how to structure it well for SEO and accessibility.
In this article
- What heading hierarchy is (H1-H6)
- Why heading hierarchy matters (and why it is not what most people think)
- What Google Search Central says about headings and SEO (H1, H2, H3)
- So why does everyone still talk about this so much?
- Practical rules for a solid heading hierarchy
- A clear, single H1 per page
- A logical order, with no skipped levels
- The H1 is not the same as the title tag
- Common myths about headings and SEO
- How to audit your site’s heading hierarchy
- Practical implementation in your CMS
- Example: managing the table of contents in Rank Math
- Frequently asked questions about SEO headings
- What to check on your own site
You have looked at a page’s structure, seen an H3 under an H1 with no H2 in between, or two H1 tags in the same template, and wondered whether that is hurting your rankings. It is one of the most searched questions in technical SEO: how SEO headings should be organised, whether the order matters, and whether there is a correct number of H1, H2 or H3 tags per page.
In this article we separate what Google has confirmed from what is simply industry habit: what its documentation actually says about heading hierarchy, what part headings play in accessibility and readability (including for the generative AI systems that extract content), and how to audit yours without chasing a rule that does not exist.
What heading hierarchy is (H1-H6)
HTML has six heading levels: from <h1> to <h6>. Their function is semantic, not visual: they mark the start of a section and its position within the structure of the document, the way a table of contents marks chapters and subchapters in a book. An H2 looking bigger than an H3 is a design decision made by the theme or the template, not what defines its hierarchy; what defines it is the HTML tag wrapped around that text.
Three different kinds of “reader” use that structure: the person scanning the page for the section they care about, the screen reader that builds a navigable table of contents out of the headings for someone with a visual impairment, and the crawlers (Google’s, and the main AI assistants’ too) that lean on that hierarchy to work out what each block of text is about before deciding whether to index it, cite it or discard it.
Why heading hierarchy matters (and why it is not what most people think)
What Google Search Central says about headings and SEO (H1, H2, H3)
The Google Search Central SEO Starter Guide recommends using meaningful headings to signal the important topics on a page and help build a hierarchical structure that makes navigation easier. It is a best-practice recommendation, not a formula with numeric rules: the guide sets no minimum or maximum number of headings, and demands no rigid order in order to “earn ranking points”.
On the more specific point, whether the exact order or the number of H1 tags directly affects rankings, the clarification comes not from that guide but from direct statements by Google’s own spokespeople. Back in 2016, in a Google Search Central hangout, John Mueller explained that moving the heading tags around on a page (putting an H2 ahead of the H1, repeating an H3 several times) causes no ranking change.
Years later, on the official Search Off the Record podcast, Gary Illyes came back to the same point in response to the confusion some SEO tools were creating: there is no “mandatory” heading hierarchy for ranking purposes, and using several H1 tags on the same page is not penalised either, something Mueller himself has repeated on various occasions (“your site is going to rank just as well with zero H1 tags as with five”).
Put another way: headings are indeed a signal Google uses to work out what each fragment of text is about, but that signal depends on the content of the heading (whether it describes the section well), not on whether the specific tag is an H2 or an H3, nor on whether the order is perfectly sequential.
So why does everyone still talk about this so much?
Because although it is not a direct ranking factor, a messy hierarchy does have real consequences, just somewhere else: in accessibility and readability. A screen reader builds its navigation index out of the heading levels; if you jump from an H2 to an H4 with no H3 in between, that person loses track of how deep they are.
And a generative AI assistant that summarises or quotes a fragment of your content leans on that same structure to know what belongs to which section: the clearer the hierarchy, the easier it is to pull out the right answer without taking it out of context.
Practical rules for a solid heading hierarchy
The fact that they are not a ranking requirement does not mean it makes no difference how you use them. They are good practice for clarity and accessibility, with important caveats.
A clear, single H1 per page
Google does not penalise having several H1 tags, but keeping just one, clear and carrying the main keyword, is still the sensible choice: it gives the reader and the crawler a single unambiguous signal saying “this is what this page is about”. The exception is when the site template generates it automatically from the title field, in which case the body of the article should not add a second H1 on top.
A logical order, with no skipped levels
This is more a question of accessibility than of pure SEO, as set out in Google’s documentation style guide for headings and titles: going from an H2 straight to an H4 with no H3 in between breaks the structure for anyone navigating with a screen reader, even though it does not affect your ranking in Google as a search engine.
The H1 is not the same as the title tag
The H1 is the title visible inside the page; the <title> is what appears as the blue link in search results. They can match word for word, but they do not have to: the title tag is usually optimised to win the click in the SERP (with a brand, a year or an added nuance), while the H1 can be a little more descriptive because its audience is already on the page.
Common myths about headings and SEO
“Having more than one H1 penalises the page.” False. Google has clarified this several times: its systems have no problem with multiple H1 tags, it is a common pattern in many modern templates and it triggers no ranking penalty.
“Heading order is a ranking factor.” False, according to Google’s own statements. It is striking, in fact, that this is one of the most repeated SEO myths in the industry even though the official clarification has been circulating for almost a decade in Google’s own channels (hangouts, podcast, Search Central forums): the gap between what the primary source says and what is still assumed to be a rule in SEO tools and checklists is wider than you would expect for such a frequently asked topic.
“The more headings, the better for SEO.” False. There is no optimal number. The signal Google values is how clearly each heading describes what follows below it, not the total volume of H2 or H3 tags on the page.
How to audit your site’s heading hierarchy
- Inspect the source code. Using “view source” or your browser’s developer tools, look for every <h1> to <h6> tag and check the real order, not the one the text size suggests at a glance.
- Use your browser’s accessibility tools. Chrome, Firefox and Edge include accessibility panels that list a page’s heading hierarchy exactly as a screen reader would interpret it.
- Try a heading outline extension. There are free extensions that generate a visual list of H1 to H6 for any URL in seconds, useful for reviewing several pages of a template at once.
- Review templates, not just individual articles. A duplicate H1 is almost never a one-off mistake by a writer: it usually comes from a template that already inserts an automatic H1 and then has another one added manually in the body.
When this review brings several of these problems to the surface at once (duplicate H1 tags, skipped levels, empty headings), it is rarely an isolated fault: it is normally a symptom of a page structure that was not designed for a crawler, human or generative AI, to easily work out which content belongs to which section.
It is exactly the kind of structural readability problem reviewed by the Parsigo technical diagnostic, which does not mean that fixing the headings will on its own improve rankings or citation by an AI assistant.
Practical implementation in your CMS
Example: managing the table of contents in Rank Math
If you use the Rank Math plugin on WordPress, its table of contents block lets you exclude particular heading levels (H1 to H6) so they do not appear in the automatic index.
It is useful, for example, to stop the article’s own H1 being duplicated inside its index, or to keep very secondary headings (an H4 used only for a side note) from cluttering the table of contents with too many levels. You configure it from the block options, ticking which levels you want to include or exclude, as detailed in the official Rank Math documentation.
This is only one specific example: how other CMSs and plugins (Yoast, Shopify, Prestashop) handle heading hierarchy would fill an article of its own, which is not the aim of this guide.
Frequently asked questions about SEO headings
What are H1, H2 and H3 tags?
They are HTML tags that mark the different heading levels on a page, from most important (H1) to least important (H6). Their job is to structure the content into sections and subsections, not to apply a visual style.
What are H1, H2 and H3 tags for?
They let users, screen readers and crawlers (from search engines and from AI assistants) understand how the content is organised: what the main topic is (H1), which sections develop it (H2) and which subsections sit inside each one (H3 and below).
How do you optimise the headings of a post for SEO?
Use a single H1 with the main keyword, include that same keyword naturally in at least one H2, keep a logical order without skipping levels and write each heading so that it clearly signals what the section is going to explain, avoiding empty headings such as “more information” or “conclusion”.
Is it bad to have several H1 tags on the same page?
It does not penalise rankings: Google has confirmed that its systems handle several H1 tags on the same page without any trouble, and it is a common pattern in some templates. Even so, keeping a single clear H1 is still the most advisable practice for clarity.
Does heading order affect SEO?
Not directly. Google has clarified that moving or reordering the heading tags on a page causes no ranking change. It does affect accessibility and readability for screen readers and AI systems, which is the real reason to keep a logical order.
How do you write a correct H1 tag?
It should be unique on the page, include the main keyword naturally, describe precisely the content that follows and be distinct from (though it can be similar to) the title tag that appears in search results.
What to check on your own site
Do not chase an exact number of headings: there is no such thing. What does deserve a concrete review is confirming that every page has a clear H1, that the order from H2 to H6 skips no levels, and that each heading genuinely signals what comes below it.
You can start with the URL inspection tool in Search Console to see how Google indexes a particular page, and complement it with an accessibility extension to review the whole hierarchy in a few seconds.
Check it on your site
Finding out whether AI systems can read you takes a few seconds
We analyse several pages of your domain and tell you what the crawlers find. Free, no sign-up.