Free Guide

The Complete N-Gram Analysis Guide for Amazon PPC

Your search term reports hide an entire layer of insight that becomes visible only when you break terms into their component words. One negative phrase match, identified through n-gram analysis, can eliminate more wasted spend than a month of manual review. This guide covers the full methodology — from data extraction to applied negatives.

By Mohsin Raza Updated July 2026 Reading time 22 min 8 Parts + Case Studies
Part 1

What Are N-Grams?

Every Amazon advertiser looks at search term reports — individual phrases like "silicone baking mat large" or "steel cookie sheet non stick." They make decisions one term at a time. Negate this one. Keep that one. Adjust this bid.

And most of them miss the forest for the trees.

An n-gram is a contiguous sequence of n words from a text. When applied to your search term data, you decompose every term into word-level components, then aggregate performance across all appearances of each word.

1

Unigram

Single word: "silicone", "mat", "large". Broadest view, biggest wins, highest false-positive risk.

2

Bigram

Word pair: "silicone mat", "baking sheet". More context, fewer false positives, still powerful.

3

Trigram

Word triplet: "silicone baking mat". Very targeted, useful for confirmation, rarely primary negatives.

How a Search Term Decomposes

Full Decomposition Example
"stainless steel water bottle insulated"
Unigrams
stainless steel water bottle insulated
Bigrams
stainless steel steel water water bottle bottle insulated
Trigrams
stainless steel water steel water bottle water bottle insulated

The word "steel" might appear in 200 different search terms. Individually, each spent $1-5 with zero conversions. Collectively, $612 in pure waste. One negative phrase match eliminates all of it — current and future variations.


Part 2

Why N-Gram Analysis Works

The "Death by a Thousand Cuts" Problem

Most wasted spend doesn't come from a few obvious bad search terms. It comes from hundreds of low-spend, individually-invisible terms sharing a common theme.

You sell silicone baking mats. Your report has 3,000 rows. You sort by spend. Top 50 terms look mostly fine. You negate a few obvious ones and feel good. But buried in rows 51-3,000 are 187 search terms containing the word "steel." Each spent $1-5. None converted. Total: $612 in waste you'd never find by scrolling.

Standard Review

Search-Term-by-Search-Term

  • Looks at complete terms one by one
  • Sorts by spend, misses low-spend terms entirely
  • Negates individual terms — new variations keep appearing
  • Time-consuming, incomplete, whack-a-mole
N-Gram Analysis

Word-Level Aggregation

  • Breaks terms into words, aggregates across ALL appearances
  • Surfaces hidden patterns regardless of individual spend
  • One negative phrase blocks ALL current and future variations
  • Fast, systematic, permanent cleanup

Negative Exact vs. Negative Phrase: The Leverage

Negative Exact
"steel baking mat"

Blocks 1 search term

vs.
Negative Phrase
"steel"

Blocks ALL searches containing "steel"

That's the difference between playing defense and playing offense. N-gram analysis finds the words that deserve negative phrase match treatment.

⚠ What N-Grams Don't Do

Not for bid optimization: high ACOS doesn't mean irrelevant — it means adjust the bid. Not for keyword discovery: n-grams reveal what to block, not what to target. Not for low-volume accounts: you need enough data for patterns to emerge (~$500+/month).

The Relevancy Rule
The only criteria for negating is irrelevancy. High ACOS = adjust bid. Irrelevant = negate.
These are fundamentally different problems with fundamentally different solutions.

Part 3

The Step-by-Step Process

1

Export Search Term Report

60-90 days of data from Amazon Ads console. Need: search term, impressions, clicks, spend, orders, sales, campaign name.

2

Clean & Prepare Data

Remove brand terms, product targeting ASINs, and duplicates. Aggregate same search terms across campaigns. Optionally filter 0-click rows.

3

Break into N-Grams

Split every search term into unigrams, bigrams, and trigrams. Each n-gram inherits the full metrics of its parent search term.

4

Aggregate Metrics per N-Gram

Sum spend, clicks, impressions, orders for each word/phrase across ALL search terms it appeared in. This is the core insight.

5

Analyze & Identify Patterns

Sort by spend descending. High spend + zero/low orders + irrelevant = candidate. Always drill down before deciding.

6

Create Negative Phrase Matches

Apply via bulk upload or negative keyword lists. One phrase blocks all variations — current and future.

7

Validate & Monitor

Check for false positives. Monitor ACOS impact over 2-4 weeks. Re-run quarterly.

◆ Scope Matters

Run at account level for broadest patterns (start here). Category level for product-type-specific waste. Campaign level for product-specific irrelevancy. Start broad, narrow down as needed.


Part 4

Building the Analysis Sheet

The Output Table

N-GramAppearancesSpendOrdersACOSSignal
steel187$6120Negate
stainless143$44112,323%Negate
metal94$2770Negate
large312$1,31342156%Bid down
silicone489$3,10231250%Keep
baking521$2,89128750%Keep

"Steel," "stainless," and "metal" — three words that individually wouldn't flag in a search term report — are collectively responsible for $1,330 in wasted spend with essentially zero returns. Three negative phrase matches eliminate all of it.

