Cron expression for every 5 minutes
*/5 * * * * runs at minutes 0, 5, 10 and so on of every hour: 288 times a day.
This tool runs in your browser. We never send what you type or paste to a server.
The expression
*/5 * * * * /path/to/commandThe expression has five fields, read left to right:
| Field | Value | Meaning here |
|---|---|---|
| Minute | */5 | every 5th minute, starting at 0: 0, 5, 10, … 55 |
| Hour | * | every hour |
| Day of month | * | every day of the month |
| Month | * | every month |
| Day of week | * | every day of the week |
When it runs
Starting from Wed 2027-01-06 10:07 UTC, the next runs are:
Wed 2027-01-06 10:10
Wed 2027-01-06 10:15
Wed 2027-01-06 10:20
Wed 2027-01-06 10:25
Wed 2027-01-06 10:30
Wed 2027-01-06 10:35The runs are tied to the clock, not to when the job was installed: the first one comes at the next multiple of five, not five minutes after you save the crontab.
Cron uses the time zone of the machine or service that runs it. The explainer at the top of this page shows the next runs in your own time zone.
Variations
1-59/5 * * * * every 5 minutes, at 1, 6, 11, … 56 (offset by one minute)
*/5 9-17 * * 1-5 every 5 minutes during working hours, Monday to Friday
0,5,10,15,20,25,30,35,40,45,50,55 * * * * the same schedule written out, for crons without step supportOffsetting matters more than it looks. Half the world's cron jobs fire at minute 0, so an API you call on the hour is at its busiest then. Picking 3-59/5 or similar moves you out of the crowd.
Things to check
- Runs that take longer than five minutes will overlap, because cron does not wait. Wrap the command:
*/5 * * * * flock -n /tmp/sync.lock /usr/local/bin/sync. - GitHub Actions does not run scheduled workflows more often than every 5 minutes, so this is its fastest schedule, and runs are often several minutes late.
- Missed runs are not made up. If the machine is off at 10:15, that run simply does not happen.
Quartz adds a seconds field at the front, AWS adds a year at the end, and both need ? in one of the two day fields. See how the syntaxes differ.
The same schedule in other schedulers
| Scheduler | Expression |
|---|---|
| Unix cron, crontab | */5 * * * * |
| Kubernetes CronJob | schedule: "*/5 * * * *" |
| GitHub Actions | - cron: '*/5 * * * *' |
| Quartz (Java, Spring) | 0 0/5 * * * ? |
| AWS EventBridge | cron(0/5 * * * ? *) or rate(5 minutes) |
Questions
What does */5 mean in cron?
A step: every 5th value of the field, counting from its lowest value. In the minute field that is 0, 5, 10 and so on up to 55.
Is */5 * * * * the same as 0/5 * * * *?
In Quartz and AWS, 0/5 is the normal way to write it. In Unix cron, write */5: a bare number with a step is not accepted by every implementation.
How do I run a cron job every 5 minutes starting at a specific minute?
Use a range with a step. 2-59/5 * * * * runs at minutes 2, 7, 12 and so on.