*/2 in the hour field matches the even hours, 0 through 22, and the 0 in the minute field runs the job once at the start of each, 12 times a day. Leave out the 0 and it runs every minute of every even hour.
0 */2 * * * runs a cron job every 2 hours, on the hour: 00:00, 02:00, 04:00 and so on. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd.
crontab expression
0 */2 * * *
In plain English
At minute 0 past every 2 hours.
12 runs a day (counted over 2026, UTC)
Field by field
01/60:00
*/212/24Every 2 hours
*31/31Every day of the month
*12/12Every month
*7/7Every day of the week
Runs every day.
The same schedule on every platform
Each expression below is the same schedule written for that platform, checked run by run against the crontab version.
| Platform | Expression | Open in tool |
|---|---|---|
| crontab | 0 */2 * * * | Open in the crontab tool |
| Quartz | 0 0 0/2 * * ? | Open in the Quartz tool |
| AWS EventBridge | cron(0 0/2 * * ? *) | Open in the AWS EventBridge tool |
| GitHub Actions | 0 */2 * * * | Open in the GitHub Actions tool |
| Kubernetes | 0 */2 * * * | Open in the Kubernetes tool |
| systemd | *-*-* 00/2:00:00 | Open in the systemd tool |
Variations
| Expression | Runs | Open in explainer |
|---|---|---|
0 1-23/2 * * * | At minute 0 past every 2 hours from 01:00 through 23:00. | Open 0 1-23/2 * * * in the explainer |
30 */2 * * * | At minute 30 past every 2 hours. | Open 30 */2 * * * in the explainer |
0 8-18/2 * * 1-5 | At minute 0 past every 2 hours from 08:00 through 18:00 on Monday through Friday. | Open 0 8-18/2 * * 1-5 in the explainer |
0 */3 * * * | At minute 0 past every 3 hours. | Open 0 */3 * * * in the explainer |
0 */4 * * * | At minute 0 past every 4 hours. | Open 0 */4 * * * in the explainer |
Watch out for
* */2 * * * runs 60 times in each even hour
With * in the minute field the job runs every minute from 00:00 to 00:59, then from 02:00 to 02:59 and so on. Every 2 hours needs a fixed minute such as 0.
Odd hours need a range
*/2 always starts at hour 0. To run at 01:00, 03:00, 05:00 and so on, use 0 1-23/2 * * *.
Steps that do not divide 24 are uneven
Steps restart at midnight, so 0 */5 * * * runs at 00:00, 05:00, 10:00, 15:00 and 20:00, then at 00:00 again only 4 hours later.
FAQ
What is the cron expression for every 2 hours?
0 */2 * * *. It runs at minute 0 of hours 0, 2, 4 and so on up to 22.
How do I run every 2 hours starting at 1 AM?
Use 0 1-23/2 * * *, which runs at 01:00, 03:00, 05:00 and so on up to 23:00.
How do I run every 2 hours during the working day?
Use 0 8-18/2 * * 1-5. It runs at 08:00, 10:00, 12:00, 14:00, 16:00 and 18:00, Monday through Friday.
Is 0 */2 * * * the same as listing the even hours?
Yes. 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * matches exactly the same hours; the step form is just shorter.