Building Methods

Method 1: Excel / Google Sheets (No Code)

Use =SPLIT(A2, " ") to break search terms into words. Create a master word list of unique words. For each word, use SUMPRODUCT to aggregate:

=SUMPRODUCT((ISNUMBER(SEARCH(D2, Sheet1!$A$2:$A$5000))) * Sheet1!$D$2:$D$5000)

This sums the Spend column for every row containing your target word. Copy across for all metrics. Calculate ACOS = Spend ÷ Revenue. Sort by spend descending.

Tip: SEARCH matches partial words ("mat" matches "material"). For precise matching, wrap with spaces: SEARCH(" "&D2&" ", " "&Sheet1!A2&" ")

Method 2: Python Script (Recommended for Scale)

Load CSV → split each search term into words → generate unigrams/bigrams/trigrams → group by n-gram → sum all metrics → calculate ACOS → sort by spend → export. Takes seconds on tens of thousands of rows.

Method 3: Pre-Built PPC Tools

Look for tools that show aggregated metrics per n-gram (not just word clouds), let you filter by type, allow drill-down into source search terms, and support export. The tool doesn't matter — the methodology does.

Which N-Gram Type to Focus On

TypeBest ForRisk LevelExample
UnigramsBroad irrelevant themes (materials, categories)Higher — can over-negate"steel" for silicone seller
BigramsSpecific irrelevant product typesMedium — more context"stainless steel" for silicone
TrigramsConfirming very specific patternsLower — very targeted"stainless steel rack"

Start with unigrams for the broadest view and biggest wins. Use bigrams to confirm patterns when a unigram feels too broad to negate safely.

Want Me to Run N-Gram Analysis on Your Account?

I'll pull 90 days of data, decompose every search term, and deliver the negative keyword list that stops the bleeding.

Get a Free PPC Audit →

Part 5

Interpreting N-Gram Data

The Three-Column Decision Framework

SpendOrdersRelevant?Action
HighZero / Very LowNoNegative Phrase Match — immediate
HighZero / Very LowYesBid down — relevant but overbidding
HighHighYesLeave / optimize — it's working
LowZeroNoNegate if easy — low priority cleanup
LowZeroYesIgnore — not enough data

The critical column is "Relevant?" — and that requires human judgment. You, the person who knows the product, look at each high-spend n-gram and ask: "Is this word fundamentally relevant to what I sell?"

⚑ The Cardinal Sin: Negating on ACOS Alone

High ACOS does not mean irrelevant. A unigram showing 200% ACOS might contain a mix of relevant and irrelevant search terms. If you negate entirely, you kill the relevant traffic too. Always drill down. The question is never "is this profitable?" — it's "is this relevant?"

The Drill-Down: From N-Gram to Search Terms

Before negating any n-gram, look at the actual search terms containing it. This 30-second sanity check prevents costly mistakes.

Drill-Down Example: "glass" — 78 appearances, $234 spend, 2 orders
"glass baking dish" — 12 clicks, $18Wrong material
"glass cookie sheet" — 8 clicks, $11Wrong material
"tempered glass cutting board" — 6 clicks, $10Wrong product
"glass mat for oven" — 9 clicks, $14Wrong material
"silicone mat for glass table" — 4 clicks, $6, 2 ordersRelevant but niche

76 of 78 search terms are irrelevant. 2 are relevant but niche. Verdict: negate "glass" — the 2 relevant terms don't justify $228 in waste.

If 50%+ of search terms containing an n-gram are actually relevant, don't negate the unigram. Use bigrams for a more targeted negative instead.

🔑 The 80/20 Rule of N-Grams

You'll typically find 80% of wasted spend in the top 10-15 irrelevant n-grams. Don't try to clean up every word. Focus on high-spend, clearly-irrelevant patterns first. Marginal returns drop fast after the big wins.


Part 6

Creating Negative Phrase Match Keywords

The Decision Tree

Is the n-gram categorically irrelevant? (ANY search with this word is irrelevant)

→ Apply as Negative Phrase Match. Blocks all current and future search terms containing this word. Example: "steel" for a silicone-only seller.

