LLM training compute (FLOPs) calculator

Enter the model size, the number of training tokens and your hardware. The calculator applies the standard estimate of 6 FLOPs per parameter per token to give the total compute, then the GPU-hours and days it takes at a realistic utilization, and how your token count compares with the Chinchilla rule of about 20 tokens per parameter.

B
B
TFLOP/s
%
Training compute C = 6ND8.4E22 FLOPs
Wall-clock days15.22
GPU-hours
186,966
Wall-clock hours
365.2
Petaflop/s-days
972.2
Tokens per parameter
285.71
Chinchilla-optimal tokens (20 × N)
140 B
Inference compute per token (2N)
14,000,000,000 FLOPs

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter the parameters and training tokens, both in billions (2 trillion tokens = 2000).
  2. Enter the number of GPUs, their peak TFLOP/s and the expected MFU.
  3. Read the total compute, the time and the GPU-hours; compare the tokens per parameter with the Chinchilla value.

Formulas

  • Training compute C = 6 × N × D FLOPs
  • Effective speed per GPU = peak × MFU
  • GPU-hours = C ÷ (peak × MFU) ÷ 3600; wall-clock time = GPU-hours ÷ GPUs
  • Petaflop/s-days = C ÷ (10¹⁵ × 86,400)
  • Chinchilla-optimal tokens ≈ 20 × N; inference ≈ 2N FLOPs per generated token

Worked example

A 7-billion-parameter model trained on 2 trillion tokens with 512 GPUs at 312 TFLOP/s and 40 % MFU:

  • C = 6 × 7 × 10⁹ × 2 × 10¹² = 8.4E22 FLOPs (972.2 petaflop/s-days);
  • each GPU delivers 312 × 0.4 = 124.8 TFLOP/s, so the run needs 8.4 × 10²² ÷ 1.248 × 10¹⁴ ÷ 3600 = 186,966 GPU-hours;
  • on 512 GPUs that is 365.2 hours, about 15.22 days;
  • 2000 ÷ 7 = 285.71 tokens per parameter — 14 times the Chinchilla-optimal 140 billion tokens.

Tips

  • Add a margin. Restarts after failures, evaluation and checkpointing typically add tens of percent to the ideal time.
  • Check memory separately. Compute says how long; whether the model fits needs parameters, gradients and optimizer states — see the model parameter calculator for N.
  • Multiply GPU-hours by your hourly price per GPU for a cost estimate.

Frequently asked questions

Why 6 × parameters × tokens?

For a dense transformer, the forward pass costs about 2 FLOPs per parameter per token (one multiply and one add), and the backward pass about twice that. 2 + 4 = 6 FLOPs per parameter per token, so C ≈ 6ND. The estimate, from Kaplan et al. (2020), ignores attention over the context, which adds a little for long sequences.

What MFU should I assume?

Model FLOPs utilization is the share of the GPUs' peak that goes into the model's maths. Large, well-tuned training runs commonly report roughly 30–50 %; small clusters, slow interconnects or long sequences go lower. The default here is 40 %.

What peak throughput should I enter?

The dense (non-sparse) figure for the number format you train in, from the GPU's datasheet. An NVIDIA A100 is rated at 312 TFLOP/s for BF16 dense maths, which is the default. Do not use the sparsity figure, which is twice as high.

What is the Chinchilla rule?

Hoffmann et al. (2022) found that for a fixed compute budget, a model should see about 20 training tokens per parameter: 70 billion parameters and 1.4 trillion tokens for Chinchilla itself. Many current models train far longer than that, because a smaller model that saw more data is cheaper to run.

More in Developer

All tools in this category: Developer ·Updated November 7, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.