Skip to main content

Aliyan Shahzad

Free 30-minute Google Ads consultation: an honest look at what’s working and what to fix first Book a time

22 November 2026 · 6 min read

N-Gram Analysis for Google Ads Search Terms: Find Waste and Winners Fast

Add as preferred source
Aliyan Shahzad Written by: Aliyan Shahzad
Summarize with GPT

Quick answer

N gram analysis breaks search terms into single words (1-grams), two-word phrases (2-grams) and three-word phrases (3-grams), then totals cost, clicks and conversions for each. Words that spend heavily without converting become negative keywords; words that convert well become new keyword or ad group themes. It is the fastest way to review thousands of search terms, especially with broad match or Performance Max.

A busy Google Ads account can match thousands of different search terms a month. Reading them line by line is slow, and the most expensive problems hide in plain sight: a single word such as “free”, “jobs” or “DIY” spread across hundreds of searches, each spending a little. N gram analysis solves this by looking at the words inside search terms rather than the full searches. This guide explains what n-grams are, how to run the analysis in a spreadsheet, how to read the results and how to turn them into negatives and new keywords.

N-Gram Analysis for Google Ads Search Terms: Find Waste and Winners Fast: illustrated guide cover from Aliyan Shahzad, Google Ads consultant

What is an n-gram?

An n-gram is a sequence of n words taken from a longer phrase. From the search “emergency boiler repair leeds”:

  • 1-grams: emergency, boiler, repair, leeds
  • 2-grams: emergency boiler, boiler repair, repair leeds
  • 3-grams: emergency boiler repair, boiler repair leeds

When you split every search term this way and add up the metrics for each n-gram across all searches, patterns appear that no single search reveals.

Step by step in a spreadsheet

  1. Export search terms for 30 to 90 days, with impressions, clicks, cost, conversions and conversion value.
  2. Split each search term into words. In Google Sheets or Excel, a formula or a small script can create one row per word, carrying the search term’s metrics with it.
  3. Create 2-grams and 3-grams the same way, by joining neighbouring words.
  4. Total the metrics for each n-gram with a pivot table: sum of cost, clicks and conversions.
  5. Add calculated columns: cost per conversion, conversion rate and, for ecommerce, ROAS.
  6. Sort by cost and review the top n-grams first, since that is where the money is.

A Google Ads script can automate this for larger accounts, writing the n-gram tables to a sheet every week.

How to read n gram analysis results

Pattern What it suggests Action
High cost, zero or very few conversions An irrelevant theme Add as a negative (check it is truly irrelevant first)
High cost, conversions but expensive Relevant but weak intent or poor landing page Separate ad group, tailored ad and page, or lower target
Strong conversion rate, low spend An under-used winner Add as keywords, build an ad group, raise budget
Location names Areas you may or may not serve Negative areas you do not serve; geo-specific ads for those you do
Competitor or brand names Traffic from other brands Decide deliberately: separate campaign or negative

Avoiding false negatives

N-gram tables can mislead if read carelessly. A word may look bad in total because it appears in many low-intent searches, yet also appear in some excellent ones. Before adding a negative, filter the original search terms for that word and read a sample. If “cheap” appears in “cheap boiler repair” (which converts) and “cheap boiler parts” (which does not), the problem is “parts”, not “cheap”. Use 2-grams and 3-grams to find the precise phrase to block, and prefer negative phrase match so you only block that combination. Also consider conversion lag: searches from the last few days may not have converted yet, so use a period that ends at least a week ago for lead generation.

Finding winners, not just waste

Most people use n-grams to cut waste, but the same table shows where to grow. Look for n-grams with conversion rates well above the account average and relatively low spend. These often point to specific services, product types, locations or modifiers such as “commercial”, “same day” or “near me” that deserve their own ad groups, tailored headlines and landing pages. Giving a strong theme its own home usually raises click-through rate and conversion rate further.

N-grams for ecommerce

For online stores, add conversion value and calculate ROAS for each n-gram. Colours, sizes, materials and product types often show very different returns. Words like “used”, “repair”, “manual” or a brand you do not stock are common waste. Words describing your bestselling attributes are candidates for better product titles in your feed, since Shopping and Performance Max match searches using product data rather than keywords. See my guide to product feed optimisation.

A worked example

