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:
CommentsEnter 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.
Measure tokens per second
Got a real run? Enter the output tokens and how long generation took to compute the actual TPS.
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
- 1Enter the expected output tokens and the model's tokens-per-second (use a preset as a starting point).
- 2Add a time-to-first-token estimate for prompt processing and queueing.
- 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
Prompt Injection Detector
Scan untrusted user input for common prompt-injection and jailbreak patterns — instruction overrides, jailbreak personas, system-prompt exfiltration — with a risk score. Heuristic, 100% local.
Text Chunker
Split long text into overlapping chunks for embedding and RAG pipelines. Preview recursive, paragraph, sentence, or fixed strategies with live token counts. Runs 100% in your browser.
Cosine Similarity
Compute cosine similarity, dot product, and Euclidean distance between two vectors online. Perfect for debugging LLM embeddings, semantic search, and RAG pipelines. 100% local — vectors never leave your browser.
AI Cost Calculator
Estimate monthly LLM API cost across GPT-4o, Claude 3.5, Gemini, DeepSeek and 100+ models. Compare providers side-by-side with prompt-caching and batch discounts. Free, no signup — prices refreshed daily from the public LiteLLM catalog.
Token Counter
Count tokens in your prompt for GPT-4, GPT-3.5, Claude, and Gemini and predict API cost before you spend. Free, no signup — all counting runs locally, your prompt stays in your browser.
LLM JSON Extractor
Extract every JSON object or array buried inside an LLM reply — even when it's wrapped in markdown fences, mixed with explanation text, or has trailing commas and single quotes. Auto-repairs each block. 100% local.