Lexical Diversity Analyzer

Type-token ratio—
Unique words—
Total words—

How Lexical Diversity Analyzer is calculated: Type-token ratio = unique words ÷ total words. A ratio near 1 means almost every word is different; a ratio near 0 means the same words repeat. Compare only texts of similar length.

What is the Lexical Diversity for?

A lexical diversity calculator is a free online tool that measures the vocabulary range of pasted text with the type-token ratio, the share of words that are different It counts the total words and the unique words, divides one by the other, and lists the most frequent words so you can see what is repeating. It gives the answer instantly as you type, with the main result shown first and the supporting figures underneath, so you can check the headline number and the working behind it in one glance.

It is used by teachers, researchers, and writers checking whether a text repeats itself or ranges widely. A word frequency counter shows every repeated word in the same text, which is the detail behind the ratio.

To use it, enter the text you want to check. The tool runs entirely in your browser: nothing you type is uploaded, stored, or shared, and there is no sign-up. You can change any value and the results update at once, which makes it easy to test what happens when one input moves.

How to work out Lexical Diversity by hand

Lexical diversity is the type-token ratio: the number of different words (types) divided by the total number of words (tokens). The method the tool uses is: Type-token ratio = unique words ÷ total words. A ratio near 1 means almost every word is different; a ratio near 0 means the same words repeat. Compare only texts of similar length.. Every part of that method has one meaning and one unit, and keeping the units straight is most of the work in getting a right answer.

By hand, the steps are: split the text into words, count the total, count how many are different ignoring case, and divide the unique count by the total. The tool does the same steps in the same order, so a hand check on one example should land on the same number the page shows, allowing for the rounding in the display.

The ratio runs from 0 to 1, and it is usually shown to two decimal places. A ratio of 0.75 means three out of four words are different; a ratio of 0.40 means the same words repeat a lot. The ratio falls as a text gets longer, so compare only texts of similar length. The tool trusts the numbers you enter: it cannot tell whether a measurement was read correctly, so a wrong input gives a wrong-looking answer with no warning. Always check the units before trusting a result.

One more check: the method above is the one the page uses, so a book or chart that writes it differently is usually just rearranging the same relation or using different words. Match the quantities by their meaning, not by their shape, and the numbers will agree. If your source gives the answer in different units, convert at the end rather than in the middle, so a conversion slip cannot hide inside the working. When the answer sits close to a boundary, such as a band edge, a grade cut, or a target you must not cross, treat the displayed rounding as part of the check: a value shown as 15.0 might be 14.96 or 15.04 underneath, and the page rounds for display, not for judgement. If that edge matters, run the numbers once more with the full precision the inputs allow and read the exact result, not the rounded one. The same care applies when you change one input and the answer barely moves: a small change in an input can still matter if the result feeds a next step, so check the unrounded figure before you carry it forward.

The ratio falls as the text gets longer

The trap in the type-token ratio is length. A 20-word text can easily score 0.90, because there are not enough words for repetition to show. A 2,000-word text on the same subject scores much lower, because the subject's key words have to repeat. Comparing a short text with a long one proves nothing — compare texts of similar length, or compare the same text before and after an edit.

Case does not count as a difference. 'The' at the start of a sentence and 'the' in the middle are the same word, and the tool counts them once. Punctuation is stripped too, so 'plants' and 'plants,' are the same word. Without those rules, the ratio would flatter every text that starts sentences with capitals.

Function words set the floor. Words like the, and, of, and to appear in every English text, so even the most varied writing cannot score near 1.0 on a long passage. A ratio of 0.70 on a 500-word text is already varied; a ratio of 0.50 on the same length is repetitive. The number means something only against the length.

A worked example

Take this example: the four-sentence paragraph about photosynthesis in the box. Eighty-one words is short enough that the ratio stays high, which is typical of a short sample. Put those numbers into the tool and it returns Type-token ratio 0.704 ; Unique words 57 unique words; Total words 81 total words.

Working it through by hand: the paragraph has 81 words, of which 57 are different, so the type-token ratio is 57 ÷ 81 = 0.704. The hand result matches the tool exactly, which is the point of the check: if your own working gives a different number, one of the inputs was typed in the wrong unit or the wrong box.

