Other
Monkeytype source code: frontend/src/ts/utils/numbers.ts (calculateWpm)
GitHub (monkeytypegame/monkeytype), main branch, n.d.
Read the originalRead on October 17, 2026
- What it is
- The file in the Monkeytype source code that defines the function used to turn a character count and a duration into words per minute. It is the formula behind the speed figures the test shows.
- How much weight it carries
- The project's own code, so it shows exactly how the site calculates speed on the date read. Code can change in later versions, so check the current file if you need the rule for a later date.
Facts taken from this source
- Monkeytype computes speed by dividing the characters typed by five and by the test length in minutes, so one word counts as five characters.
“return charCount / 5 / (durationSeconds / 60);” (calculateWpm function)