How to Estimate Monthly Token Usage: A 3-Step Tracking Method
The most reliable way to find out how many tokens you use per month is to log one week of real usage, group it by task type, work out the average tokens per task in each group, and multiply by how often you do that task each month. Don't pull a number out of thin air. Below is a three-step tracking method. At the end you will have a monthly figure with a safety margin that you can compare against a subscription quota or an API budget.
One note before you start: this article is about the method. Every number in the tables is an example, not a measured value for any product. You fill in your own data.
Why not just guess your monthly usage?
There are three main reasons.
First, official APIs usually price input and output separately, so you need to record them separately. Second, the longer a conversation gets, the more history is resent on every turn, so input tokens snowball. Third, reasoning models can produce extra thinking tokens, and those are billed too (details in How reasoning-token billing works). Estimating from memory usually counts only the words you typed and misses all of this.
If you want to understand where each line item on a bill comes from first, see How token billing works.
Step 1: How do you log a week of samples?
The goal is to capture input tokens, output tokens, and task type for each task. There are a few sources, depending on how you work:
- API or gateway: responses usually include a usage field with input and output token counts. The exact field name depends on the provider's official docs. Just write it to your logs.
- Command-line tools such as Claude Code or Codex: most have a command or UI for viewing usage or session cost. Names and locations depend on each tool's official docs.
- Web chat: you usually can't see exact token counts. You can paste a conversation into a tokenizer tool to estimate, or just log the number of tasks and convert later using the averages from Step 2.
Each entry needs only four columns: date, task type, input tokens, output tokens. Log for 7 consecutive days, ideally including both weekdays and a weekend. If that week happened to be unusually busy or quiet, you will need to correct for it in the next step.
Step 2: How do you group by task type?
Don't just compute one global average. Completing a single line of code and asking an agent to refactor an entire directory differ by orders of magnitude in tokens, and averaging them together tells you nothing.
Split your work into 4 or 5 groups, for example:
| Task type | Count this week | Avg. input tokens | Avg. output tokens |
|---|---|---|---|
| Short Q&A | (fill in) | (fill in) | (fill in) |
| Writing and rewriting | (fill in) | (fill in) | (fill in) |
| Code completion and small edits | (fill in) | (fill in) | (fill in) |
| Code review and medium-sized changes | (fill in) | (fill in) | (fill in) |
| Long-running agent tasks | (fill in) | (fill in) | (fill in) |
For each group, the average is the total tokens across all records in that group divided by the number of tasks. Look at long-running agent tasks on their own, because a single session contains many internal calls and each one carries the full context. See How to estimate Claude Code token consumption.
Step 3: How do you convert to monthly usage?
The formula is simple:
Monthly output tokens = sum over task types of (weekly count × average output tokens) × weeks-per-month factor
Monthly input tokens work the same way. You can use 4.3 as the weeks-per-month factor (a month is roughly 4.3 weeks). It is an approximation.
Here is a walk-through with hypothetical numbers, purely for illustration:
Suppose one task type happens 20 times a week with an average output of 2,000 tokens. That is 40,000 output tokens a week, and multiplied by 4.3 it comes to about 172,000 tokens. Do the same for all five task types and add them up to get your estimated monthly output.
After that, make two corrections:
- If your sample week was busier or quieter than usual, scale proportionally instead of using the raw numbers.
- Leave a margin. We suggest adding at least 20% to 30%, because usage grows as you pick up new tools and habits. This is a rule of thumb, not an official rule.
Do Chinese and English tokens need converting?
Yes, but don't use a fixed ratio. The same meaning expressed in Chinese and in English produces different token counts, and different models' tokenizers give different results too. The accurate approach is to measure a sample of your own text with the target model's tokenizer or its official counting method. See Does Chinese use more tokens than English? for how.
If your input is a mix of Chinese and English code and comments, rely on real logs rather than converting from character counts.
How do you compare the estimate to a subscription quota?
First figure out what your service meters. Official APIs usually price input and output tokens separately. Subscriptions may count messages or use a usage window. Some gateways use their own quota unit.
Take AGI Plan as an example (AGI Plan is a commercial partner of cdnping): it meters in CU, where 1 CU equals 1,000 output tokens on the baseline model. So divide your estimated monthly output tokens by 1,000 to get a rough monthly CU requirement, add the margin from earlier, and compare that with plan quotas. For actual plan quotas and prices, see the AGI Plan pricing page. Note that different capability groups map to different models, and CU consumption follows the provider's own documentation, so this estimate is only an order-of-magnitude guide.
For a fuller framework, see How to choose an AI subscription.
Checklist once you have an estimate
- Does the sample cover at least 7 days, including weekdays and a weekend?
- Did you record input and output separately?
- Are long-running tasks in their own group?
- Did you measure Chinese text with a real tokenizer instead of applying a fixed ratio?
- Did you add a 20% to 30% margin?
- If you plan to use the service long term, will you check against the real bill every month?
After a month of use, compare actual usage with your estimate. The gap becomes your correction factor next time.
If you are still comparing providers, cdnping's model monitoring shows availability and latency for each model across providers, which can help you decide where to run each task. For more on choosing a plan, see How to calculate AI subscription value.