Sub topic 1
What a keyword gap is and why it matters
Prerequisites
This chapter assumes you already know the following:
- Basic SEO vocabulary: organic search, SERP (search engine results page), ranking position, and search intent.
- What a keyword is in the SEO sense: the phrase a person types into a search engine.
- How to open a CSV file in a spreadsheet and sort or filter columns.
You do not need a Semrush or Ahrefs account to read this chapter. You will need one from the next chapters onward. A free or trial tier is enough to follow along. Python and pandas are optional and only matter in the scripting chapter.
The core idea
A keyword gap is the set of search queries where your competitors earn organic visibility and you do not, or where they do noticeably better than you. A keyword gap analysis compares the organic keyword lists of two or more domains and shows where those lists differ.
The word "gap" is a little misleading. It suggests a single hole to fill. In practice you get a long list of differences, and most of them are not worth acting on. The skill is in deciding which differences matter. That is why this tutorial spends a lot of time on filtering, intent, and prioritization after the report is generated.
Each tool uses its own name for the feature:
| Tool | Feature name | Where it lives |
|---|---|---|
| Semrush | Keyword Gap | Competitive Research toolkit |
| Ahrefs | Content Gap | Site Explorer, under Organic search |
Both tools answer the same question. Ahrefs frames it as "which keywords do these sites rank for that my site does not?". Semrush shows a wider matrix with several categories at once. Chapter 5 and Chapter 6 cover the interfaces. Here the goal is to build the mental model that applies to both.
What the comparison actually looks like
Imagine you run a site selling running shoes. You compare your domain against two competitors. For each keyword, the tool records whether each domain ranks and at what position. Take these example rows:
| Keyword | Your position | Competitor A | Competitor B |
|---|---|---|---|
| best trail running shoes | not ranking | 4 | 7 |
| how to lace running shoes | 18 | 3 | 5 |
| running shoe size chart | 6 | 9 | 12 |
| marathon training plan | not ranking | not ranking | 11 |
Reading the rows one at a time:
- "best trail running shoes": both competitors rank and you do not. This is the clearest kind of gap.
- "how to lace running shoes": you rank, but on page two, while both competitors are in the top five. You have a page, but it is underperforming.
- "running shoe size chart": you outrank both competitors. This is a strength, not a gap.
- "marathon training plan": only one competitor ranks. This may be a gap, but the evidence is thinner.
These four rows already show the main categories, which Chapter 7 covers in full: missing, weak, strong, and the shared and unique groups. The names matter less than the question behind each one: do I lack a page, or do I have a page that needs work?
Why it matters
A keyword gap is useful because it replaces guessing with evidence from the search results themselves. There are four practical benefits.
- It finds topics you did not know to cover. Keyword brainstorming is limited by what you already know. Competitor data shows queries your audience actually uses that you never considered.
- It validates demand. If two or three competitors rank for a query, there is usually real search interest and a page type that Google considers relevant.
- It separates two different jobs. Missing keywords call for new content. Weak keywords call for improving existing pages. These need different work, budgets, and timelines.
- It gives you a defensible way to prioritize. Instead of arguing about which blog post to write, you can rank candidates by volume, difficulty, and intent.
Gap analysis is also cheaper than most research methods. A single report can take minutes to generate and costs a fraction of commissioning a content audit.
What a keyword gap does not tell you
A gap report shows what competitors rank for. It does not show whether ranking for it is a good idea for you. Several common mistakes follow from forgetting this.
- Rankings are not revenue. A competitor may rank first for a high-volume keyword that brings visitors who never buy. Copying that ranking copies the traffic, not the business result.
- A missing keyword may be off-topic. Competitors often publish content outside your scope. If you sell running shoes and a competitor also sells hiking gear, their hiking keywords are noise for you.
- Intent may not match your site. A keyword whose results are all comparison pages will rarely be won by a product page. Chapter 9 covers checking this before you commit.
- The data is an estimate. Volumes, difficulty scores, and traffic figures are modeled by the tools, not measured by Google. Chapter 13 covers this in detail.
- Competitors can be wrong. A competitor ranking for something does not prove the page is good. They may rank because of a strong domain, and the same page on your site would not perform the same way.
Where the gap fits in the larger workflow
Keyword gap analysis is one stage in a sequence. Knowing the order helps you see why the later chapters exist.
- Choose competitors based on who actually shares your search results, not only who you consider a business rival (Chapter 2).
- Understand the data and its core metrics so that you read each column correctly (Chapters 3 and 4).
- Run the report in Semrush or Ahrefs with the right country and domain settings (Chapters 5 and 6).
- Classify and filter the results into categories, and strip out noise (Chapters 7 and 8).
- Check intent so that the content type you plan matches what Google rewards (Chapter 9).
- Prioritize using a score that combines volume, difficulty, and the number of competitors ranking (Chapter 10).
- Plan content by mapping keywords to new or existing pages (Chapter 12).
- Measure whether the work produced results (Chapter 14).
The final arrow points back to the start on purpose. Search results change, competitors publish, and your own pages move. A gap analysis is a snapshot, and most teams repeat it every quarter or two.
A small worked example of the logic
You do not need a tool to understand the logic underneath. A gap report is a comparison of sets. If you treat each domain's ranking keywords as a set, the categories fall out of basic set operations.
# Keywords each domain ranks for, with positions.
mine = {"how to lace running shoes": 18, "running shoe size chart": 6}
comp_a = {
"best trail running shoes": 4,
"how to lace running shoes": 3,
"running shoe size chart": 9,
}
comp_b = {
"best trail running shoes": 7,
"how to lace running shoes": 5,
"running shoe size chart": 12,
"marathon training plan": 11,
}
competitors = [comp_a, comp_b]
all_keywords = set(mine) | set(comp_a) | set(comp_b)
for kw in sorted(all_keywords):
comp_positions = [c[kw] for c in competitors if kw in c]
my_pos = mine.get(kw)
if my_pos is None and len(comp_positions) >= 2:
label = "missing"
elif my_pos is None:
label = "missing (only one competitor)"
elif comp_positions and min(comp_positions) < my_pos:
label = "weak"
else:
label = "strong"
print(f"{kw:30} -> {label}")Running this prints:
best trail running shoes -> missing
how to lace running shoes -> weak
marathon training plan -> missing (only one competitor)
running shoe size chart -> strongThe rule of requiring at least two competitors for a "missing" label is a design choice. It reduces noise, because a keyword that only one competitor ranks for may be a one-off. Later chapters adjust this threshold and add volume and difficulty.
Common errors at this stage
- Comparing against the wrong rivals. If a competitor serves a different audience, their gap keywords will not fit you. Choose by SERP overlap, as Chapter 2 explains.
- Mixing countries. Comparing a US database for one domain against a UK database for another produces meaningless differences. Always use the same country for every domain.
- Ignoring branded keywords. Competitor brand names appear as keywords they rank for. They show up as gaps but are not opportunities.
- Treating "missing" as "never ranked". A tool may only record positions in the top 100. You might rank at position 140 and still appear as missing.
- Acting on the first report. The first run is exploratory. Expect to adjust settings and rerun it.
Summary of the model
A keyword gap compares your rankings with competitors' rankings, keyword by keyword. Missing keywords usually need new pages. Weak keywords usually need better existing pages. Strong keywords need protection. The report is raw material, and the value comes from filtering it, checking intent, and ranking what remains.
Exercise
A report shows the keyword "email subject line examples". Your site does not rank. Competitor A ranks at position 3, Competitor B at position 8, and Competitor C does not rank. Another keyword, "email marketing tools", shows you at position 22 with Competitor A at 2 and Competitor B at 5. Classify both keywords using the model from this chapter, and say what kind of work each one needs.
Show answer
"email subject line examples" is missing: you have no ranking, and two of three competitors do. It likely needs a new page, after you check intent and relevance. "email marketing tools" is weak: you rank, but below both competitors who rank. It likely needs an improvement to your existing page, such as better content, a closer match to intent, or stronger internal links. Creating a second page for it could cause your own pages to compete with each other.
Exercise
Why does a report that compares your US rankings with a competitor's UK rankings give misleading results, and what setting should you check first?
Show answer
Search volume, rankings, and competing pages differ by country. A keyword may rank at position 3 in the UK and not at all in the US, so the difference reflects the market and not a real gap in your content. Check that the same country (database) is selected for every domain in the report before reading any results.
Exercise
Why might you require at least two competitors to rank before labeling a keyword as missing?
Show answer
A keyword that only one competitor ranks for may be a one-off, a branded term, or something outside your topic. Requiring two or more competitors is evidence of a pattern and reduces noise. The threshold is a choice, though, and you can lower it if you have few competitors or a niche topic.