Calculators

Lexical Density Calculator

Estimate the percentage of unique words in a passage by comparing its unique word count with its total word count.

Loading calculator...

What this Lexical Density Calculator does

The Lexical Density Calculator estimates how much of a passage consists of distinct vocabulary. It compares the number of unique words with the total number of words and expresses the result as a percentage. A passage with 80 unique words among 100 total words has a lexical density of 80% under this counting method.

Writers and editors can use this measure as one small lens on prose. It may help compare sections, notice repeated vocabulary, or describe a draft in an editorial discussion. It does not determine whether writing is clear, persuasive, literary, or suitable for a reader. Those judgments depend on meaning, audience, genre, and context.

This calculator uses two counts you provide. It does not read or process the passage itself, so the result depends on how you count words and decide what qualifies as unique. For a consistent comparison, apply the same counting convention to every sample.

How to use the Lexical Density Calculator

Count the words in the passage, then count how many distinct words appear at least once. Enter the second figure as Unique words and the full count as Total words. The calculator divides the unique count by the total count and multiplies by 100.

  • Total words means every word occurrence in the selected passage.
  • Unique words means each distinct word form counted once, even if it appears repeatedly.
  • Use the same treatment for capitalization, punctuation, contractions, hyphens, and inflected forms throughout the comparison.

For example, if a 120-word scene contains 84 unique words, enter 84 for unique words and 120 for total words. The calculation is (84 ÷ 120) × 100 = 70%, so the displayed lexical density is 70.00%. This result describes those counts and that passage only.

Make sure the unique-word count is at least one and does not exceed the total-word count. The calculator accepts counts from 1 through 100,000 words. If a draft is longer, divide it into sections or work with a suitable subset, while remembering that section size affects comparisons.

How the Lexical Density Calculator formula works

The formula is (unique_words / total_words) * 100. First, the unique-word count is divided by the total-word count. That fraction is multiplied by 100 to express it as a percentage. The result label is Lexical Density.

The formula treats each unique word form as one item. If a passage uses “edit” several times, those repetitions increase the total count but contribute one item to the unique count. If the passage also uses “edited” or “editing,” you must decide whether those forms count separately. A straightforward word-form method counts them as distinct spellings.

Consider a short publishing note with 50 total words and 35 unique words. Its calculation is (35 / 50) * 100 = 70%. If a revised version has 50 words but 40 unique forms, its estimated density is 80%. That increase says the count of distinct forms rose relative to passage length. It does not establish that the revision improved the writing.

Because the total-word count is a denominator, it must be greater than zero. The calculator’s minimum is one word, which avoids division by zero. The inputs are numeric counts, so use whole numbers rather than estimated fractions.

Use cases for the Lexical Density Calculator

In writing and publishing workflows, a count-based estimate can support focused review. An editor might compare two versions of a paragraph to see whether a rewrite uses more distinct vocabulary. An author could check whether repeated terms cluster in a chapter, then review those passages for rhythm or emphasis. A writing instructor may use the arithmetic to introduce the idea of vocabulary variety while discussing how counting conventions influence results.

For a useful comparison, keep the samples similar in length and purpose. A dialogue-heavy scene, a glossary, and a descriptive passage naturally use language differently. Comparing unlike forms can produce a number that is mathematically correct but offers little practical guidance.

You can also pair the estimate with close reading. If the number changes after editing, inspect the actual sentences. Ask whether new terms make an idea more precise, whether repeated words provide needed continuity, or whether a revision has introduced needless variation. The percentage can prompt a question, while the text supplies the evidence for an editorial decision.

Other factors to consider when calculating lexical density

Different tools can count words and unique forms differently. A hyphenated expression might count as one word or two. A contraction might remain one token or be split. Capitalization may or may not be normalized, and punctuation can affect automated tokenization. The calculator cannot settle those choices because it receives only the two numbers.

Stemming and lemmatization also change what “unique” means. A word-form count distinguishes “publish,” “publishes,” and “published.” A normalized count may group them under a shared base form. Neither convention is universally appropriate for every editorial question. State the method when reporting results, especially if readers will compare figures from separate tools or projects.

Passage length matters as well. Short excerpts can shift noticeably when one new word appears, while larger samples often smooth out local variation. Genre, subject, voice, and intended readership also shape vocabulary. Treat the result as a descriptive ratio, not a target to maximize or a standalone quality score.

Frequently asked questions

What does lexical density mean?

Here it means the percentage of word occurrences represented by distinct word forms in a passage, according to the counts supplied. It is a compact description of vocabulary variety under that counting rule.

How do I count unique words?

List each word form that appears and count each form once, regardless of repetition. Decide in advance how you will handle capitalization, punctuation, contractions, hyphens, and different grammatical forms, then apply that rule consistently.

Can lexical density show whether a passage is easy to read?

No. This calculation measures a relationship between two word counts. It does not assess sentence structure, familiarity of terms, organization, or a reader’s background. Readability and clarity require broader review.

Why does the result change when I use another word counter?

Counting tools may split or normalize words differently. They may treat hyphenated terms, contractions, capitalization, or word endings according to different rules. Compare results only when the samples and counting conventions match.

Should writers try to increase lexical density?

The number alone does not show whether a passage needs more variety. Repetition can support emphasis and coherence, while varied terms can improve precision in some contexts. Review the prose for its purpose and readers before making edits based on a count.

Written by

adamsavebooks.com Editorial Team

Editorial team

Independent editorial coverage of books & reading.