Creative agency glossarySEO and Analytics

TF-IDF

TF-IDF, or term frequency inverse document frequency, is a statistical measure of how important a word is to one document relative to a whole collection, used in SEO to judge whether content covers a topic the way the best-ranking pages do.

What is TF-IDF?

TF-IDF is a formula from information retrieval that scores each word in a document by two things: how often it appears in that document (term frequency) and how rare it is across the collection the document belongs to (inverse document frequency). A word that appears often in one page but rarely elsewhere scores high; it is probably what the page is about. A word that appears everywhere, such as "the" or "and", scores near zero no matter how often it is used.

Search engines used the idea heavily in their early years, and it remains part of how text is represented in many systems. In SEO, TF-IDF tools take the top-ranking pages for a query, compute the scores for every term across them, and show which words and phrases those pages use that yours does not.

Why it matters

Why TF-IDF matters

It replaced keyword density with something less crude. Keyword density asked how many times a word appeared and encouraged stuffing. TF-IDF asks which words distinguish a page about this subject from pages about other subjects, which pushes writers toward the vocabulary a thorough treatment would naturally contain. A page about color grading that never mentions LUTs, scopes or skin tones is probably shallow, and a TF-IDF comparison against the ranking pages would show it.

The limits matter too. Modern search engines read meaning, not word counts, and a page can rank well while scoring badly on TF-IDF if it genuinely answers the question. The metric is a sanity check on coverage, not a target to optimize.

In practice

How TF-IDF works in practice

  1. 01

    A content tool pulls the top ten or twenty results for a target query, strips them to text and computes TF-IDF for every term and phrase. It then compares a draft against that set and lists terms that competing pages use more heavily, with a suggested range. The writer reads the list as a map of the subject: subtopics the piece has not covered, terminology it uses inconsistently, questions the ranking pages all answer.

  2. 02

    The useful response is editorial, not mechanical. A missing term usually means a missing idea, so the fix is a paragraph that covers it properly, not a sentence that drops the word in. Terms that are irrelevant to the page's angle are ignored. The draft is then checked once more, mostly to make sure nothing important was left out, and the tool is closed before it starts dictating the prose.

Watch out

What people get wrong about TF-IDF

Treating the suggested counts as targets. Hitting every term in the recommended range produces text that reads like a checklist, and search engines are good at spotting it. The other mistake is thinking TF-IDF is how Google ranks pages now. It is not; it is a decades-old statistic that still happens to be a decent proxy for whether a page covers its subject. Use it to find gaps, then write for people.

Questions

People also ask

Does Google use TF-IDF for ranking?

Not as a ranking factor in any simple sense. TF-IDF is a classic text statistic that modern search systems have moved well beyond, using models that understand meaning. In SEO it survives as a way to compare content coverage, not as a description of the algorithm.

How is TF-IDF different from keyword density?

Keyword density measures how often one word appears on a page. TF-IDF weighs that frequency against how common the word is across many documents, so it rewards distinctive, subject-specific vocabulary rather than repetition of a single term.

Should I optimize content for TF-IDF?

Use it as a check, not a goal. Run the comparison to find subtopics and terms the best pages cover that yours does not, then write those sections properly. Chasing exact term counts makes content worse, not better.

Next to it in the glossary

  1. 200 (OK) Response CodeA 200 OK response code is the server's confirmation that a request succeeded and the page was delivered as asked.
  2. 301 RedirectA 301 redirect is a permanent instruction that sends browsers and search engines from an old URL to a new one, carrying the old page's ranking signals with it.
  3. 302 RedirectA 302 redirect is a temporary instruction that sends visitors from one URL to another while telling search engines the original address will return.
  4. 304 Not ModifiedA 304 Not Modified response tells a browser or a crawler that the page has not changed since it was last fetched, so the cached copy can be used instead.
  5. 307 Temporary RedirectA 307 Temporary Redirect sends a visitor to a different URL for now, while guaranteeing that the request is repeated exactly as it was made.
  6. 403 ForbiddenA 403 Forbidden error means the server understood the request but refuses to serve the page, usually because the visitor does not have permission to see it.

Every SEO and Analytics term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage