Epochs, Batches, and Steps: The Vocabulary of Training
In a hurry? Skip straight to the numbers.
Open the Epoch Time Calculator →The epoch time calculator scales a per-batch timing up to the total wall-clock time of a training run, using the terms epoch, batch, and step. These words describe the fundamental rhythm by which a model learns: repeatedly working through the training data in small chunks, many times over. Understanding this vocabulary, and the looping structure it describes, reveals what actually happens during the hours or days a model spends training, and why the process is inherently iterative.
Learning by Repetition
A model does not learn from its data in a single glance; it learns by working through the data repeatedly, adjusting itself a little each time. Each full pass through the entire training dataset is called an epoch, and training typically involves many epochs, the model seeing the same data over and over. This repetition is essential, because each pass lets the model refine its parameters further, gradually improving. Learning is a patient process of revisiting the same examples, extracting a bit more understanding on each pass.
Data in Small Chunks
Within each epoch, the data is not processed all at once but in small groups called batches. The model looks at one batch, updates its parameters based on it, then moves to the next batch, and so on until the whole dataset has been covered, completing an epoch. Each such update, one batch processed and one adjustment made, is called a step or iteration. So an epoch is made up of many steps, one per batch, and training consists of many epochs, each grinding through the data batch by batch.
| Term | Meaning |
|---|---|
| Batch / step | One small chunk of data, one update |
| Epoch | One full pass through all the data |
Why Chunks, Not All at Once
Processing data in batches rather than all at once is a practical necessity and a helpful design. All the data may not fit in memory at once, so it must be fed in manageable chunks. Updating after each batch also lets the model improve continuously throughout an epoch, rather than only once per pass. This batched, looping structure, chunks within passes within a full run, is the universal rhythm of training, repeated across virtually every model. It turns learning into a long sequence of small, incremental updates.
From Small Timing to Total Time
Because training is this vast loop, the total time depends on multiplying out the pieces: how long one batch takes, how many batches make an epoch, and how many epochs the run requires. A tiny per-batch time, multiplied across thousands of batches and many epochs, can add up to hours or days. This is exactly the scaling the calculator performs, turning an easily measured per-batch timing into the total wall-clock time that actually matters for planning. In doing so it makes the rhythm of training tangible, revealing the long, repetitive loop by which a model slowly learns.
Turn the resulting hours into a cost with the Training Cost Calculator, or examine batch options with the Batch Size Calculator.
Ready to Put This Into Practice?
Now that you understand how it works, plug in your own numbers and get an instant, accurate result.
Use the Epoch Time Calculator Now →