DevKits

Tokens per Second Calculator — LLM Speed & Latency Estimator

Estimate how long an LLM response takes from output tokens and throughput (tokens/second), including time-to-first-token. Or measure actual TPS from a real run. 100% local.

Last updated:

Comments

Enter the expected output length in tokens and a model's throughput in tokens per second, and this calculator estimates total response time — including time-to-first-token — plus tokens and words per minute. At 90 tokens/s, an 800-token answer takes about 9 seconds of generation. You can also measure real TPS from a run by dividing output tokens by generation seconds. Everything runs in your browser.

How long will the response take?

Enter the expected output length and the model’s throughput to estimate total time.

9.4 s
Total time
8.9 s
Generation only
5,400
Tokens / min
4,050
≈ Words / min

Measure tokens per second

Got a real run? Enter the output tokens and how long generation took to compute the actual TPS.

100.0
tokens / s

All math runs in your browser. Throughput presets are rough typical values and vary with load, prompt length, and region.

What is Tokens/sec Calculator?

An LLM's perceived speed comes from two numbers. Time-to-first-token (TTFT) is the gap before the first token appears — it covers queueing and prompt processing (prefill), and grows with prompt length. Throughput, measured in tokens per second (TPS), is how fast tokens stream after that. Total latency is roughly TTFT + (output tokens ÷ TPS). That's why a short answer feels instant and a long one streams for seconds even on a fast model, and why a huge prompt can feel slow to start even when streaming is quick. This calculator lets you plug in output tokens, TPS, and TTFT to estimate total time, and converts TPS into tokens-per-minute and an approximate words-per-minute (×0.75). Typical presets range from a few tokens/s for a large model on CPU to hundreds of tokens/s on dedicated inference hardware. A second panel computes actual TPS from a measured run so you can benchmark a provider.

How to estimate LLM response time

  1. 1Enter the expected output tokens and the model's tokens-per-second (use a preset as a starting point).
  2. 2Add a time-to-first-token estimate for prompt processing and queueing.
  3. 3Read total time, generation-only time, and tokens/words per minute.

Use Cases

Set UX expectations

Decide whether to stream, show a spinner, or batch based on expected latency.

Compare providers

Benchmark real TPS across APIs and hardware with the measure panel.

Capacity planning

Translate a throughput number into how many requests you can serve per minute.

Key Concepts

Time to first token (TTFT)
The prefill + queue delay before the first token streams; grows with prompt length.
Throughput (TPS)
Output tokens generated per second during decoding — the streaming speed.
Output tokens
Estimate from words first if you only have a target length.

Tips & Best Practices

  • ▸Total latency ≈ TTFT + output_tokens ÷ TPS — long prompts hurt TTFT, long answers hurt generation time.
  • ▸Presets are rough; real TPS varies with load, region, and prompt length, so measure your own.

Frequently Asked Questions

What is tokens per second (TPS)?

TPS is how many output tokens a model generates each second during decoding. It sets the streaming speed: at 90 tokens/s an 800-token answer takes about 9 seconds to finish generating, on top of the time-to-first-token.

What is time to first token (TTFT)?

TTFT is the delay from sending the request to the first token appearing — it covers queueing and prompt processing (prefill). Total latency ≈ TTFT + (output tokens ÷ TPS). Long prompts increase TTFT; long answers increase generation time.

How do I convert tokens per second to words per minute?

Multiply TPS by 60 to get tokens per minute, then by ~0.75 to approximate words per minute. So 90 tokens/s ≈ 5,400 tokens/min ≈ 4,050 words/min.

How do I measure a model's real TPS?

Record the output token count and how many seconds generation took, then divide tokens by seconds. The 'measure' panel here does that for you.

Try Next

Context Window Checker

Check whether your prompt fits a model's context window before you send it. Estimates prompt tokens, reserves room for the response, and shows remaining headroom across GPT-4o, o1, Claude, Gemini, DeepSeek and more. 100% local.

Related Tools

Reference & Guides