Try a second set to see how the answer moves: a short, simple text about a cat. the short text has 16 words with 13 different, so its ratio is 0.812 Changing one input at a time and watching the result is the fastest way to build a feel for the method, and it is how most people spot a typing error before it matters.

Who uses a Lexical Diversity and why

Teachers are the first group. A student essay that repeats the same ten words has a low ratio, and the number gives the teacher an objective way to talk about vocabulary range instead of just saying 'use more varied words'.

Researchers are the second group. Language development, second-language writing, and dementia screening all use the type-token ratio as a measure, because vocabulary range is one of the first things to narrow. A keyword density analyzer is a natural companion here, since the two jobs often come up in the same session.

Writers are the third group. A draft that leans on the same adjectives reads as flat, and the most-frequent list shows exactly which words are doing the leaning. None of these uses needs an account or an install: the page opens, the values go in, and the answer is there.

The common thread across all three groups is that a number beats a guess. A rough guess in the kitchen wastes ingredients, and a rough guess in a draft wastes a revision. Checking the number first costs seconds and saves the redo.

Lexical Diversity Analyzer vs word counter

A word counter answers a different question: it counts the words and characters in the same text. The two tools look similar because they share inputs, but they solve for different unknowns, and picking the wrong one is the most common source of confusion between them.

Use this Lexical Diversity when the quantity you need is the one named in the title above. Use the word counter when your unknown is the one it is named for instead. If a task gives you the answer this page produces and asks for something else, that something else is usually the job of the companion tool.

In practice the two are used back to back: work out the first quantity here, then carry it into the second tool as an input. Keeping the chain in that order, and writing each intermediate answer down, stops small rounding slips from growing into a wrong final answer.

Common mistakes with a Lexical Diversity

The first mistake is comparing texts of different lengths. The ratio falls as a text gets longer, so a 50-word text at 0.85 and a 500-word text at 0.60 can have the same vocabulary. Compare similar lengths, or the comparison is meaningless.

The second is chasing a ratio near 1. A ratio of 1.0 means no word repeats at all, which is not good writing — it is a text that never uses 'the' twice. Varied writing still repeats its function words.

The third is treating the ratio as a quality score. A repetitive text can be clear and a varied text can be confusing. The ratio measures range, not quality, and a high ratio on a muddled draft is not a pass mark. A quick habit that catches all three: work one example by hand, compare it with the tool, and only then trust the page for the rest of the job.

How to use this Lexical Diversity

Step one, enter the text you want to check. Step two, check the units beside each box match the units in your task. Step three, read the main result at the top of the results box, then the supporting figures below it.

For the most accurate results, use the most precise inputs you have, and keep the same unit system all the way through: mixing units is the single biggest cause of answers that are out by a factor of ten. Compare the same text before and after an edit: if the ratio rises and the text still reads clearly, the edit added real variety.

The tool is free, works on a phone or a computer, and needs no sign-up. Everything runs in your browser, so your numbers never leave your device, and closing the page leaves nothing behind.

If the answer looks wrong, change one input at a time and watch which one moves the result. A result that jumps by a factor of ten usually means a unit slipped, while a result that barely moves when an input changes usually means that input matters less than expected. Both patterns are worth knowing.

Frequently Asked Questions

The formula is Type-token ratio = unique words ÷ total words. A ratio near 1 means almost every word is different; a ratio near 0 means the same words repeat. Compare only texts of similar length.. Lexical diversity is the type-token ratio: the number of different words (types) divided by the total number of words (tokens). Put the values in with matching units and the tool applies the formula directly, with no hidden adjustments.

It depends on length. On a 100-word text, 0.70–0.80 is varied; on a 500-word text, 0.55–0.65 is varied. Below 0.50 on a short text means heavy repetition. Never compare ratios across very different lengths.

The photosynthesis paragraph scores Type-token ratio 0.704 ; Unique words 57 unique words; Total words 81 total words. That is high, as expected for a short 81-word sample — short texts have little room for repetition.

Because the key words of a subject have to repeat. A 20-word text can avoid repeating almost anything, but a 2,000-word essay on photosynthesis must say 'photosynthesis' and 'plants' many times. The ratio measures range at a given length, not range in the abstract.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.