OpsPane

0 */3 * * * runs a cron job every 3 hours, eight times a day from 00:00 to 21:00. Get it for Quartz, AWS, GitHub Actions, Kubernetes and systemd.

crontab expression

0 */3 * * *

In plain English

At minute 0 past every 3 hours.

8 runs a day (counted over 2026, UTC)

*/3 in the hour field matches hours 0, 3, 6, 9, 12, 15, 18 and 21, and minute 0 runs the job once at the start of each. Because 3 divides 24, the gap is exactly 3 hours, including across midnight.

Field by field

Minute01/60

:00

Hour*/38/24

Every 3 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 */3 * * *Open in the crontab tool
Quartz0 0 0/3 * * ?Open in the Quartz tool
AWS EventBridgecron(0 0/3 * * ? *)Open in the AWS EventBridge tool
GitHub Actions0 */3 * * *Open in the GitHub Actions tool
Kubernetes0 */3 * * *Open in the Kubernetes tool
systemd*-*-* 00/3:00:00Open in the systemd tool

Variations

ExpressionRunsOpen in explainer
0 1-23/3 * * *At minute 0 past every 3 hours from 01:00 through 23:00.Open 0 1-23/3 * * * in the explainer
15 */3 * * *At minute 15 past every 3 hours.Open 15 */3 * * * in the explainer
0 9-18/3 * * 1-5At minute 0 past every 3 hours from 09:00 through 18:00 on Monday through Friday.Open 0 9-18/3 * * 1-5 in the explainer
0 */2 * * *At minute 0 past every 2 hours.Open 0 */2 * * * in the explainer
0 */4 * * *At minute 0 past every 4 hours.Open 0 */4 * * * in the explainer

Watch out for

* */3 * * * runs every minute of those hours

Without a fixed minute the job runs 60 times between 00:00 and 00:59, then again from 03:00. Put a number in the minute field: 0 */3 * * *.

The hours follow the scheduler's time zone

On GitHub Actions and AWS EventBridge cron the hours are UTC. Shift the start with a range, as in 0 2-23/3 * * *, to land the runs on particular local times.

Long runs overlap

A job that runs longer than 3 hours starts again while the first copy is still going. Use flock -n in crontab or concurrencyPolicy: Forbid on Kubernetes.

FAQ

What is the cron expression for every 3 hours?

0 */3 * * *. It runs at 00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00 and 21:00.

How do I run every 3 hours starting at 1 AM?

Use 0 1-23/3 * * *, which runs at 01:00, 04:00, 07:00 and so on up to 22:00.

How do I run every 3 hours on weekdays only?

Use 0 */3 * * 1-5. Day of week 1-5 is Monday through Friday.

What is every 3 hours in Quartz?

0 0 0/3 * * ?. Quartz puts seconds first and needs ? in day-of-month or day-of-week.