CalcWorldHub
Free online calculator · no signup

Word Error Rate (WER) Calculator

Compare a reference transcript with a recognized transcript and calculate word error rate from the minimum word-level edit distance.

4,000 tools
Word Error Rate (WER) Calculator — Reference transcript, Hypothesis transcript and calculation method
Word Error Rate (WER) Calculator: inputs and calculation method.

How to use this calculator

Compare a reference transcript with a recognized transcript and calculate word error rate from the minimum word-level edit distance.

  1. Enter Reference transcript, Hypothesis transcript. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Signal processing calculation

How this calculation works

Paste the reference and hypothesis transcripts. The calculator converts both to lowercase after Unicode NFC normalization, splits words on whitespace, finds the minimum number of word edits, and divides that count by the number of reference words.

Inputs and units

referenceText — Reference transcript
Paste the trusted reference transcript. Words are split at whitespace; punctuation is retained.
hypothesisText — Hypothesis transcript
Paste the transcript being evaluated. Matching ignores case after Unicode NFC normalization.

Formula

Displayed formula

WER (%) = word-level Levenshtein distance ÷ number of reference words × 100.

Method

A rolling-row dynamic-programming edit-distance calculation finds the minimum number of word substitutions, deletions, and insertions. The result is divided by the reference word count. Case is ignored, Unicode text is normalized to NFC, whitespace separates words, and punctuation remains part of each token.

Worked example

Reference: “the cat sat on the mat.” Hypothesis: “the cat slept on mat.” One substitution and one deletion produce 2 edits across 6 reference words, so WER is 33.33%.

Assumptions and limits

This quick estimate uses whitespace tokenization, ignores letter case, and preserves punctuation. Speech-recognition benchmarks may use different text normalization, tokenization, number expansion, or scoring options. Normalize both transcripts to the same benchmark protocol before comparing results. WER can exceed 100% when insertions outnumber reference words; each transcript is limited to 2,000 words and 5,000 characters.

Frequently asked questions

Can word error rate be above 100%?

Yes. Insertions are counted in the numerator, so a very long hypothesis against a short reference can exceed 100%.

Does punctuation affect the score?

Yes. Punctuation stays attached to a word token. Apply the same punctuation and number normalization to both transcripts before evaluating them.

Will this exactly match an ASR benchmark?

Not always. Benchmark tools can use different tokenization and normalization rules. Use the benchmark’s prescribed preprocessing for comparable scores.

How do I use the Word Error Rate (WER) Calculator?

Enter Reference transcript, Hypothesis transcript. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Word Error Rate (WER)?

Reference: “the cat sat on the mat.” Hypothesis: “the cat slept on mat.” One substitution and one deletion produce 2 edits across 6 reference words, so WER is 33.33%.