Calculate type-token ratio from pasted text or word counts, showing unique words, total words, and percentage word diversity in writing.

Raw TTR depends on sample length. Compare similarly sized samples using the same counting rules; it is not a writing-quality score.

Type-Token Ratio Formula

The following two example problems outline the steps and information needed to calculate the Type-Token Ratio.

TTR = TYP / TOK

Variables:

  • TTR is the Type-Token Ratio
  • TYP is the total number of types 
  • TOK is the total number of tokens 

Divide distinct word types by total token occurrences in the same nonempty sample. Counts must be positive integers with types no greater than tokens. The ratio is on a 0โ€“1 scale; multiply by 100 for percent. Compare similarly sized samples using the same counting rules because raw TTR depends on sample length.

How to Calculate Type-Token Ratio?

The following steps outline how to calculate the Type-Token Ratio.


  1. First, determine the total number of types. 
  2. Next, determine the total number of tokens. 
  3. Use TTR = TYP / TOK for the ratio, or TTR (%) = TYP / TOK * 100 for percent.
  4. Finally, calculate the Type-Token Ratio.
  5. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

total number of types = 50

total number of tokens = 75

TTR = 50 / 75 = 0.6667 (approximately), or 66.67%.