OpsPane

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)

*/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.

Field by field

Minute01/60

:00

Hour*/212/24

Every 2 hours

Day of month*31/31

Every day of the month

Month*12/12

Every month

Day of week*7/7

Every day of the week

Day matchAND

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.

PlatformExpressionOpen in tool
crontab0 */2 * * *Open in the crontab tool
Quartz0 0 0/2 * * ?Open in the Quartz tool
AWS EventBridgecron(0 0/2 * * ? *)Open in the AWS EventBridge tool
GitHub Actions0 */2 * * *Open in the GitHub Actions tool
Kubernetes0 */2 * * *Open in the Kubernetes tool
systemd*-*-* 00/2:00:00Open in the systemd tool

Variations

ExpressionRunsOpen 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-5At 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.