Table of contents
FAQ schema is code that labels the frequently asked questions (FAQs) and answers on a web page, so search engines and AI tools can tell a question from its answer. Google stopped showing FAQ rich results (the question dropdowns in search listings) on May 7, 2026.
This guide covers what FAQ schema is, Google support, AI answers, a code example, the WordPress and HubSpot steps, testing and the errors that break the code.
What is FAQ schema?
FAQ schema is a set of labels from schema.org (the shared vocabulary for page code) that marks each question and its answer on a web page. The label for the whole block is FAQPage, which schema.org defines as a web page presenting one or more frequently asked questions.
FAQ schema markup uses 5 main labels, and each label has a single job:
- FAQPage is the type that says the block holds questions written and answered by the site.
- mainEntity is the property that holds the list of questions.
- Question is the type for one question, and its "name" property holds the question's full text.
- acceptedAnswer is the property that connects a question to its answer.
- Answer is the type for one answer, and its "text" property holds the full answer.
I run technical and on-page SEO (search engine optimization) across SaaS (software as a service) web properties. I would treat FAQPage code, which readers never see, as a copy of the visible FAQ section.
For the other types, such as BlogPosting and BreadcrumbList, my structured data guide explains which ones a SaaS site needs.
FAQPage vs QAPage: which type fits your page?
FAQPage fits questions that the site itself answers, and QAPage fits 1 question that visitors answer, such as a forum thread. Google says users must be able to submit answers on a QAPage, so an FAQ page written by the site does not qualify.[1]
Does FAQ schema still work in Google?
FAQ schema no longer produces a special listing in Google Search for any site, although FAQPage code is still valid. The FAQ schema SEO benefit that older guides describe, a listing with question dropdowns, ended in 3 steps:
- In August 2023, Google limited FAQ rich results to well-known, authoritative government and health websites.[2]
- On May 7, 2026, Google stopped showing FAQ rich results in Search.[3]
- In June 2026, Google removed the FAQ rich result documentation from Google Search Central.
Google's 2023 notice said unused structured data does not cause problems for Search and has no visible effects there. The same notice said there was no need to remove the code and that the limit was not a ranking change.
I would decide what to do with FAQPage code by 4 rules:
- Keep: Keep the FAQPage code when every labeled question and answer is visible on the page and still correct.
- Add: Add the FAQPage code when your template or plugin can build it from the visible FAQ section, so the 2 texts always match.
- Fix: Fix the FAQPage code when someone edited the visible answers and the FAQPage block still holds the old text.
- Remove: Remove the FAQPage code when its questions are hidden, invented for search engines, or missing from the page.
Hidden questions are the risk worth acting on, because Google's guidelines say not to mark up content that readers cannot see.[4] My technical SEO audit checklist places the structured data check among the crawl, index and speed checks.
What does FAQ schema do for AI answers?
FAQPage code gives an AI system a labeled question and answer pair, and Google does not require that label for AI answers. Google and Microsoft have each published a position:
- Google: Google says structured data is not required for generative AI search and that no special schema.org markup needs to be added.[5]
- Microsoft: Microsoft describes schema as code that helps search engines and AI systems understand content, and FAQ is one of the labels Microsoft names.[6]
- The visible text: Microsoft says AI assistants can often lift question and answer pairs word for word, and that advice is about the writing on the page.
FAQ schema for AEO (answer engine optimization, the work of getting cited in AI answers) is an extra label on good answers. I would write the direct answer in the visible text first and add the label second.
Some ranking pages still carry the code. I checked the HTML (the page's source code) of 3 ranking guides on the topic, from HubSpot, Search Engine Journal and Rank Math, and all 3 carry FAQPage code.
I track AI answer visibility in Profound and search results in Google Search Console, so I judge FAQ content by the questions that gain citations or clicks. A count of FAQPage blocks on a site says nothing about citations or clicks.
My guide to featured snippets covers the answer box that Google fills without FAQ code.
What does a JSON-LD FAQ schema example look like?
A JSON-LD (JavaScript Object Notation for Linked Data) FAQ example is 1 script block with an FAQPage, a list of questions and 1 answer inside each question. The example below comes from my live post on answer engine optimization, shortened from 7 questions to 1:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"@id": "https://princedewani.online/blog/answer-engine-optimization/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "Does AEO replace SEO?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No, AEO does not replace SEO. Google says its generative AI features are rooted in its core Search ranking and quality systems. A page must be indexed and eligible for a snippet to appear in Google's AI features. A site that stops its technical SEO work can lose the crawl access and indexing that Google's AI answers depend on."
}
}
]
}
</script>I compared the FAQPage code of the same live post with its visible text. All 7 questions and all 7 answers match word for word, and each answer runs 44 to 59 words.
The FAQPage format has 4 rules to copy from the example:
- One list: The "mainEntity" property uses square brackets, and every extra question goes inside the same brackets after a comma.
- One answer each: Every Question holds exactly 1 "acceptedAnswer", because the site gives a single official answer.
- Full text: The "name" and "text" properties hold the complete question and answer as the reader sees them.
- One block: Each page needs a single FAQPage object. My live post carries 1 FAQPage object, built from the same data that prints the visible FAQ section.
How do you add FAQ schema in WordPress and HubSpot?
You add FAQPage code in WordPress with an FAQ block from an SEO plugin, and in HubSpot by pasting JSON-LD into the "Head HTML" field. Write the visible FAQ section first in WordPress or HubSpot, because the code must repeat its text.
How to add FAQ schema in WordPress
In WordPress, the plugins Yoast SEO and Rank Math build the FAQ section and its code together. The Yoast FAQ block is included in the free Yoast SEO plugin.[7]
Here are the steps to add an FAQ with Rank Math in the WordPress block editor:
- Enable the "Schema" module under "Rank Math SEO" in the WordPress dashboard.
- Open the post or page in the block editor.
- Search the blocks for "FAQ by Rank Math" and click it.
- Type the question and its answer in the block's 2 fields.
- Click "Add New FAQ" for each extra question.
- Publish the post, and Rank Math adds the FAQPage code.[8]
For Yoast SEO, add the Yoast FAQ block in the WordPress editor and type the questions and answers. Use 1 plugin's FAQ block per page, so the page does not carry 2 sets of FAQ code.
How to add FAQPage code in HubSpot
HubSpot blog posts, website pages and landing pages accept FAQPage code as a code snippet, and pasting it needs "Edit and Publish" permission. Here are the steps to add the code to a HubSpot blog post:
- Go to "Content", then "Blog" (click "More" first if your account shows it), and click the post's name.
- Click the "Settings" menu in the editor and select "Advanced".
- Paste the JSON-LD, with its script tags, into the "Head HTML" field under "Additional code snippets".
- Click "Publish" or "Update".[9]
HubSpot has no footer HTML field for blog posts, and the options for head and footer HTML vary by subscription and content type.
Paste new JSON-LD into "Head HTML" each time you edit a visible answer, because the pasted snippet keeps the old text.
How do you run an FAQ schema test?
You run an FAQ schema test with the Schema Markup Validator, a checker for all schema.org code. Rank Math says the Rich Results Test, Google's checker, has removed its FAQ report.[8]
The Schema Markup Validator reads a live URL (web address) or pasted code.[10]
Here are the steps to test the FAQPage code on one page:
- Paste the FAQPage code into the Schema Markup Validator and look for the FAQPage, Question and Answer types.
- Count the questions in the result and compare the number with the visible FAQ section.
- Publish the page and open its source code in your browser.
- Search the source for "FAQPage" and confirm that only 1 script block uses it as a type.
- Read 2 answers in the code against the 2 visible answers, word for word.
Test 1 page for each place your FAQPage code comes from: the template, the plugin and any hand-pasted snippet. My AI SEO tips cover the page work to do before schema.
Which errors break FAQPage code?
7 errors I tested can break FAQPage code, and a syntax check found only 5 of them. I made 7 faulty copies of a small FAQPage block and ran each copy through a JSON parser (a program that reads JSON code):
- Extra comma: A comma after the last question made the parser reject the whole block.
- Unescaped quote marks: Double quotes inside a question ended the text early, so write them as
\"in the code. - Curly quote marks: Curly quotes pasted from a word processor failed, because JSON needs straight quotes around names and values.
- Line breaks: A real line break inside an answer's text failed, so keep each answer on 1 line of code.
- Comments: A developer comment inside the block failed, because JSON has no comments.
- Misspelled property: The name "acceptedAnswr" passed the parser, although schema.org has no such property.
- Wrong capital letters: The type "FaqPage" passed the parser, although the schema.org type is "FAQPage".
The misspelled property and the wrong capital letters need a check against schema.org's own names. The other 5 errors show up in a JSON checker.
Where should you start with FAQ schema?
Start on your highest-traffic page that already has an FAQ section and FAQ schema: open its source, find "FAQPage" and compare 2 answers with the visible text. Keep the code if the texts match, and fix or remove the code if the texts differ.
Work on the answers next, because readers and AI assistants read the visible text. My answer engine optimization guide shows how to write an answer worth labeling.
Resources and References Used for Research
- [1] Q&A (QAPage) structured data - Google Search Central (2026)
- [2] Changes to HowTo and FAQ rich results - Google Search Central (Aug 2023)
- [3] Latest Google Search documentation updates - Google Search Central (2026)
- [4] General structured data guidelines - Google Search Central (2026)
- [5] Optimizing your website for generative AI features on Google Search - Google Search Central (2026)
- [6] Optimizing Your Content for Inclusion in AI Search Answers - Microsoft Advertising (Oct 2025)
- [7] FAQ block - Yoast (2026)
- [8] How to Add FAQ Schema Block Using Rank Math SEO - Rank Math (2026)
- [9] Use code snippets with HubSpot content - HubSpot (Feb 2026)
- [10] Schema.org Markup Validator - Schema.org (2026)
FAQ Schema FAQs
Is FAQ schema still relevant?
Yes, FAQ schema is still relevant, because FAQPage is still a schema.org type and Microsoft names FAQ among its schema labels. The FAQ blocks in Yoast SEO and Rank Math still add FAQPage code to WordPress pages. Keep or add the code when it matches the visible answers, fix old text, and remove the code when its questions are hidden.
Does removing FAQ schema hurt rankings?
No, Google's notices on FAQ rich results do not say that removing FAQ schema hurts rankings. Google's 2023 notice said the first FAQ limit should not be considered a ranking change. The 2023 notice said a site can drop the code and has no need to remove it. Remove FAQ schema when its questions are missing from the visible page.
Why does the Rich Results Test show no FAQ result?
The Rich Results Test shows no FAQ result because Google ended FAQ rich results, and Rank Math's help page says that the test removed its FAQ report. An empty result does not mean the FAQPage code is broken. Use the Schema Markup Validator to check the FAQPage, Question and Answer labels.
How many questions should FAQ schema have?
FAQ schema has no fixed number of questions. Yoast's FAQ block page gives no limit and advises adding the questions visitors actually ask, instead of padding the list. Label every question that is visible in the FAQ section. My own answer engine optimization post labels 7 questions, with answers of 44 to 59 words.
Is FAQ schema free to add?
Yes, FAQ schema is free to add, because JSON-LD is plain text that you can write by hand with schema.org's public names. On WordPress, the FAQ block is part of the free Yoast SEO plugin. On HubSpot, the code goes into the Head HTML field of a page or blog post.
Can FAQ schema go in the body of a page?
Yes, FAQ schema can go in the body of a page, because Google says JSON-LD can sit in the head or the body. The FAQPage block on my live post about answer engine optimization sits in the body of the page. HubSpot blog posts take the code in the head instead, through the Head HTML field in the post's advanced settings.


