Skip to main content
Calcimator

Text Complexity Calculator

Analyze vocabulary diversity, type-token ratio, and overall text complexity using linguistic metrics like Guiraud's index.

About this calculator

Raw word and sentence counts from a text sample feed four established linguistic metrics here, each capturing a different dimension of complexity. Type-Token Ratio is the percentage of your total words that are unique — a text that repeats the same words often has a lower ratio than one with more varied vocabulary. This is sometimes called "lexical density" in casual usage, but the formally published lexical-density metric (Ure, 1971) is actually content words divided by total words, a different calculation that needs a count of function words vs. content words this calculator doesn't collect — so the type-token ratio here is a related but distinct proxy, not that formal metric. Vocabulary Diversity uses Guiraud's index (unique words divided by the square root of total words), a classic type-token measure that corrects for the fact that longer texts naturally accumulate more repeated words even with equally rich vocabulary — dividing by the square root of length, rather than length itself, keeps the index comparable across texts of different sizes better than a raw type-token ratio does.

Average Sentence Length is simply total words divided by total sentences, a standard proxy for syntactic complexity since longer sentences tend to carry more subordinate clauses and embedded structure. Complexity Score combines all of these with average syllables per word into a single 0-100 rating: 30 points each for sentence length and syllable count, and 20 points each for the type-token ratio and Guiraud's index, weighted toward sentence length and syllable count since those two correlate most closely with how difficult a text is to parse and read. To use this calculator, count (or have a word processor count) the total words, unique words, and sentences in your sample, then estimate or measure the average syllables per word — English prose averages roughly 1.5 syllables per word.

Inputs

Results

Type-Token Ratio (%)

40%

Vocabulary Diversity (Guiraud)8.94
Average Sentence Length20 words
Complexity Score44 / 100
How to Use This Calculator
  1. Count or estimate the Total Words, Unique Words, and Total Sentences in your text sample.
  2. Enter the Avg Syllables per Word — most word processors or readability tools report this, or use ~1.5 as a general English estimate.
  3. Review the Type-Token Ratio (%) and Vocabulary Diversity (Guiraud) results.
  4. Check Average Sentence Length and the overall Complexity Score.
  5. Compare complexity scores across multiple documents of similar length to gauge relative reading difficulty within a corpus.

How the result changes with Total Words

Total WordsType-Token Ratio (%)
25080%
37553.33%
75026.67%
1,25016%

What each input means

Total Words
Total number of word tokens in the text.
Unique Words
Number of distinct word types (unique forms).
Total Sentences
Total number of sentences in the text.
Avg Syllables per Word
Average number of syllables per word. English average is ~1.5.

What each result means

Type-Token Ratio (%)
Percentage of unique word types out of total word tokens. Higher values indicate more diverse vocabulary. Sometimes loosely called "lexical density," though the formally published lexical-density metric (Ure, 1971) is content words divided by total words — a different calculation this tool doesn't compute.
Vocabulary Diversity (Guiraud)
Guiraud's index: unique words divided by square root of total words.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Total Words = 500, Unique Words = 200, Total Sentences = 25, Avg Syllables per Word = 1.5 = 4 input(s) provided
  2. Calculate Type-Token Ratio
    Type-Token Ratio
    40 = 40
  3. Calculate Vocabulary Diversity
    Vocabulary Diversity
    8.94 = 8.94
  4. Calculate Average Sentence Length
    Average Sentence Length
    20 = 20

Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Where do I get the Total Words and Unique Words counts?

Most word processors report total word count directly, and many also offer a readability or word-frequency tool that reports unique word (vocabulary) counts — or you can paste your text into a free online word-frequency counter to get both figures. Total Words should be every word token in the sample; Unique Words should be the count of distinct word forms, ignoring repeats.

Why does Vocabulary Diversity go down as Total Words goes up, even with the same vocabulary?

Guiraud's index divides unique words by the square root of total words specifically to correct for length, but it isn't a perfect correction — longer samples still tend to show somewhat lower index values than short ones even when the underlying writing style and vocabulary richness haven't changed. This is a known property of type-token metrics, which is why comparisons are most meaningful between texts of similar length.

What counts as a good type-token ratio for readable writing?

There's no single universal target since it depends on genre — technical or academic writing often runs higher in this ratio than conversational prose because it repeats function words less relative to varied technical vocabulary. As a general guide, values much above 60-70% often indicate dense, jargon-heavy text that may be harder for a general audience to read quickly. Note that this ratio is sometimes loosely called "lexical density," but it isn't the formally published lexical-density metric (content words divided by total words), which this calculator doesn't compute.

How should I estimate Avg Syllables per Word if I don't want to count manually?

Many readability tools and word processors report an average syllable count as part of standard readability statistics (like Flesch-Kincaid), which you can plug directly into this input. If you don't have access to one, English prose averages roughly 1.4 to 1.6 syllables per word, so that range is a reasonable starting estimate for general writing.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Education & Academics.