Skip to content
MasterMath

Keyword Density Checker

How many times a word or phrase appears in a text and what density that is, counting whole words only.

Density

—

Density—
Times it appears—
Words in the text—
Diagnosis—
Words in the keyword—

How this was worked out

    The formula

    density = occurrences × words in the keyword ÷ words in the text × 100

    Where it comes from

    The sum is simple and has a catch most tools skip: searching for "VAT" as plain text also finds the "vat" inside "private". Here each match is checked for letters or digits on either side, so only whole words count. Accents are ignored when comparing, because "café" and "cafe" are the same word to a search engine and to almost any reader.

    How to work it out by hand

    1. Count the total words in the text
    2. Count the occurrences of the keyword as a whole word
    3. Multiply the occurrences by the words the keyword spans
    4. Divide by the total and multiply by a hundred

    What is worth knowing

    It is worth saying plainly: **keyword density stopped being a ranking factor many years ago**, and forcing it backfires. Search engines have spent decades detecting stuffing, and a text that repeats a term every other line reads badly, which is what actually costs you. The figure still has a use, but it is the opposite of the one assumed: it is for checking that the term appears **at all**, and above all in the places that count — the title, the first paragraph, a heading — rather than never appearing because the text keeps dodging it with synonyms. If a page about VAT calculators never once says "VAT calculator", that is a real problem.

    Frequently asked questions

    What is the ideal keyword density?

    There is not one. It stopped being a ranking factor years ago, and above 3 or 4 % the text reads badly, which does cost you.

    How is density calculated?

    Occurrences times the words the keyword spans, divided by the total words in the text, times a hundred.

    Does "VAT" inside "private" count?

    Not here. Each match is checked for letters or digits on either side, so only whole words are counted.

    Do accents matter?

    Not for matching: "café" and "cafe" count as the same word, just as a search engine treats them.

    So what is the figure good for?

    The opposite of what people assume: checking the term appears at all, and in the title and first paragraph, rather than never appearing.

    Can I be penalised for repeating too much?

    More than a direct penalty, the text becomes unreadable and people leave. That, search engines do measure.