Sub topic 7
Calculate engagement rate consistently
Engagement rate is the metric most audits lean on, and it is also the one most often calculated inconsistently. A number is only useful for comparison if every account and every post was measured the same way. This chapter assumes you have defined your core metrics (followers, reach, impressions, likes, comments, shares, saves) and have collected post-level data as described in the previous chapters. You should be comfortable with medians in a spreadsheet. The Python examples are optional.
What engagement rate measures
Engagement rate is the share of an audience that interacted with a post. It has two parts:
- The numerator is the interactions you count.
- The denominator is the audience you measure them against.
Both choices change the result. Two people can look at the same post and report different engagement rates, and both can be correct for their own definition. The audit goal is to pick one definition and apply it to every account.
Choose the numerator
Decide which interactions count and write the list down. A common definition for an audit is:
- likes
- comments
- shares
- saves
Some platforms do not expose every field for competitors. Public pages usually show likes and comments, but shares and saves are often visible only to the account owner. This creates a trap: if you count saves for your own account but not for a competitor's, your account looks stronger than it is.
To avoid this, keep two versions of the metric:
- Full engagement rate, using all four interactions. Use it only for your own accounts.
- Public engagement rate, using only the interactions visible on any account (usually likes and comments). Use it for every comparison with a competitor.
Do not mix the two in one table.
Choose the denominator
The denominator has three common options.
| Denominator | Formula | Strength | Weakness |
|---|---|---|---|
| Followers at posting time | interactions ÷ followers | Available for competitors; easy to compare | Ignores that many followers never see the post |
| Reach | interactions ÷ reach | Closest to how a post actually performed | Reach is private for accounts you do not own |
| Impressions | interactions ÷ impressions | Counts repeat views | Also private; inflated by repeat views |
For benchmarking, followers is usually the only denominator you can get for every account. For analysis of your own content, reach is more informative because it shows how well a post held the attention of people who saw it.
Use the follower count at the time of posting, not today's count. If an account grew from 10,000 to 15,000 followers over a quarter, dividing old posts by 15,000 understates their rate. This is why the sample data sheet has a followers_at_post column. For competitors, you can record the follower count each time you collect data and use the nearest snapshot.
Use the median, not the mean
A single viral post can pull an average far above what the account normally achieves. The median is the middle value when posts are sorted, so one outlier barely moves it. Report the median as the headline figure. Report the mean alongside it only if you want to show how much outliers matter. A large gap between the two tells you the account depends on a few hits.
Compute it from the data sheet
The data sheet holds one row per post. This is the example file used in the code below. Save it as posts.csv.
post_id,platform,format,posted_at,followers_at_post,reach,likes,comments,shares,saves
p001,instagram,reel,2026-10-03T17:00:00Z,12400,8100,420,35,60,90
p002,instagram,carousel,2026-10-05T12:30:00Z,12450,5200,310,22,18,140
p003,instagram,image,2026-10-08T09:15:00Z,12480,3900,120,8,4,10The script below computes the rate for each post and prints the median. The function takes the denominator column as an argument, so the same code can produce a follower-based or reach-based rate.
import csv
from statistics import median
def engagement_rate(row, base):
interactions = (
int(row["likes"]) + int(row["comments"])
+ int(row["shares"]) + int(row["saves"])
)
denominator = int(row[base])
return interactions / denominator if denominator else None
with open("posts.csv", newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
rates = [
r for r in (engagement_rate(row, "followers_at_post") for row in rows)
if r is not None
]
if rates:
print(f"Posts: {len(rows)}, median engagement rate by followers: {median(rates):.2%}")Work through the first row by hand to check the logic. The interactions are 420 + 35 + 60 + 90 = 605. Dividing by 12,400 followers gives 4.88%. The second post has 490 interactions over 12,450 followers, or 3.94%. The third has 142 over 12,480, or 1.14%. The median of the three is 3.94%.
The function returns None when the denominator is zero, and the list comprehension drops those rows. This matters because a missing or zero value would otherwise raise an error or produce a misleading rate.
To get a reach-based rate for your own account, change one argument:
reach_rates = [
r for r in (engagement_rate(row, "reach") for row in rows)
if r is not None
]
print(f"Median engagement rate by reach: {median(reach_rates):.2%}")This block reuses rows and engagement_rate from the previous one, so run them in the same script.
Break the rate down by format
An account-wide median hides differences between formats. Grouping by format shows which types of post carry the result. The next script reuses rows and engagement_rate from above.
from collections import defaultdict
from statistics import median
by_format = defaultdict(list)
for row in rows:
rate = engagement_rate(row, "followers_at_post")
if rate is not None:
by_format[row["format"]].append(rate)
for fmt, values in sorted(by_format.items(), key=lambda kv: median(kv[1]), reverse=True):
print(f"{fmt}: {len(values)} posts, median {median(values):.2%}")With the three sample posts, each format has one post, so each median equals that post's rate. Real audits need more. A format with two or three posts tells you very little. As a working rule, treat any format with fewer than about ten posts as a hint, not a finding, and say so in the report.
The calculation workflow
Common errors
- Using today's follower count for old posts. This understates the rate for growing accounts and overstates it for shrinking ones.
- Mixing definitions across accounts. Counting saves for yourself and not for a competitor is the most frequent cause of a false lead.
- Comparing different time windows. Use the same date range for every account, such as the last 90 days.
- Mixing formats and platforms in one median. Reels, images, and text posts behave differently, and platforms count interactions differently. Calculate per platform first.
- Including paid promotion. Boosted posts reach people outside your audience. Exclude them or flag them, and note that competitors' paid posts are often not identifiable.
- Ignoring tiny samples. A median over five posts can change a lot when one post is added.
- Treating comments as equal in value. A comment from the account owner replying to a user inflates counts on some platforms. Exclude replies by the account itself if your export lets you.
Record your method
Write the definition in the audit document so someone else can repeat it. Include the interactions counted, the denominator, the date range, how paid posts were handled, and the minimum sample size. A rate with no stated method cannot be checked, and next quarter's audit will not be comparable to this one without it.
Exercise
An account has three posts. Post A has 300 interactions and 10,000 followers at posting time. Post B has 150 interactions and 10,500 followers. Post C has 2,400 interactions and 11,000 followers because it went viral. What is the median engagement rate by followers, and why is the median a better headline figure than the mean here?
Show answer
The rates are A = 300 ÷ 10,000 = 3.00%, B = 150 ÷ 10,500 ≈ 1.43%, and C = 2,400 ÷ 11,000 ≈ 21.82%. Sorted, they are 1.43%, 3.00%, 21.82%, so the median is 3.00%. The mean is about 8.75%, which is pulled far upward by the viral post and does not describe what the account normally achieves. The median stays close to the typical post.
Exercise
You can see likes, comments, shares and saves for your own account, but only likes and comments for a competitor. Which engagement rate should you use to compare the two, and what should you report for your own account separately?
Show answer
Use the public engagement rate (likes plus comments, divided by followers at posting time) for both accounts, so the same interactions are counted on each side. Report your full engagement rate (all four interactions) separately as an internal figure, and do not place it in the same table as the competitor's number.