Prompt Token Budget Calculator
Budget system, example and user tokens against a model.
Results update automatically as you type.
Result
800 tokens in your prompt
$0.00100 per call · 127,200 tokens left in the context window
- System prompt
- 500 tokens
- Examples
- 0 tokens
- User message
- 300 tokens
- Total input
- 800 tokens
- Input cost / call
- $0.00100
- Context remaining
- 127,200 tokens
Plan your prompt token budget. Split tokens across system prompt, few-shot examples and the user message to see total input, cost per call, and how much context window is left.
How this is calculated
This calculator uses the prompt engineering formulas described in our methodology. All figures are estimates for planning; verify current pricing with each provider before relying on them.
Worked example (defaults)
With the default inputs above, here is the result:
Result
800 tokens in your prompt
$0.00100 per call · 127,200 tokens left in the context window
- System prompt
- 500 tokens
- Examples
- 0 tokens
- User message
- 300 tokens
- Total input
- 800 tokens
- Input cost / call
- $0.00100
- Context remaining
- 127,200 tokens
Frequently asked questions
How big should my system prompt be?+
As small as possible while staying reliable. Every token is re-sent on each call, so trimming the system prompt lowers cost at scale — or cache it.