Coding Speed Test: How to Measure Your Real Programming WPM
A coding speed test sounds simple: type some code, get a number. In practice the number swings by ten or more WPM depending on how the tool counts whitespace, whether you were warmed up, which snippet you drew, and whether you report your best run or your typical one. This guide covers how code WPM is actually calculated, why your prose score overstates it, and how to run a self-test you can trust enough to track progress against.
Want a baseline first? Pick your language and run a few code drills, then come back and read the numbers with the rest of this page in mind.
What "WPM" means when the text is code
Typing tests don't count words. They count characters and divide by five, because five characters
is the conventional length of a "word" on a typing test. A 60-second test where you type 300
characters is 60 WPM, whether those characters spelled the quick brown fox or
map.get(&key)?.clone().
That convention matters more for code than for prose, because code is full of characters people forget to count:
- Symbols count as one character each.
=>is two characters,::is two,${is two. They take far longer to type than two letters, but they earn the same credit. - Spaces and newlines count. Every space between tokens and every
Enterat a line end is a character in the snippet. - Indentation is where tools disagree. Most code typing tests skip leading indentation after
Enter, the way your editor auto-indents. DevType does this too. Whether the skipped characters are credited to you changes the score on deeply nested code, so only compare results produced by the same tool.
Gross WPM, net WPM, and accuracy
Gross WPM counts every character you typed, right or wrong, divided by five, per minute. Net WPM subtracts uncorrected errors, so a fast sloppy run scores lower than its gross figure. Accuracy is correct characters as a share of characters typed.
For code, net WPM and accuracy are the numbers to watch. Gross WPM rewards a style of typing that doesn't work in an editor: a wrong bracket isn't cosmetic, it's a syntax error you'll spend time finding later. DevType's WPM counts only correctly typed characters, so it behaves like net WPM. Never write down a WPM figure without its accuracy next to it.
Why your prose score overstates your code speed
Almost everyone types code slower than English, and the reasons are mechanical:
- The Shift layer. On a US layout,
( ) { } < > " : _ + ! & * | ?all need Shift. Prose barely touches Shift; code holds it constantly. Every shifted character is a two-key chord that has to be timed exactly. - Edge-of-board reaches. Brackets, backslash, pipe, and backtick live on the outer columns, mostly under the right pinky, the weakest finger.
- Paired structure. Brackets and quotes come in pairs, often nested:
});is four characters of pure punctuation with no letters to rest on. - Unfamiliar "words".
handleSubmitoruser_idaren't motor patterns you've typed thousands of times, so your fingers drop to letter-by-letter execution.
The average typing speed for programmers article goes deeper on the size of this gap. The short version: expect a code score well below your prose score, and expect the gap to be bigger in symbol-heavy languages.
How to run a fair self-test
A single run is noise: snippets vary, the first run is always cold, and a lucky run proves little. A protocol that takes about fifteen minutes:
- Pick one language and stick with it. Use the one you write daily. Mixing languages between sessions makes the trend meaningless.
- Warm up with two runs you don't record. Cold hands are reliably slower and sloppier.
- Record five runs. Write down WPM and accuracy for each.
- Report the median, not the best. Sort the five WPM figures and take the middle one. Your best run is the number you'll want to quote; the median is the one that predicts how you type at work.
- Don't repeat the same snippet. By the third attempt you're typing from memory, which inflates the score. Draw new snippets each run.
- Keep conditions constant. Same keyboard, same layout, roughly the same time of day.
Timed 60 seconds or full snippet?
Both are valid; pick one and keep it. A timed test (15, 30, or 60 seconds) gives every run the same duration, which makes runs easy to compare. In DevType's timed mode, finishing a snippet early loads the next one without stopping the clock. Use 60 seconds for benchmarking: 15 seconds is too short to average out one bad bracket.
A full-snippet test is closer to real work: a whole function from signature to closing brace. Snippet length varies, though, so run-to-run variance is higher and the median matters even more.
Reading your results: rough bands
These bands are rules of thumb from typing real snippets, not research data, and they assume accuracy of 95% or better. They line up with the ladder in the programmer typing speed benchmarks.
| Median code WPM | What it usually means |
|---|---|
| Under 25 | Still looking at the keyboard for symbols, possibly for letters too. Touch-typing basics come first. |
| 25–35 | Letters are automatic; most symbols are a conscious decision. |
| 35–50 | A touch-typist who never trained on code. Fast on identifiers and strings, slow at every bracket. |
| 50–65 | Fluent. Typing rarely interrupts thinking. A good long-term target for most developers. |
| 65+ | Uncommon. Beyond this point, editor and shell fluency usually pay more than raw speed. |
If your accuracy is below 95%, read your band one row lower. A fast score built on corrections isn't the speed you'll hold in an editor.
Reading a per-key error heatmap
WPM tells you how fast you are; a per-key heatmap tells you why. DevType's results screen colors each key by misses in that run (clean, one miss, two or more), and hovering a key shows clean hits, misses, and average time per keystroke. An "All time" view aggregates every run you've done in that browser.
Three things to look for:
- Shifted symbols land on their base key. Misses on
(show up on9,{on[,:on;,_on-. A red9in a JavaScript run is almost never about the digit. - Slow but clean is still a weakness. A key with zero misses and a high average time is one you're hesitating on. That's the next key that will start failing when you push speed.
- Use the all-time view for decisions. One run's heatmap reflects one snippet. Patterns that persist across dozens of runs are the ones worth drilling.
Turning hot keys into drills
| Hot key on the heatmap | Likely culprit | Where to drill |
|---|---|---|
- | Underscore in snake_case | Python, SQL |
9 / 0 | Parentheses, especially closing runs like )) | SQL, JavaScript |
[ / ] | Braces { } as well as square brackets | JavaScript, Rust |
; | Colons: ::, type annotations, block openers | Rust, Python |
. / , | > and < in arrows, generics, comparisons | Rust, JavaScript |
Pick the two or three worst keys, not ten. For technique on fixing them, see how to type code faster.
What makes each language slow to type
Python
Python looks easy because it's light on brackets, but it has its own costs. Every def,
if, for, and with line ends in a shifted colon. Names are
snake_case, so underscores (Shift plus a top-row pinky reach) appear mid-word
constantly, and dunder methods like __init__ double them. Indentation is structural:
in a real editor you dedent by hand at the end of every block, a cost that auto-indenting test tools
hide. F-strings add braces inside quotes. Drill it on Python typing practice.
JavaScript
Modern JavaScript is dense with compound symbols: arrows (=>), strict equality
(===), optional chaining (?.), and spread (...). Template
literals mean a backtick, often in the far top-left corner, plus ${ and a closing
brace. Callbacks and object literals end in stacks like });, where one wrong
character breaks the whole block. Practice on JavaScript snippets.
Rust
Rust is one of the most symbol-dense mainstream languages. Paths use :: everywhere,
borrows add & and &mut, lifetimes put an apostrophe in front of a
name ('a), and return types use ->. Generics wrap types in
< >, closures use |x| pipes, error handling ends lines with
?, and macros add !. Most of those are shifted. Train it on
Rust typing drills.
SQL
SQL's cost is punctuation in lists. Column lists are comma-separated, function calls and
IN lists nest parentheses, and string literals need matching single quotes. Keywords
are conventionally uppercase, so you either hold Shift through SELECT and
GROUP BY or toggle Caps Lock and risk leaving it on. Column names in
snake_case bring underscores back. Drill it on SQL typing practice.
A 4-week benchmark plan
This plan keeps testing separate from training, so a good practice day doesn't pass for progress:
| When | Do | Record |
|---|---|---|
| Week 1, day 1 | Full protocol in your main language, plus one run in a symbol-heavy language | Median WPM, median accuracy, top 3 heatmap keys |
| Weeks 1–4, daily | 10 minutes of drills aimed at your top 3 keys; no benchmarking | Nothing. Practice scores aren't benchmarks. |
| End of weeks 1, 2, 3 | Same protocol, same day of the week, same time | Median WPM and accuracy; check whether hot keys changed |
| End of week 4 | Full protocol, then compare the all-time heatmap with your week-1 notes | Change in median; pick next month's target keys |
Judge the trend across four medians, not any single week. A flat week is normal, and rising accuracy at the same WPM is progress too: speed tends to follow accuracy.
Ready to set your baseline? Open the practice page, choose your language, set the timer to 60 seconds, and run the protocol above.
Frequently asked questions
How is WPM calculated on a code typing test?
Characters typed are divided by five to get "words", then divided by minutes elapsed. Symbols, spaces, and newlines each count as one character. Tools differ on whether skipped auto-indentation is credited, so only compare scores from the same tool.
Should I report my best WPM or my average?
Use the median of five runs after a warm-up. Your best run reflects a lucky snippet; the median is what you actually type at work, and it's stable enough to track week to week.
Why is my code WPM so much lower than my prose WPM?
Code leans on the Shift layer, edge-of-keyboard symbols, and paired brackets that prose barely uses, and identifiers aren't practiced words. The gap is mostly technique, so targeted symbol drills close it much faster than more prose practice.
Is a 60-second test or a full snippet better for benchmarking?
A 60-second test gives every run the same length, so it's easier to compare. A full snippet is closer to real work but varies more between runs. Either works if you stick with one and take the median.
Put it into practice
DevType drills real code, terminal commands, and symbols — free, no account needed.
Start a Typing Drill