Is it irrelevant only in combination? (The word alone is fine, but paired with X it's bad)

→ Use the bigram as your negative phrase. "Stainless steel" instead of just "steel" — if "steel wool" is relevant to you.

Is it relevant to some products but not others?

→ Apply at campaign or ad group level, not account-wide. "Kids" is irrelevant in adult product campaigns but essential in kids' product campaigns.

Where to Apply

LevelWhen to UseExample
Account (Neg. Keyword List)Universally irrelevant — no product should show for this"wholesale" for a B2C brand
Campaign LevelIrrelevant here, potentially relevant elsewhere"kids" in adult product campaign
Ad Group LevelIrrelevant for this product, relevant for others in same campaign"small" in large-size ad group
⚠ No Such Thing as Negative Broad Match

Amazon does NOT support negative broad match. Your only options are negative exact and negative phrase. Negative phrase blocks any search term that contains your phrase in order — exactly what you want for n-gram-based negation. Don't confuse this with positive broad match behavior.


Part 7

Real-World Case Studies

Case 1: Silicone Kitchen Products — "The Material Mismatch"

A brand selling silicone baking mats, spatulas, and trivets. Auto and broad match campaigns were generating clicks from people searching for metal, glass, steel, and wooden kitchen products.

N-GramSearch TermsSpendOrdersAction
steel187$6120Neg. Phrase
wooden94$3120Neg. Phrase
metal112$2871Neg. Phrase
glass78$2342Neg. Phrase
ceramic43$1280Neg. Phrase
cast iron61$1980Neg. Phrase
Result
$1,771/month in waste eliminated. 6 negative phrase matches. ACOS dropped 2.3 points in the first month.

Six words eliminated nearly $1,800 in monthly waste across hundreds of search terms. No standard analysis would have caught this.

Case 2: Premium Dog Food — "The Species Problem"

Broad match campaigns leaking into cat food, bird food, and other pet categories.

N-GramTermsSpendOrdersAction
cat234$8913Neg. Phrase
bird67$2010Neg. Phrase
rabbit31$940Neg. Phrase
fish89$2671Drill down *
hamster18$540Neg. Phrase
◆ Why You Always Drill Down

"Fish" looked like a clear negate at unigram level. But drill-down revealed relevant terms: "fish flavor dog food," "salmon fish dog food." The bigram solution — negating "fish food" and "fish tank" — blocked irrelevant traffic while preserving converting keywords. N-gram analysis gives you the data. Human judgment makes the call.

Common Irrelevancy Categories

Material Mismatches

You sell silicone, searches include "steel," "metal," "glass," "ceramic," "wooden." Most common pattern, usually biggest win.

Category Drift

You sell baking mats, searches include "yoga mat," "car mat," "door mat." Bigram negatives like "yoga mat" are the fix.

Size / Spec Mismatch

"Commercial," "industrial," "professional," "mini" — when your product is a specific size and searchers want something else.

Gender / Age Mismatch

"Men's" for women's products, "kids" for adult, "baby" when min age is 3+. Common and high-waste.

Intent Mismatch

"How to," "DIY," "recipe," "review" — informational searches that rarely convert. Low individually, adds up fast.

B2B / B2C Mismatch

"Wholesale," "bulk order," "commercial," "supplier" — when you're B2C getting B2B traffic, or vice versa.


Part 8

Cadence, Maintenance & Advanced Tactics

How Often to Run

StageFrequencyWhy
New Account / OnboardingDay 1Biggest wins from initial cleanup. Inherited accounts are full of waste.
First 3 MonthsMonthlyNew campaigns create new patterns. Monthly catches them before they accumulate.
Steady StateQuarterlyRate of new waste slows. Quarterly catches seasonal shifts.
After Major Changes2-4 weeks afterNew launches and keyword campaigns introduce new irrelevant patterns.

Advanced: Bigram Layering

When a unigram is too broad to negate (e.g., "rack" — you sell baking mats but "cooling rack" is relevant), layer bigram negatives instead:

Bigram Layering Example
"rack" too broad to negate — "cooling rack" is relevant
↓ Negate these bigrams instead ↓
dish rack wine rack spice rack shoe rack towel rack

Five bigram negatives block the waste while preserving "cooling rack for baking."

Advanced: N-Gram Discovery (The Positive Side)

The same analysis that finds waste also reveals your strongest converting themes. Look for:

  • High orders, low ACOS: Strongest word themes. Are you bidding exact match on keywords with these words?
  • High impressions, low clicks: Ads showing but not clicked. Check images and titles for these themes.
  • Emerging volume: New n-grams not in last quarter's analysis = trending searches. Get ahead of them.
If "organic" appears in 300 search terms and consistently converts at 15% ACOS, that tells you exactly what shoppers value about your product — and where to double down in your listing copy, A+ content, and keyword targeting.
— Mohsin Raza, Adaptoid E-Commerce
  • Aggregate, don't isolate. Individual search terms lie. Aggregated word-level data tells the truth. One word across 200 search terms reveals what 200 individual reviews cannot.
  • Relevancy is the only criteria for negation. High ACOS means adjust the bid. Irrelevant means negate. These are fundamentally different problems with fundamentally different solutions. Confusing them kills converting traffic.
  • Phrase match is the power tool. One negative phrase match blocks all current AND future search terms containing that word. It's permanent, proactive cleanup — not whack-a-mole.
  • Always drill down before you negate. N-gram data shows you where to look. Human judgment makes the call. 30 seconds of drill-down prevents costly false positives.
  • Start with unigrams, refine with bigrams. Unigrams give you the broadest view and biggest wins. When a unigram is too broad, bigram layering achieves near-unigram coverage without false positives.
  • The first analysis is the most valuable. Day-one n-gram analysis on any account finds patterns that have been wasting money for months or years. Each subsequent analysis finds less, but quarterly keeps things clean.
  • N-grams work both ways. The same analysis that finds waste reveals your strongest converting themes. "Organic" converting at 15% across 300 terms is a signal to double down — in bids, listing copy, and A+ content.