A carpet cleaning company exported 90 days of search terms, about 4,000 rows. The 1-gram table showed “hire”, “machine” and “rent” together accounting for a significant share of spend with almost no conversions, from people looking to rent cleaning machines. The 2-gram table showed “end tenancy” converting at nearly double the account rate. The company added “hire”, “rent” and “machine” as negative phrase keywords, built a dedicated end-of-tenancy ad group with its own landing page aimed at landlords and letting agents, and repeated the analysis monthly. Wasted spend fell and end-of-tenancy jobs grew into one of its best services.

A simple spreadsheet method for n gram analysis

If you are not comfortable with scripts, a manual approach works well for accounts with a few thousand search terms. Paste the exported search terms into one sheet. In a second sheet, use a split function to break each search term into separate columns of words, then use a formula to stack those columns into one long list, keeping each word’s cost, clicks and conversions alongside it.

Build a pivot table on that list, with the word as rows and the sum of cost, clicks and conversions as values. Sort by cost descending. For 2-grams, join each word with the next one before stacking. It takes about half an hour the first time and a few minutes once the template exists.

What to look at first

Start with the twenty most expensive 1-grams and ask of each: is this word relevant to what I sell? Then look at the twenty most expensive 2-grams with no conversions. Next, scan for location names and brand names. Finally, sort by conversions and look for words with strong conversion rates and modest spend. In most accounts, this short review finds the bulk of the waste and at least one theme worth expanding.

N-grams and Performance Max

Performance Max shows search terms insights grouped into categories, along with some search term data. The detail is more limited than in Search campaigns, but the same principle applies: look for themes that consume spend without conversions, and use brand exclusions and account-level negative keywords where appropriate. For Search campaigns running alongside Performance Max, n-gram results also show which themes deserve dedicated Search coverage for more control.

Common mistakes

  • Adding negatives for every non-converting word without checking context.
  • Using too short a date range, so results are mostly noise.
  • Ignoring conversion lag for recent searches.
  • Looking only for waste and missing winning themes.
  • Forgetting to apply negatives at the right level, so they block good traffic elsewhere.

Making n gram analysis a routine

N-gram analysis is most valuable as a habit. Set up a sheet or script once, refresh it monthly, and keep a log of negatives added and themes built. Over time the list of new waste shrinks, and each review takes minutes. For accounts using broad match or AI Max, where the range of matched searches keeps widening, this routine is one of the most effective controls you have.

Whatever tool you use, the goal is the same: move from reading individual searches to seeing the themes behind them, then act on those themes with negatives, new ad groups and better landing pages. That shift turns an overwhelming report into a short, practical to-do list each month.

Start this month, and keep the template for every review that follows.

Need help?

I run n-gram reviews in every Google Ads audit. See also my guides to the search terms report and negative keyword match types. Google’s help centre explains the search terms report.

N-gram analysis: questions answered

What is n-gram analysis in Google Ads?

Splitting search terms into single words and short phrases, then totalling cost and conversions for each to spot patterns.

What is a 1-gram, 2-gram and 3-gram?

Single words, two-word phrases and three-word phrases taken from search terms.

Why use n-grams instead of reading search terms?

They reveal costly words spread across many searches that are invisible line by line.

How much data do I need?

Usually 30 to 90 days of search terms, longer for small accounts.

Can I do n-gram analysis in Google Sheets?

Yes, with formulas or a script to split words and a pivot table to total metrics.

How do I use n-gram results?

Add irrelevant high-spend words as negatives and build ad groups around converting themes.

Does n-gram analysis work for Performance Max?

Yes, using the search terms insights available for Performance Max, though data is more limited.

Should I negative every non-converting word?

No. Check volume, context and whether the word also appears in good searches.

Which n-gram length is most useful?

1-grams find broad waste; 2- and 3-grams give context and safer negatives.

How often should I run it?

Monthly for most accounts, weekly for large or broad match heavy accounts.

Can a script automate n-grams?

Yes. Google Ads scripts can calculate n-grams and write results to a sheet.

Can you run an n-gram analysis for me?

Yes. It is part of my audits and ongoing management.

Preferred source on Google

Make Aliyan Shahzad a preferred source on Google

Pick this site as a preferred source and you’ll see more of my Google Ads guides in Top Stories and Google Search. It takes one click.

Add as preferred source