Calculators tools
Practical calculators for LLM context windows, API costs, VRAM estimates and home mortgages.
When you need these tools
Two different moments. Planning an LLM feature: how many tokens the prompt really uses, whether it fits a 128k context window, what a million requests a month will cost, how much VRAM the local model needs. And everyday arithmetic with rules attached: mortgage payments, days between two dates, whether a layover in China fits the 240-hour transit exemption, what QPS your API must survive at peak. The point of each is the same — a defensible number before you commit code, money or a flight booking.
A typical workflow
Sizing an LLM feature end to end:
- Paste the real system prompt into the LLM Token Counter — measured, not guessed.
- Feed that number into the Context Window Calculator together with expected history and output length.
- Multiply by expected volume in the LLM API Cost Calculator for a monthly figure you can put in a plan.
- If part of the workload runs locally, check which model sizes fit your GPU in the LLM VRAM Calculator.
How they work together
The calculators share assumptions rather than data: token counts from the counter are what the context and cost tools expect as input, and the QPS & TPS Calculator turns a traffic estimate into the per-second rate you need for capacity planning. Off-site, their outputs are sanity checks against the vendor's own pricing and tokenizer docs — prices and context sizes change often, so treat every figure as a plan, then verify the constants before you sign anything.