Cron expression for every 5 minutes
Runs the job at minutes 0, 5, 10, 15, and so on, every hour of the day.
*/5 * * * *
Every 5 minutes
Field by field
- Minute · 0–59
*/5every 5th minute - Hour · 0–23
*every hour - Day of month · 1–31
*every day of the month - Month · 1–12 or JAN–DEC
*every month - Day of week · 0–7 or SUN–SAT
*every day of the week
Next runs in your local time
Why this schedule, and when it bites
Five-minute cron is the first cadence most teams reach for once a one-minute loop feels too loud. It is fast enough to keep an external system in close step and slow enough that a failing job does not flood your logs before anyone looks. The schedule is also where the most common mental model goes wrong: */5 is a step on the clock, not a timer that starts when the previous run ends. Run one takes 90 seconds at 12:00 and the next still starts at 12:05. Duration never shifts the grid.
The step is not a rolling timer. */5 fires at :00, :05, :10 and so on regardless of how long the previous run took. A job that needs a guaranteed five-minute pause between runs must measure elapsed time itself, or move to a scheduler that waits for the service to exit.
Overlapping runs pile up quietly. If a run occasionally takes longer than five minutes, cron starts the next one anyway. Two workers then touch the same files or rows. Take a lock at the top of the job so the second run exits immediately, and alert when the lock is still held at the next tick.
Minute zero is the busiest minute of the hour. Every */5 schedule fires at :00, together with */10, */15, */30 and the hourly jobs. When the job talks to a rate-limited API, offset the grid, for example 2-57/5, so your calls land between the crowd.
Where this cron expression shows up
- Syncing with an external API on a fixed cadence
- Warming a cache before traffic arrives
- Picking up files another system just dropped
Common variations
-
Every 10 minutes
*/10 * * * * Every 10 minutes
-
Every 15 minutes on weekdays
*/15 * * * 1-5 Every 15 minutes, Monday through Friday
Ranges, steps, and names are spelled out on the cheat sheet.
Questions this schedule raises
Does */5 * * * * mean every five minutes after the last run?
No. Cron reads the minute field as a set of clock minutes: 0, 5, 10 and so on, of every hour. The previous run's start time or duration plays no part. If you need spacing measured from the end of one run to the start of the next, cron alone cannot express it. Use a wrapper loop or a timer that starts after the service exits.
How do I run every five minutes only during business hours?
Add the hour range: */5 9-17 * * 1-5. That fires at every five-minute mark from 09:00 through 17:55, Monday to Friday. Combine it with a lock file if the job can outlive its slot, and remember that the hour field follows the server's timezone.