Average Rating Calculator

Average Rating Calculator

Turn counts of 1- to 5-star reviews into an average rating with its spread and share of positive reviews, plus a Bayesian average that fairly ranks items with very different numbers of reviews.

Average = Σ (stars × count) ÷ total ratings

Enter how many reviews gave each number of stars

What Is an Average Rating?

An average rating is the weighted mean of star ratings: each star level multiplied by how many people gave it, added up, and divided by the total number of ratings. It's the familiar "4.3 out of 5".

On its own it ignores how many ratings there are. One 5-star review gives a perfect 5.0, which tells you almost nothing. Ranking items by raw average pushes barely-reviewed items to the top.

A Bayesian average fixes this by starting every item at a typical rating and letting real reviews pull it away. Items with few reviews stay near the typical value; items with many reviews move to their own average.

Average Rating Formulas

The Bayesian average is a shrinkage estimator in the empirical-Bayes tradition (Efron & Morris, 1975). See Sources.

1. Average rating

R̄ = (1·n₁ + 2·n₂ + 3·n₃ + 4·n₄ + 5·n₅) ÷ (n₁ + … + n₅)

2. Bayesian average

B = (C × m + n × R̄) ÷ (C + n)

m is the typical rating across all items; C is how many "imaginary" ratings of m each item starts with.

3. Share of positive reviews

positive = (n₄ + n₅) ÷ n

Worked Example: 5 Reviews Against 400

Given:
Kettle A has 5 reviews (four 5★, one 4★). Kettle B has 400 (270 5★, 90 4★, 20 3★, 10 2★, 10 1★). Across the shop, kettles average 3.8.
Step 1:
Raw averages:
A: 24 ÷ 5 = 4.8 · B: 1,800 ÷ 400 = 4.5
Step 2:
Bayesian averages with C = 20:
A: (20 × 3.8 + 24) ÷ 25 = 4 · B: (76 + 1,800) ÷ 420 = 4.47
Step 3:
Rank:
raw: A above B · Bayesian: B above A
Result:
Kettle B ranks first, 4.47 vs 4

Five glowing reviews could easily be friends of the seller or luck. Four hundred mostly happy customers are much stronger evidence. As A collects reviews, its Bayesian average will move towards its true level.

How the Bayesian Average Changes Rankings

Items with the same raw average but different numbers of ratings (m = 3.8, C = 20).

Bayesian average for a 4.8 raw average with different numbers of ratings
Raw averageRatingsBayesian average
4.813.85
4.854
4.8204.3
4.81004.63
4.81,0004.78

Common Average Rating Mistakes

  • Ranking by raw average. A single 5★ review beats thousands of 4.9★ ones. Use a Bayesian average or a lower confidence bound.
  • Averaging the averages. Combining two shops' 4.0 and 4.6 as 4.3 ignores that one may have ten times the reviews. Combine the star counts instead.
  • Ignoring the shape. A 3.0 from all 3★ reviews and a 3.0 from half 1★, half 5★ describe very different products; check the bars.
  • Treating star gaps as equal. The step from 4★ to 5★ may not mean the same to reviewers as 1★ to 2★; the median and share of 4–5★ are useful alongside the mean.

Average Rating FAQs

How do I calculate an average star rating?

Multiply each star level by its number of reviews, add them up, and divide by the total number of reviews.

What is a Bayesian average?

An average that starts from a typical value and moves towards the item’s own average as reviews accumulate.

How do I choose C?

Roughly the number of reviews at which you’d start trusting an item’s own average; a common choice is the typical number of reviews per item.

What should m be?

The average rating across all items in the category. It defaults to 3 here, the middle of the scale.

Why is the median shown?

Ratings are often skewed towards 5 stars; the median isn’t pulled down by a few 1-star reviews.

Can I use a 10-point scale?

This page is for 1 to 5 stars. For other scales, the same formulas apply with different weights.

Why do so many products have 4+ stars?

Happy customers and incentivised reviews skew ratings upwards, so differences near the top matter more than they appear.

Is there an even more robust method?

The lower bound of a confidence interval for the share of positive ratings is also widely used for ranking.

Sources

  • B. Efron and C. Morris, "Data analysis using Stein's estimator and its generalizations", Journal of the American Statistical Association 70 (1975), doi:10.1080/01621459.1975.10479864.

Related Tools