How to add star ratings to Google results
How to get star ratings in Google results: which pages qualify, the review markup to add, Google's rules on self-serving and fake reviews, and how to test.
To add star ratings to Google results, you need genuine reviews displayed on the page and review structured data that describes them, usually Review or AggregateRating markup in JSON-LD. Even then Google decides whether to show the stars: it may show a rich result, but it does not guarantee it, and some types of pages are not eligible at all.
This guide explains where star ratings can appear, which pages qualify, how to add the markup, why Google often does not show it and what to avoid.
Where star ratings appear in Google
Not all stars in Google come from the same place:
- Review rich results in the standard listings. These come from structured data on your pages, which is what this article covers.
- Google Maps and local results. The stars there come from reviews on your Google Business Profile, not from markup on your website. To improve them, work on your Google Business Profile.
- Third-party review sites. Platforms that collect reviews can earn their own star ratings in results, but those belong to their pages, not yours.
Star ratings help a listing stand out and signal that real customers have used the product, which can make a click more likely. They are a presentation feature, not a ranking shortcut.
Which pages are eligible for star ratings
Google’s review snippet documentation lists the types of items that can show star ratings: Book, Course, Event, LocalBusiness, Movie, Product, Recipe and SoftwareApplication, along with several other schema.org types (review snippet guidelines).
The restrictions matter more than the list:
- LocalBusiness and Organization are supported only for sites that capture reviews about other local businesses or organizations, such as a directory.
- If the entity being reviewed controls the reviews about itself, pages using LocalBusiness or Organization markup are ineligible for the star review feature. These are called self-serving reviews.
- Ratings must come from users. They cannot be written, curated or compiled by your own editors.
- Google says not to include fake or undisclosed incentivized reviews on the page or in the markup.
In practice, an online shop can show star ratings on product pages, a recipe site on recipes and a software company on app pages. A dental clinic or a law firm marking up its own reviews on its homepage will not get them. That is Google’s rule, not a technical problem you can fix, and it is why local businesses rely on their Business Profile for stars.
How to add star ratings step by step
1. Show real reviews on the page
The reviews you mark up must be visible to visitors and must come from real customers. Collect them through your shop, your order emails or an independent review platform. Do not copy reviews from other sites.
2. Choose the right markup
Use Review for an individual review and AggregateRating for the overall score. According to Google’s documentation:
- A Review needs the author, the item reviewed and a rating value, and benefits from the publication date and the best and worst rating values.
- An AggregateRating needs the item reviewed, the rating value and either a rating count or a review count.
3. Add it as JSON-LD
JSON-LD is the format Google recommends for structured data. This example uses placeholder values for a hypothetical product:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Example trail running shoe",
"image": "https://www.example.com/shoe.jpg",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"bestRating": 5,
"worstRating": 1,
"reviewCount": 128
}
}
</script>
The figures in the markup must match the reviews people can see on the page. If the page shows 128 reviews, the markup must say 128 and not a rounded or inflated number.
4. Use a plugin if you work with a CMS
Many e-commerce platforms and SEO plugins output review markup for you. If you use WordPress, the Yoast SEO plugin and the Rank Math plugin both manage schema. Always inspect the final page: duplicate markup from a theme and a plugin is a common source of errors.
5. Test it
Paste the URL or code into Google’s Rich Results Test to see whether the page is eligible and which warnings appear. After publishing, Search Console reports valid and invalid items under its enhancement reports, and you can request a fresh crawl with URL Inspection.
Why Google does not show the stars
Valid markup is necessary but not sufficient. The usual reasons for missing stars:
- The page type is not eligible, or it is a self-serving review on a LocalBusiness or Organization page.
- The markup does not match the visible content, or the reviews are not on the page at all.
- The page is not indexed yet, or has not been recrawled since you added the markup.
- The markup has errors or missing required properties.
- Google simply chose not to show the feature for that query. Structured data features are never guaranteed.
If you manage a shop, our guide to SEO for an online store shows where review markup fits among product page priorities.
What not to do
- Do not invent reviews or ratings. Beyond being dishonest, it can lead to manual action against your structured data.
- Do not offer rewards for reviews without disclosure. Google’s Business Profile rules say offering free or discounted goods or services in exchange for reviews is strictly prohibited (tips to get more reviews).
- Do not mark up reviews that are not on the page.
- Do not copy one rating across pages about different items. Each rating must describe the specific item on that page.
For wider technical problems that may be holding a site back, a full SEO audit is the next step.
Frequently asked questions
Can I get star ratings for my business homepage?
Generally no. Google treats reviews that a LocalBusiness or Organization writes or controls about itself as self-serving and makes those pages ineligible for star ratings. Your Google Business Profile reviews can still show stars in Maps and local results.
How long do star ratings take to appear in Google?
After you publish valid markup, Google must recrawl and process the page, which can take days or weeks. Even then there is no guarantee that stars will appear, and they may come and go.
Do star ratings improve my rankings?
Markup helps Google understand the page and makes it eligible for rich results, but it is not a shortcut to higher rankings. The benefit is a more attractive listing that can earn more clicks.
Can I offer a discount in exchange for reviews?
Google’s Business Profile rules prohibit offering free or discounted products or services in exchange for reviews, and its review snippet guidelines forbid fake or undisclosed incentivized reviews in markup. Ask every customer in the same neutral way instead.
Which markup should I use, Review or AggregateRating?
Use Review for each individual review and AggregateRating for the combined score. Many product pages use both, as long as everything marked up is visible on the page.
If you would like help with structured data or a technical SEO review, our SEO and GEO team can take care of it, and our web design team can build review sections into your pages.


