Skip to main content
Calctrove Calctrove

Keyword Density Calculator

Keyword density calculator

Check keyword frequency quickly, then review SERP-safe guidance and n-gram patterns.

InputsKeyword density2-gram • Stop words offLive
Analysis detailsAdvanced settings, import, exports
Import from file (optional)

File input

Choose a file

Click, drop, or paste from clipboard.

Live density

Input source: manual

Keyword density

20%

3 matches in 15 words

Live

Risk

warning

Total words

15

Keyword matches

3

N-gram size

2-gram

Stop words

Excluded

SERP-safe guidance

Density is above common editorial comfort zones. Rephrase repeated terms and add semantic variants.

Keyword stuffing risk: high. Keep phrasing natural and avoid repeating the exact term in every sentence or heading.

Term breakdownFormula, top terms, n-grams, recent results

LaTeX formula

\text{Density} = \frac{\text{Keyword Occurrences}}{\text{Total Words}}\times 100\%

Top terms

  • keywordx3
  • helpsx1
  • improvex1
  • naturallyx1
  • phrasesx1
  • relevantx1
  • researchx1
  • searchx1

2-gram phrases

  • helps improvex1
  • improve searchx1
  • keyword phrasesx1
  • keyword researchx1
  • keyword strategyx1
  • phrases naturallyx1
Formula
Keyword density (%) = (Keyword matches / Total words) x 100

Symbol legend

Symbol Meaning Unit Copy
D_{\%} Keyword density percentage %
N_{\text{matches}} Number of keyword or phrase matches count
N_{\text{words}} Total word count in text words
  • Tokenize the text and count total words.
  • Count how many times the keyword (or phrase token sequence) appears.
  • Divide matches by total words and multiply by 100 for percent.
Example

Worked example: 2 keyword matches in 100 words

  1. 1 Total words = 100
  2. 2 Keyword matches = 2
  3. 3 Density = (2 / 100) x 100 = 2

Keyword density is 2%.

How
  1. Paste your text into the analyzer box.
  2. Enter the keyword or phrase you want to measure.
  3. Choose n-gram focus (1-gram, 2-gram, or 3-gram) and whether stop words are included in top-term analysis.
  4. Review density, SERP-safe guidance, and stuffing-risk warning, then export CSV if needed.
Avoid
  • Using density as the only SEO signal while ignoring intent and readability.
  • Comparing densities across pages with very different text lengths.
  • Ignoring stuffing warnings when density is high and repeating exact-match terms unnaturally.
  • Forgetting to check phrase-level targeting and n-gram context for multi-word queries.
FAQ
What keyword density is considered good?

There is no universal target, but many editorial teams treat 1-2% as a low-risk range. Prioritize readability and intent coverage over strict numeric targets.

Does this tool support multi-word phrases?

Yes. Phrase matches are counted by token sequence order, and you can inspect top 2-gram or 3-gram phrases for context.

Can I export keyword findings?

Yes. Download CSV exports summary metrics, top terms, and n-gram frequency rows.

Is this enough to optimize SEO?

No. Use it as a diagnostic metric alongside search intent, structure, and content quality.

Switch
Switch12